# Maintainer: Natanael Copa # Contributor: Michael Mason # Contributor: Cameron Banta global pkgname := 'freeswitch' global pkgver := '1.6.17' global pkgrel := '0' global pkgdesc := '"A communications platform written in C from the ground up'" global url := '"http://www.freeswitch.org'" global arch := '"all'" global license := '"GPL'" global makedepends := '" bash bsd-compat-headers coreutils curl-dev db-dev flac-dev flite-dev gdbm-dev gnutls-dev ilbc-dev lame-dev ldns-dev libedit-dev libjpeg-turbo-dev libogg-dev libpri-dev libressl-dev libshout-dev libsndfile-dev libvorbis-dev linux-headers lua5.2-dev mpg123-dev ncurses-dev net-snmp-dev opus-dev pcre-dev perl-dev portaudio-dev postgresql-dev sngtc_client-dev speex-dev speexdsp-dev sqlite-dev unixodbc-dev util-linux-dev xmlrpc-c-dev yasm zlib-dev autoconf automake libtool '" global install := ""$pkgname.pre-install $pkgname.pre-upgrade"" global FREESWITCH_USER := 'freeswitch' global FREESWITCH_GROUP := 'freeswitch' global pkgusers := $FREESWITCH_USER global pkggroups := $FREESWITCH_GROUP global subpackages := ""$pkgname-dbg $pkgname-dev $pkgname-flite $pkgname-timezones::noarch $pkgname-sample-config:conf:noarch $pkgname-freetdm $pkgname-sangoma $pkgname-snmp $pkgname-pgsql $pkgname-perl $pkgname-perlesl"" global source := ""http://files.freeswitch.org/freeswitch-releases/$pkgname-$pkgver.tar.xz 0001-mod_avmd-use-posix-isinf.patch 0001-sofia-sip-byte-order.patch 0002-FS-verto-bswap_64.patch sofia-sip-libressl.patch getlib.patch modules.conf freeswitch.confd freeswitch.initd "" global builddir := ""$srcdir/$pkgname-$pkgver"" proc prepare { default_prepare || return 1 update_config_sub } proc build { cd $builddir cp -f "$srcdir/modules.conf" modules.conf || return 1 env CFLAGS="-Wno-unused-but-set-variable" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --enable-fhs \ --localstatedir=/var \ --sysconfdir=/etc \ --with-scriptdir=/etc/freeswitch/scripts \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --with-devrandom=/dev/urandom \ --with-libpri \ --disable-debug \ --enable-core-pgsql-support \ --enable-system-lua \ --enable-system-xmlrpc-c \ || return 1 # first build libfreeswitch (in parallel) make src/include/switch_version.h src/include/switch_swigable_cpp.h make libfreeswitch.la || return 1 # finally we build the rest make -j1 all || return 1 # build perlesl module cd "$builddir"/libs/esl make -j1 perlmod || return 1 } proc package{ cd $builddir make -j1 DESTDIR="$pkgdir" install samples-conf samples-htdocs \ || return 1 install -m755 -D "$srcdir"/$pkgname.initd \ "$pkgdir"/etc/init.d/$pkgname || return 1 install -m644 -D "$srcdir"/$pkgname.confd \ "$pkgdir"/etc/conf.d/$pkgname || return 1 chown -R $FREESWITCH_USER:$FREESWITCH_GROUP "$pkgdir"/var/*/freeswitch # install perlesl module cd "$builddir"/libs/esl make -j1 DESTDIR="$pkgdir" perlmod-install } proc _mv_mod { var moddir = 'usr/lib/freeswitch/mod', i = '' mkdir -p "$subpkgdir"/$moddir for i in [$ifsjoin(Argv)] { mv "$pkgdir"/$moddir/$i.so "$subpkgdir"/$moddir/ || return 1 } } proc flite { global pkgdesc := '"Freeswitch Text To Speech Module'" global install := '' _mv_mod mod_flite ## ## The mod_say_xx modules can be used with out flite (for numbers, etc using ## sound files). So they shouldn't be in the flite package -cB ## # _mv_mod mod_say_de mod_say_en mod_say_es mod_say_fr \ # mod_say_it mod_say_nl mod_say_zh mod_say_hu mod_say_ru \ # mod_say_th mod_say_he } proc freetdm { global pkgdesc := '"Freeswitch FreeTDM Module'" global install := '' _mv_mod mod_freetdm ftmod_analog ftmod_analog_em ftmod_libpri \ ftmod_skel ftmod_zt mv "$pkgdir"/usr/lib/libfreetdm.so* "$subpkgdir"/usr/lib/ } proc sangoma { global pkgdesc := '"Freeswitch Sangoma Media Transcode Codec Module'" global install := '' _mv_mod mod_sangoma_codec } proc timezones { global pkgdesc := '"Freeswitch timezone configuration'" global install := '' global replaces := '"freeswitch-sample-config'" mkdir -p "$subpkgdir"/etc/freeswitch/autoload_configs mv "$pkgdir"/etc/freeswitch/autoload_configs/timezones.conf.xml \ "$subpkgdir"/etc/freeswitch/autoload_configs } proc snmp { global pkgdesc := '"Freeswitch SNMP module'" global install := '' _mv_mod mod_snmp } proc pgsql { global pkgdesc := '"Freeswitch PostgreSQL Module'" global install := '' _mv_mod mod_cdr_pg_csv } proc perl { global pkgdesc := '"Freeswitch Perl module'" global install := '' _mv_mod mod_perl } proc perlesl { global pkgdesc := '"Freeswitch Perl ESL module'" global install := '' mkdir -p "$subpkgdir"/usr/lib/perl5 mv "$pkgdir"/usr/lib/perl5/* "$subpkgdir"/usr/lib/perl5 } proc conf { global pkgdesc := '"Freeswitch sample configureation'" global depends := '"freeswitch-timezones'" global install := '' mkdir -p "$subpkgdir"/etc/freeswitch # move all configs except freeswitch.xml for i in ["$pkgdir"/etc/freeswitch/*] { test $i = "$pkgdir"/etc/freeswitch/freeswitch.xml && continue mv $i "$subpkgdir"/etc/freeswitch/ || return 1 } mkdir -p "$pkgdir"/etc/freeswitch/scripts } global sha512sums := '"09859c16fee07d6b7f8a54f7149bc56b49ef82d4fdf6df97df2611d117f3a6256f68bfaf19e4a307c9da0b7c80b942f02e5be4a85df3cc3f0f0a5f75ad731fa8 freeswitch-1.6.17.tar.xz 482f9804b1c6e4120b4085885650c1b15006de629e475ca16d03feb314ce8816523b349217d10e80ba5a1aeead1090d8398bb05102bd9f2ebe673869286815ad 0001-mod_avmd-use-posix-isinf.patch 8a7ca31cc80524b02edc83af891a32af64dd7834ac14b1389112f2ce7fe06fe602d24509a299898f25e807dd0b88544aecb990bf4bd37ee1c7023ae58dacd28a 0001-sofia-sip-byte-order.patch 5f93150e1acd632df98bc3bed5613fb1e45180ae4096dcfee5c060da213c8355339260eaf5758cd77c785f6d84cf0661650a872ec574b586ab19803d4f6955f8 0002-FS-verto-bswap_64.patch 5bb95dff04714bb94a8973a78cf46beb335e026e3b5e9bf6f6a5b60d94387dbe431a72c3bf37e553dc34a9773a3ea63e05b0b28d243a3ef97ad833c28c904f85 sofia-sip-libressl.patch 4ceb48f64d2bc26a02cc0846276506241bfd30c156422b0a1d608fd172c099feb5c121a763652e9a45046dcdd0ba0eb71eab240e0c6ce2ad63ff781719e135a4 getlib.patch 6deecb303e765d44bdd970d5a7079c9dd9ce17d12056b68cd978a182a86b477b4a3c19d2f5a18f36199ca2e0594a3b84de521ab821e2f8c89f7449a3d7f21279 modules.conf a585f6411185a26206137a1ad97a06fd6c73e80c5439e9be45eabfa70e7a83120169ba882971fcd328436c8e0242cbd664170b80754ea2846021689baf1f1595 freeswitch.confd 643d0a2e43f5d3bf3b99fcb6f6422302cb4b74a95eccf844eafb100b15aa9856b4ff41f112d6637255c2e9e2bec9fedc9a9215dfff214dfb83b52eae16b71dca freeswitch.initd'" (CommandList children: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgname) op:Equal rhs:{(freeswitch)} spids:[9])] spids: [9] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgver) op:Equal rhs:{(1.6.17)} spids:[12])] spids: [12] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgrel) op:Equal rhs:{(0)} spids:[15])] spids: [15] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("A communications platform written in C from the ground up"))} spids: [18] ) ] spids: [18] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:url) op: Equal rhs: {(DQ ("http://www.freeswitch.org"))} spids: [23] ) ] spids: [23] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:arch) op:Equal rhs:{(DQ (all))} spids:[28])] spids: [28] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:license) op:Equal rhs:{(DQ (GPL))} spids:[33])] spids: [33] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:makedepends) op: Equal rhs: { (DQ ("\n") ("\tbash\n") ("\tbsd-compat-headers\n") ("\tcoreutils\n") ("\tcurl-dev\n") ("\tdb-dev\n") ("\tflac-dev\n") ("\tflite-dev\n") ("\tgdbm-dev\n") ("\tgnutls-dev\n") ("\tilbc-dev\n") ("\tlame-dev\n") ("\tldns-dev\n") ("\tlibedit-dev\n") ("\tlibjpeg-turbo-dev\n") ("\tlibogg-dev\n") ("\tlibpri-dev\n") ("\tlibressl-dev\n") ("\tlibshout-dev\n") ("\tlibsndfile-dev\n") ("\tlibvorbis-dev\n") ("\tlinux-headers\n") ("\tlua5.2-dev\n") ("\tmpg123-dev\n") ("\tncurses-dev\n") ("\tnet-snmp-dev\n") ("\topus-dev\n") ("\tpcre-dev\n") ("\tperl-dev\n") ("\tportaudio-dev\n") ("\tpostgresql-dev\n") ("\tsngtc_client-dev\n") ("\tspeex-dev\n") ("\tspeexdsp-dev\n") ("\tsqlite-dev\n") ("\tunixodbc-dev\n") ("\tutil-linux-dev\n") ("\txmlrpc-c-dev\n") ("\tyasm\n") ("\tzlib-dev\n") ("\tautoconf automake libtool\n") ("\t") ) } spids: [38] ) ] spids: [38] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:install) op: Equal rhs: {(DQ ($ VSub_Name "$pkgname") (".pre-install ") ($ VSub_Name "$pkgname") (.pre-upgrade))} spids: [84] ) ] spids: [84] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:FREESWITCH_USER) op:Equal rhs:{(freeswitch)} spids:[92])] spids: [92] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:FREESWITCH_GROUP) op: Equal rhs: {(freeswitch)} spids: [95] ) ] spids: [95] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgusers) op: Equal rhs: {(DQ ($ VSub_Name "$FREESWITCH_USER"))} spids: [98] ) ] spids: [98] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkggroups) op: Equal rhs: {(DQ ($ VSub_Name "$FREESWITCH_GROUP"))} spids: [103] ) ] spids: [103] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:subpackages) op: Equal rhs: { (DQ ($ VSub_Name "$pkgname") ("-dbg ") ($ VSub_Name "$pkgname") ("-dev ") ($ VSub_Name "$pkgname") ("-flite ") ($ VSub_Name "$pkgname") ("-timezones::noarch\n") ("\t") ($ VSub_Name "$pkgname") ("-sample-config:conf:noarch ") ($ VSub_Name "$pkgname") ("-freetdm ") ($ VSub_Name "$pkgname") ("-sangoma\n") ("\t") ($ VSub_Name "$pkgname") ("-snmp ") ($ VSub_Name "$pkgname") ("-pgsql ") ($ VSub_Name "$pkgname") ("-perl ") ($ VSub_Name "$pkgname") (-perlesl) ) } spids: [108] ) ] spids: [108] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:source) op: Equal rhs: { (DQ ("http://files.freeswitch.org/freeswitch-releases/") ($ VSub_Name "$pkgname") (-) ($ VSub_Name "$pkgver") (".tar.xz\n") ("\t0001-mod_avmd-use-posix-isinf.patch\n") ("\t0001-sofia-sip-byte-order.patch\n") ("\t0002-FS-verto-bswap_64.patch\n") ("\tsofia-sip-libressl.patch\n") ("\tgetlib.patch\n") ("\tmodules.conf\n") ("\tfreeswitch.confd\n") ("\tfreeswitch.initd\n") ("\t") ) } spids: [137] ) ] spids: [137] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:builddir) op: Equal rhs: {(DQ ($ VSub_Name "$srcdir") (/) ($ VSub_Name "$pkgname") (-) ($ VSub_Name "$pkgver"))} spids: [156] ) ] spids: [156] ) (FuncDef name: prepare body: (BraceGroup children: [ (AndOr children: [ (C {(default_prepare)}) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (C {(update_config_sub)}) ] spids: [170] ) spids: [166 169] ) (FuncDef name: build body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (AndOr children: [ (C {(cp)} {(-f)} {(DQ ($ VSub_Name "$srcdir") (/modules.conf))} {(modules.conf)}) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (AndOr children: [ (SimpleCommand words: [ {(./configure)} {(--build) (Lit_Other "=") ($ VSub_Name "$CBUILD")} {(--host) (Lit_Other "=") ($ VSub_Name "$CHOST")} {(--prefix) (Lit_Other "=") (/usr)} {(--enable-fhs)} {(--localstatedir) (Lit_Other "=") (/var)} {(--sysconfdir) (Lit_Other "=") (/etc)} {(--with-scriptdir) (Lit_Other "=") (/etc/freeswitch/scripts)} {(--mandir) (Lit_Other "=") (/usr/share/man)} {(--infodir) (Lit_Other "=") (/usr/share/info)} {(--with-devrandom) (Lit_Other "=") (/dev/urandom)} {(--with-libpri)} {(--disable-debug)} {(--enable-core-pgsql-support)} {(--enable-system-lua)} {(--enable-system-xmlrpc-c)} ] more_env: [ (env_pair name: CFLAGS val: {(DQ (-Wno-unused-but-set-variable))} spids: [220] ) ] ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (C {(make)} {(src/include/switch_version.h)} {(src/include/switch_swigable_cpp.h)}) (AndOr children: [ (C {(make)} {(libfreeswitch.la)}) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (AndOr children: [ (C {(make)} {(-j1)} {(all)}) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (C {(cd)} {(DQ ($ VSub_Name "$builddir")) (/libs/esl)}) (AndOr children: [ (C {(make)} {(-j1)} {(perlmod)}) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) ] spids: [191] ) spids: [187 190] ) (FuncDef name: package body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (AndOr children: [ (C {(make)} {(-j1)} {(Lit_VarLike "DESTDIR=") (DQ ($ VSub_Name "$pkgdir"))} {(install)} {(samples-conf)} {(samples-htdocs)} ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (AndOr children: [ (C {(install)} {(-m755)} {(-D)} {(DQ ($ VSub_Name "$srcdir")) (/) ($ VSub_Name "$pkgname") (.initd)} {(DQ ($ VSub_Name "$pkgdir")) (/etc/init.d/) ($ VSub_Name "$pkgname")} ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (AndOr children: [ (C {(install)} {(-m644)} {(-D)} {(DQ ($ VSub_Name "$srcdir")) (/) ($ VSub_Name "$pkgname") (.confd)} {(DQ ($ VSub_Name "$pkgdir")) (/etc/conf.d/) ($ VSub_Name "$pkgname")} ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (C {(chown)} {(-R)} {($ VSub_Name "$FREESWITCH_USER") (Lit_Other ":") ($ VSub_Name "$FREESWITCH_GROUP")} {(DQ ($ VSub_Name "$pkgdir")) (/var/) (Lit_Other "*") (/freeswitch)} ) (C {(cd)} {(DQ ($ VSub_Name "$builddir")) (/libs/esl)}) (C {(make)} {(-j1)} {(Lit_VarLike "DESTDIR=") (DQ ($ VSub_Name "$pkgdir"))} {(perlmod-install)} ) ] spids: [385] ) spids: [382 385] ) (FuncDef name: _mv_mod body: (BraceGroup children: [ (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:moddir) op: Equal rhs: {(usr/lib/freeswitch/mod)} spids: [529] ) (assign_pair lhs:(LhsName name:i) op:Equal rhs:{(SQ )} spids:[532]) ] spids: [527] ) (C {(mkdir)} {(-p)} {(DQ ($ VSub_Name "$subpkgdir")) (/) ($ VSub_Name "$moddir")}) (ForEach iter_name: i iter_words: [{($ VSub_At "$@")}] do_arg_iter: False body: (DoGroup children: [ (AndOr children: [ (C {(mv)} {(DQ ($ VSub_Name "$pkgdir")) (/) ($ VSub_Name "$moddir") (/) ($ VSub_Name "$i") (.so) } {(DQ ($ VSub_Name "$subpkgdir")) (/) ($ VSub_Name "$moddir") (/)} ) (ControlFlow token: arg_word: {(1)} ) ] op_id: Op_DPipe ) ] spids: [555 583] ) spids: [551 553] ) ] spids: [524] ) spids: [520 523] ) (FuncDef name: flite body: (BraceGroup children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("Freeswitch Text To Speech Module"))} spids: [596] ) ] spids: [596] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:install) op:Equal rhs:{(SQ )} spids:[602])] spids: [602] ) (C {(_mv_mod)} {(mod_flite)}) ] spids: [593] ) spids: [589 592] ) (FuncDef name: freetdm body: (BraceGroup children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("Freeswitch FreeTDM Module"))} spids: [640] ) ] spids: [640] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:install) op:Equal rhs:{(SQ )} spids:[646])] spids: [646] ) (C {(_mv_mod)} {(mod_freetdm)} {(ftmod_analog)} {(ftmod_analog_em)} {(ftmod_libpri)} {(ftmod_skel)} {(ftmod_zt)} ) (C {(mv)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/lib/libfreetdm.so) (Lit_Other "*")} {(DQ ($ VSub_Name "$subpkgdir")) (/usr/lib/)} ) ] spids: [637] ) spids: [633 636] ) (FuncDef name: sangoma body: (BraceGroup children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("Freeswitch Sangoma Media Transcode Codec Module"))} spids: [689] ) ] spids: [689] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:install) op:Equal rhs:{(SQ )} spids:[695])] spids: [695] ) (C {(_mv_mod)} {(mod_sangoma_codec)}) ] spids: [686] ) spids: [682 685] ) (FuncDef name: timezones body: (BraceGroup children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("Freeswitch timezone configuration"))} spids: [712] ) ] spids: [712] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:install) op:Equal rhs:{(SQ )} spids:[718])] spids: [718] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:replaces) op: Equal rhs: {(DQ (freeswitch-sample-config))} spids: [721] ) ] spids: [721] ) (C {(mkdir)} {(-p)} {(DQ ($ VSub_Name "$subpkgdir")) (/etc/freeswitch/autoload_configs)}) (C {(mv)} {(DQ ($ VSub_Name "$pkgdir")) (/etc/freeswitch/autoload_configs/timezones.conf.xml)} {(DQ ($ VSub_Name "$subpkgdir")) (/etc/freeswitch/autoload_configs)} ) ] spids: [709] ) spids: [705 708] ) (FuncDef name: snmp body: (BraceGroup children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("Freeswitch SNMP module"))} spids: [761] ) ] spids: [761] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:install) op:Equal rhs:{(SQ )} spids:[767])] spids: [767] ) (C {(_mv_mod)} {(mod_snmp)}) ] spids: [758] ) spids: [754 757] ) (FuncDef name: pgsql body: (BraceGroup children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("Freeswitch PostgreSQL Module"))} spids: [784] ) ] spids: [784] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:install) op:Equal rhs:{(SQ )} spids:[790])] spids: [790] ) (C {(_mv_mod)} {(mod_cdr_pg_csv)}) ] spids: [781] ) spids: [777 780] ) (FuncDef name: perl body: (BraceGroup children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("Freeswitch Perl module"))} spids: [807] ) ] spids: [807] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:install) op:Equal rhs:{(SQ )} spids:[813])] spids: [813] ) (C {(_mv_mod)} {(mod_perl)}) ] spids: [804] ) spids: [800 803] ) (FuncDef name: perlesl body: (BraceGroup children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("Freeswitch Perl ESL module"))} spids: [830] ) ] spids: [830] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:install) op:Equal rhs:{(SQ )} spids:[836])] spids: [836] ) (C {(mkdir)} {(-p)} {(DQ ($ VSub_Name "$subpkgdir")) (/usr/lib/perl5)}) (C {(mv)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/lib/perl5/) (Lit_Other "*")} {(DQ ($ VSub_Name "$subpkgdir")) (/usr/lib/perl5)} ) ] spids: [827] ) spids: [823 826] ) (FuncDef name: conf body: (BraceGroup children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("Freeswitch sample configureation"))} spids: [872] ) ] spids: [872] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:depends) op: Equal rhs: {(DQ (freeswitch-timezones))} spids: [878] ) ] spids: [878] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:install) op:Equal rhs:{(SQ )} spids:[884])] spids: [884] ) (C {(mkdir)} {(-p)} {(DQ ($ VSub_Name "$subpkgdir")) (/etc/freeswitch)}) (ForEach iter_name: i iter_words: [{(DQ ($ VSub_Name "$pkgdir")) (/etc/freeswitch/) (Lit_Other "*")}] do_arg_iter: False body: (DoGroup children: [ (AndOr children: [ (C {(Lit_Other "[")} {(DQ ($ VSub_Name "$i"))} {(Lit_Other "=")} {(DQ ($ VSub_Name "$pkgdir")) (/etc/freeswitch/freeswitch.xml)} {(Lit_Other "]")} ) (ControlFlow token:) ] op_id: Op_DAmp ) (AndOr children: [ (C {(mv)} {(DQ ($ VSub_Name "$i"))} {(DQ ($ VSub_Name "$subpkgdir")) (/etc/freeswitch/)} ) (ControlFlow token: arg_word: {(1)} ) ] op_id: Op_DPipe ) ] spids: [914 955] ) spids: [906 912] ) (C {(mkdir)} {(-p)} {(DQ ($ VSub_Name "$pkgdir")) (/etc/freeswitch/scripts)}) ] spids: [869] ) spids: [865 868] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha512sums) op: Equal rhs: { (DQ ( "09859c16fee07d6b7f8a54f7149bc56b49ef82d4fdf6df97df2611d117f3a6256f68bfaf19e4a307c9da0b7c80b942f02e5be4a85df3cc3f0f0a5f75ad731fa8 freeswitch-1.6.17.tar.xz\n" ) ( "482f9804b1c6e4120b4085885650c1b15006de629e475ca16d03feb314ce8816523b349217d10e80ba5a1aeead1090d8398bb05102bd9f2ebe673869286815ad 0001-mod_avmd-use-posix-isinf.patch\n" ) ( "8a7ca31cc80524b02edc83af891a32af64dd7834ac14b1389112f2ce7fe06fe602d24509a299898f25e807dd0b88544aecb990bf4bd37ee1c7023ae58dacd28a 0001-sofia-sip-byte-order.patch\n" ) ( "5f93150e1acd632df98bc3bed5613fb1e45180ae4096dcfee5c060da213c8355339260eaf5758cd77c785f6d84cf0661650a872ec574b586ab19803d4f6955f8 0002-FS-verto-bswap_64.patch\n" ) ( "5bb95dff04714bb94a8973a78cf46beb335e026e3b5e9bf6f6a5b60d94387dbe431a72c3bf37e553dc34a9773a3ea63e05b0b28d243a3ef97ad833c28c904f85 sofia-sip-libressl.patch\n" ) ( "4ceb48f64d2bc26a02cc0846276506241bfd30c156422b0a1d608fd172c099feb5c121a763652e9a45046dcdd0ba0eb71eab240e0c6ce2ad63ff781719e135a4 getlib.patch\n" ) ( "6deecb303e765d44bdd970d5a7079c9dd9ce17d12056b68cd978a182a86b477b4a3c19d2f5a18f36199ca2e0594a3b84de521ab821e2f8c89f7449a3d7f21279 modules.conf\n" ) ( "a585f6411185a26206137a1ad97a06fd6c73e80c5439e9be45eabfa70e7a83120169ba882971fcd328436c8e0242cbd664170b80754ea2846021689baf1f1595 freeswitch.confd\n" ) ( "643d0a2e43f5d3bf3b99fcb6f6422302cb4b74a95eccf844eafb100b15aa9856b4ff41f112d6637255c2e9e2bec9fedc9a9215dfff214dfb83b52eae16b71dca freeswitch.initd" ) ) } spids: [970] ) ] spids: [970] ) ] )