# Contributor: Andy Blyler # Contributor: Ɓukasz Jendrysik # Contributor: Carlo Landmeter # Maintainer: Matt Smith global pkgname := 'php5' global pkgver := '5.6.31' global pkgrel := '1' global pkgdesc := '"The PHP language runtime engine'" global url := '"http://www.php.net/'" global arch := '"all'" global license := '"PHP-3'" global depends := ""$pkgname-cli"" global depends_dev := ""$pkgname-cli pcre-dev"" global install := ""$pkgname.post-upgrade"" global provides := '"php'" global makedepends := "" $depends_dev apache2-dev apr-dev apr-util-dev aspell-dev bzip2-dev curl-dev db-dev enchant-dev expat-dev freetds-dev freetype-dev gdbm-dev gettext-dev gmp-dev icu-dev imap-dev libevent-dev libgcrypt-dev libjpeg-turbo-dev libmcrypt-dev libpng-dev libtool libxml2-dev libxslt-dev mariadb-dev net-snmp-dev openldap-dev libressl-dev postgresql-dev readline-dev sqlite-dev unixodbc-dev zlib-dev autoconf bison "" global subpackages := ""$pkgname-dbg $pkgname-dev $pkgname-doc $pkgname-common::noarch $pkgname-cgi $pkgname-cli $pkgname-fpm $pkgname-apache2 $pkgname-embed $pkgname-phpdbg $pkgname-pear::noarch $pkgname-bcmath $pkgname-bz2 $pkgname-calendar $pkgname-ctype $pkgname-curl:_curl $pkgname-dba $pkgname-dom $pkgname-enchant $pkgname-exif $pkgname-ftp $pkgname-gd $pkgname-gettext $pkgname-gmp $pkgname-iconv $pkgname-imap $pkgname-intl $pkgname-json $pkgname-ldap $pkgname-mcrypt $pkgname-mysql $pkgname-mysqli $pkgname-odbc $pkgname-openssl $pkgname-pcntl $pkgname-pdo $pkgname-pdo_mysql $pkgname-pdo_odbc $pkgname-pdo_pgsql $pkgname-pdo_sqlite $pkgname-pgsql $pkgname-phar $pkgname-posix $pkgname-pspell $pkgname-shmop $pkgname-snmp $pkgname-soap $pkgname-sockets $pkgname-sqlite3 $pkgname-sysvmsg $pkgname-sysvsem $pkgname-sysvshm $pkgname-xml $pkgname-xmlreader $pkgname-xmlrpc $pkgname-xsl $pkgname-zip $pkgname-zlib $pkgname-mssql $pkgname-pdo_dblib $pkgname-wddx $pkgname-opcache "" global source := ""http://php.net/distributions/php-$pkgver.tar.bz2 php-fpm.initd php5-module.conf php-install-pear-xml.patch gd-iconv.patch "" global _apiver := '"20131106'" global _extdir := ""/usr/lib/$pkgname/modules"" global _srcdir := ""$srcdir"/php-$pkgver" global _confdir := "/etc/$pkgname" # seems like pear hardcode /usr/share/pear directory global _peardir := '/usr/share/pear' # secfixes: # 5.6.31-r0: # - CVE-2017-9224 # - CVE-2017-9226 # - CVE-2017-9227 # - CVE-2017-9228 # - CVE-2017-9229 proc prepare { cd $_srcdir update_config_sub for i in [$source] { matchstr $i { *.patch { msg $i; patch -p1 -i "$srcdir"/$i || return 1} } } # safty check for api changes var vapi = $[sed -n '/#define PHP_API_VERSION/{s/.* //;p}' main/php.h] if test $vapi != $_apiver { error "Upstreram API version is now $vapi. Expecting $_vapi" return 1 } autoconf } proc _do_build { var _flavor = $1 shift var _builddir = ""$srcdir"/build-$_flavor" mkdir -p $_builddir cd $_builddir export EXTENSION_DIR=$_extdir export PEAR_INSTALLDIR="$_peardir" "$_srcdir"/configure $ifsjoin(Argv) || return 1 sed -ri "s/^(EXTRA_LDFLAGS[ ]*\=.*)/\1 -lpthread/" Makefile # see #183 make || return 1 } proc build { global _phpconfig := ""\ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=$_confdir \ --localstatedir=/var \ --with-layout=GNU \ --with-config-file-path=$_confdir \ --with-config-file-scan-dir=$_confdir/conf.d \ --enable-inline-optimization \ --disable-debug \ --disable-rpath \ --disable-static \ --enable-shared \ --mandir=/usr/share/man \ --with-pic \ --program-suffix=5 \ "" global _phpextensions := '" \ --enable-bcmath=shared \ --with-bz2=shared \ --enable-calendar=shared \ --with-cdb \ --enable-ctype=shared \ --with-curl=shared \ --enable-dba=shared \ --with-db4=shared \ --enable-dom=shared \ --with-enchant=shared \ --enable-exif=shared \ --with-freetype-dir=shared,/usr \ --enable-ftp=shared \ --with-gd=shared \ --enable-gd-native-ttf \ --with-gdbm=shared \ --with-gettext=shared \ --with-gmp=shared \ --with-iconv=shared \ --with-icu-dir=/usr \ --with-imap=shared \ --with-imap-ssl=shared \ --enable-intl=shared \ --with-jpeg-dir=shared,/usr \ --enable-json=shared \ --with-ldap=shared \ --enable-libxml=shared \ --enable-mbregex \ --enable-mbstring=all \ --with-mcrypt=shared \ --with-mysql=shared,mysqlnd \ --with-mysql-sock=/var/run/mysqld/mysqld.sock \ --with-mysqli=shared,mysqlnd \ --with-openssl=shared \ --with-pcre-regex=/usr \ --enable-pcntl=shared \ --enable-pdo=shared \ --with-pdo-mysql=shared,mysqlnd \ --with-pdo-odbc=shared,unixODBC,/usr \ --with-pdo-pgsql=shared \ --with-pdo-sqlite=shared,/usr \ --with-pgsql=shared \ --enable-phar=shared \ --with-png-dir=shared,/usr \ --enable-posix=shared \ --with-pspell=shared \ --with-regex=php \ --enable-session \ --enable-shmop=shared \ --with-snmp=shared \ --enable-soap=shared \ --enable-sockets=shared \ --with-sqlite3=shared,/usr \ --enable-sysvmsg=shared \ --enable-sysvsem=shared \ --enable-sysvshm=shared \ --with-unixODBC=shared,/usr \ --enable-xml=shared \ --enable-xmlreader=shared \ --with-xmlrpc=shared \ --with-xsl=shared \ --enable-wddx=shared \ --enable-zip=shared \ --with-zlib=shared \ --without-db1 \ --without-db2 \ --without-db3 \ --without-qdbm \ --with-mssql=shared \ --with-pdo-dblib=shared \ --enable-opcache \ '" # cgi, fcgi, cli, pear and extensions _do_build cgi \ $(_phpconfig) \ --disable-cli \ --enable-cgi \ --enable-cli \ --with-pear \ --with-readline \ --enable-phpdbg \ $(_phpextensions) \ || return 1 # fpm cp -a "$srcdir"/build-cgi "$srcdir"/build-fpm _do_build fpm \ $(_phpconfig) \ --disable-cli \ --enable-fpm \ $(_phpextensions) \ || return 1 # apache2 cp -a "$srcdir"/build-cgi "$srcdir"/build-apache2 _do_build apache2 \ $(_phpconfig) \ --disable-cli \ --with-apxs2 \ $(_phpextensions) \ || return 1 # embed cp -a "$srcdir"/build-cgi "$srcdir"/build-embed _do_build embed \ $(_phpconfig) \ --disable-cli \ --enable-embed=shared \ $(_phpextensions) \ || return 1 } proc package { cd "$srcdir"/build-cgi # install php-cgi, cli, pear and modules make -j1 install install-pear INSTALL_ROOT="$pkgdir" || return 1 # cleanup after pear find $pkgdir -name '.*' | xargs rm -rf || return 1 # install embed install -D -m755 "$srcdir"/build-embed/libs/libphp5.so \ "$pkgdir"/usr/lib/libphp5.so || return 1 install -D -m644 "$_srcdir"/sapi/embed/php_embed.h \ "$pkgdir"/usr/include/php/sapi/embed/php_embed.h || return 1 } proc dev { default_dev || return 1 mkdir -p "$subpkgdir"/usr/lib/php "$subpkgdir"/usr/bin mv "$pkgdir"/usr/lib/php/build \ "$subpkgdir"/usr/lib/php/ || return 1 mv "$pkgdir"/usr/bin/php-config5 "$subpkgdir"/usr/bin/ } proc doc { # man pages default_doc || return 1 cd "$srcdir"/php-$pkgver # doc files global _docs := '"CODING_STANDARDS CREDITS EXTENSIONS INSTALL LICENSE NEWS \ UPGRADING UPGRADING.INTERNALS'" for _doc in [$_docs README.*] { install -Dm644 "$srcdir"/php-$pkgver/$_doc \ "$subpkgdir"/usr/share/doc/$pkgname/$_doc || return 1 } } proc common { global pkgdesc := '"PHP Common Files'" global depends := ''"" cd "$srcdir"/php-$pkgver install -D -m644 php.ini-production "$subpkgdir"$_confdir/php.ini sed -ri -e "s:^; extension_dir = \"./\":extension_dir = \"$_extdir\":" \ -e 's/;(date.timezone =)/\1 UTC/' \ -e "s~^([;]*cgi\.rfc2616_headers.*)$~\1\n\n\; If this is enabled, the PHP CGI binary can safely be placed outside of the\n; web tree and people will not be able to circumvent .htaccess security.\ncgi\.discard_path = 1~" \ "$subpkgdir"$_confdir/php.ini } proc cgi { global pkgdesc := '"PHP Common Gateway Interface (CGI)'" global depends := ""$pkgname-common"" mkdir -p "$subpkgdir"/usr/bin mv "$pkgdir"/usr/bin/php-cgi* "$subpkgdir"/usr/bin/ } proc cli { global pkgdesc := '"PHP Command Line Interface (CLI)'" global depends := ""$pkgname-common"" mkdir -p "$subpkgdir"/usr/bin mv "$pkgdir"/usr/bin/php5 "$subpkgdir"/usr/bin/ || return 1 # provide phpize here instead of -dev due to pecl command mv "$pkgdir"/usr/bin/phpize* "$subpkgdir"/usr/bin/ || return 1 } proc fpm { global pkgdesc := '"PHP FastCGI Process Manager (FPM)'" global depends := ""$pkgname-common"" mkdir -p "$subpkgdir"$_confdir/fpm.d install -D -m755 "$srcdir"/build-fpm/sapi/fpm/php-fpm \ "$subpkgdir"/usr/bin/php-fpm5 || return 1 install -D -m644 "$srcdir"/build-fpm/sapi/fpm/php-fpm.conf \ "$subpkgdir"$_confdir/php-fpm.conf || return 1 install -D -m755 "$srcdir"/php-fpm.initd "$subpkgdir"/etc/init.d/php-fpm # enable some default options sed -ri -e "s~^;(error_log)(.*)~\1 = /var/log/php-fpm.log~" \ -e "s~^;(include)(.*)~\1 = $_confdir/fpm.d/*.conf~" \ -e "s/^;(pm.start_servers)/\1/" \ -e "s/^;(pm.min_spare_servers)/\1/" \ -e "s/^;(pm.max_spare_servers)/\1/" \ "$subpkgdir"$_confdir/php-fpm.conf || return 1 } proc apache2 { global pkgdesc := '"PHP Module for Apache2'" global depends := ""$pkgname-common apache2"" install -D -m755 "$srcdir"/build-apache2/libs/libphp5.so \ "$subpkgdir"/usr/lib/apache2/libphp5.so || return 1 install -D -m644 "$srcdir"/php5-module.conf \ "$subpkgdir"/etc/apache2/conf.d/php5-module.conf || return 1 } proc embed { global pkgdesc := '"PHP Embed Library'" global depends := ""$pkgname-common"" mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/libphp5.so "$subpkgdir"/usr/lib/ } proc pear { global pkgdesc := '"PHP Extension and Application Repository (PEAR)'" global depends := ""$pkgname-cli $pkgname-xml"" mkdir -p "$subpkgdir"/usr/share "$subpkgdir"$_confdir \ "$subpkgdir"/usr/bin mv "$pkgdir"/usr/bin/pecl \ "$pkgdir"/usr/bin/pear \ "$pkgdir"/usr/bin/peardev \ "$subpkgdir"/usr/bin/ || return 1 mv "$pkgdir"$_confdir/pear.conf \ "$subpkgdir"$_confdir/ || return 1 mv "$pkgdir"$(_peardir) \ "$subpkgdir"/usr/share/ || return 1 } proc phpdbg { global pkgdesc := '"Interactive PHP debugger'" mkdir -p "$subpkgdir"/usr/bin mv "$pkgdir"/usr/bin/phpdbg* "$subpkgdir"/usr/bin/ } proc _mv_ext { var ext = $1 var ini = "$ext.ini" global pkgdesc := ""$(ext) extension for PHP"" # extension dependencies if test -n $(2-) { global depends := $(2-) } global depends := ""$(pkgname) $(depends)"" # work around dependency issue # https://bugs.alpinelinux.org/issues/1848 if test $ext = "wddx" { ini := "xml_$ext.ini" } mkdir -p "$subpkgdir"/$_extdir mv "$pkgdir"/$_extdir/$(ext).so "$subpkgdir"/$_extdir/ || return 1 mkdir -p "$subpkgdir"$_confdir/conf.d matchstr $1 { opcache { echo "zend_extension=$(ext).so" > "$subpkgdir"$_confdir/conf.d/$ini } * { echo "extension=$(ext).so" > "$subpkgdir"$_confdir/conf.d/$ini } } } proc bcmath { _mv_ext bcmath; } proc bz2 { _mv_ext bz2; } proc calendar { _mv_ext calendar; } proc ctype { _mv_ext ctype; } proc _curl { _mv_ext curl; } proc dba { _mv_ext dba; } proc dom { _mv_ext dom; } proc enchant { _mv_ext enchant; } proc exif { _mv_ext exif; } proc ftp { _mv_ext ftp; } proc gd { _mv_ext gd; } proc gettext { _mv_ext gettext; } proc gmp { _mv_ext gmp; } proc iconv { _mv_ext iconv; } proc imap { _mv_ext imap; } proc intl { _mv_ext intl; } proc json { _mv_ext json; } proc ldap { _mv_ext ldap; } proc mcrypt { _mv_ext mcrypt; } proc mysql { _mv_ext mysql; } proc mysqli { _mv_ext mysqli; } proc odbc { _mv_ext odbc unixodbc; } proc openssl { _mv_ext openssl; } proc pcntl { _mv_ext pcntl; } proc pdo { _mv_ext pdo; } proc pdo_mysql { _mv_ext pdo_mysql $pkgname-pdo; } proc pdo_odbc { _mv_ext pdo_odbc $pkgname-pdo; } proc pdo_pgsql { _mv_ext pdo_pgsql $pkgname-pdo; } proc pdo_sqlite { _mv_ext pdo_sqlite $pkgname-pdo; } proc pgsql { _mv_ext pgsql; } proc phar { _mv_ext phar mkdir -p "$subpkgdir"/usr/bin mv "$pkgdir"/usr/bin/phar* "$subpkgdir"/usr/bin/ } proc posix { _mv_ext posix; } proc pspell { _mv_ext pspell; } proc shmop { _mv_ext shmop; } proc snmp { _mv_ext snmp; } proc soap { _mv_ext soap; } proc sockets { _mv_ext sockets; } proc sqlite3 { _mv_ext sqlite3; } proc sysvmsg { _mv_ext sysvmsg; } proc sysvsem { _mv_ext sysvsem; } proc sysvshm { _mv_ext sysvshm; } proc xml { _mv_ext xml; } proc xmlreader { _mv_ext xmlreader $pkgname-dom; } proc xmlrpc { _mv_ext xmlrpc $pkgname-xml; } proc xsl { _mv_ext xsl $pkgname-dom; } proc zip { _mv_ext zip; } proc zlib { _mv_ext zlib; } proc mssql { _mv_ext mssql; } proc pdo_dblib { _mv_ext pdo_dblib "$pkgname-pdo freetds"; } proc wddx { _mv_ext wddx; } proc opcache { _mv_ext opcache; } global sha512sums := '"fe0a0572917287a89910cc4d1bca7a8be17fb09d0459d68fea7b32f4b9fd94efbf36d90f8d7d34baee60efc6b0aeac1414a658fc0b451c5eb2f8e3864e20e3c0 php-5.6.31.tar.bz2 f7d922cab98617ef910b4c14974e768c85e60424cd1b216f688b34b2d823b642a5b896463008c134ce47c150f9407f5c438823b7e7bc89b3fb440cd3e97b9d7e php-fpm.initd 895e94c791bd82060ad820fef049d366a09c932097faa6b7b9a2c2e9e00a18cb7c0f9b128679c7659b404379266fd0f95dba5c0333f626194cf60f7bf6044102 php5-module.conf f1177cbf6b1f44402f421c3d317aab1a2a40d0b1209c11519c1158df337c8945f3a313d689c939768584f3e4edbe52e8bd6103fb6777462326a9d94e8ab1f505 php-install-pear-xml.patch 6ecd0be2da1dc5b1d7512e46a2a5cd107a8b2a8c364efc9c624a7d6b2ab081685a329c94c22c970dc14c5c1115f702c512e97ae858da1bc69c6423323dbeeba2 gd-iconv.patch'" (CommandList children: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgname) op:Equal rhs:{(php5)} spids:[12])] spids: [12] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgver) op:Equal rhs:{(5.6.31)} spids:[15])] spids: [15] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgrel) op:Equal rhs:{(1)} spids:[18])] spids: [18] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("The PHP language runtime engine"))} spids: [21] ) ] spids: [21] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:url) op: Equal rhs: {(DQ ("http://www.php.net/"))} spids: [26] ) ] spids: [26] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:arch) op:Equal rhs:{(DQ (all))} spids:[31])] spids: [31] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:license) op:Equal rhs:{(DQ (PHP-3))} spids:[36])] spids: [36] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:depends) op: Equal rhs: {(DQ ($ VSub_Name "$pkgname") (-cli))} spids: [41] ) ] spids: [41] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:depends_dev) op: Equal rhs: {(DQ ($ VSub_Name "$pkgname") ("-cli pcre-dev"))} spids: [47] ) ] spids: [47] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:install) op: Equal rhs: {(DQ ($ VSub_Name "$pkgname") (.post-upgrade))} spids: [53] ) ] spids: [53] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:provides) op:Equal rhs:{(DQ (php))} spids:[59])] spids: [59] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:makedepends) op: Equal rhs: { (DQ ("\n") ("\t") ($ VSub_Name "$depends_dev") ("\n") ("\tapache2-dev\n") ("\tapr-dev\n") ("\tapr-util-dev\n") ("\taspell-dev\n") ("\tbzip2-dev\n") ("\tcurl-dev\n") ("\tdb-dev\n") ("\tenchant-dev\n") ("\texpat-dev\n") ("\tfreetds-dev\n") ("\tfreetype-dev\n") ("\tgdbm-dev\n") ("\tgettext-dev\n") ("\tgmp-dev\n") ("\ticu-dev\n") ("\timap-dev\n") ("\tlibevent-dev\n") ("\tlibgcrypt-dev\n") ("\tlibjpeg-turbo-dev\n") ("\tlibmcrypt-dev\n") ("\tlibpng-dev\n") ("\tlibtool\n") ("\tlibxml2-dev\n") ("\tlibxslt-dev\n") ("\tmariadb-dev\n") ("\tnet-snmp-dev\n") ("\topenldap-dev\n") ("\tlibressl-dev\n") ("\tpostgresql-dev\n") ("\treadline-dev\n") ("\tsqlite-dev\n") ("\tunixodbc-dev\n") ("\tzlib-dev\n") ("\tautoconf\n") ("\tbison\n") ("\t") ) } spids: [64] ) ] spids: [64] ) (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") ("-doc ") ($ VSub_Name "$pkgname") ("-common::noarch ") ($ VSub_Name "$pkgname") ("-cgi\n") ("\t") ($ VSub_Name "$pkgname") ("-cli ") ($ VSub_Name "$pkgname") ("-fpm ") ($ VSub_Name "$pkgname") ("-apache2 ") ($ VSub_Name "$pkgname") ("-embed\n") ("\t") ($ VSub_Name "$pkgname") ("-phpdbg\n") ("\n") ("\t") ($ VSub_Name "$pkgname") ("-pear::noarch\n") ("\t") ($ VSub_Name "$pkgname") ("-bcmath\n") ("\t") ($ VSub_Name "$pkgname") ("-bz2\n") ("\t") ($ VSub_Name "$pkgname") ("-calendar\n") ("\t") ($ VSub_Name "$pkgname") ("-ctype\n") ("\t") ($ VSub_Name "$pkgname") ("-curl:_curl\n") ("\t") ($ VSub_Name "$pkgname") ("-dba\n") ("\t") ($ VSub_Name "$pkgname") ("-dom\n") ("\t") ($ VSub_Name "$pkgname") ("-enchant\n") ("\t") ($ VSub_Name "$pkgname") ("-exif\n") ("\t") ($ VSub_Name "$pkgname") ("-ftp\n") ("\t") ($ VSub_Name "$pkgname") ("-gd\n") ("\t") ($ VSub_Name "$pkgname") ("-gettext\n") ("\t") ($ VSub_Name "$pkgname") ("-gmp\n") ("\t") ($ VSub_Name "$pkgname") ("-iconv\n") ("\t") ($ VSub_Name "$pkgname") ("-imap\n") ("\t") ($ VSub_Name "$pkgname") ("-intl\n") ("\t") ($ VSub_Name "$pkgname") ("-json\n") ("\t") ($ VSub_Name "$pkgname") ("-ldap\n") ("\t") ($ VSub_Name "$pkgname") ("-mcrypt\n") ("\t") ($ VSub_Name "$pkgname") ("-mysql\n") ("\t") ($ VSub_Name "$pkgname") ("-mysqli\n") ("\t") ($ VSub_Name "$pkgname") ("-odbc\n") ("\t") ($ VSub_Name "$pkgname") ("-openssl\n") ("\t") ($ VSub_Name "$pkgname") ("-pcntl\n") ("\t") ($ VSub_Name "$pkgname") ("-pdo\n") ("\t") ($ VSub_Name "$pkgname") ("-pdo_mysql\n") ("\t") ($ VSub_Name "$pkgname") ("-pdo_odbc\n") ("\t") ($ VSub_Name "$pkgname") ("-pdo_pgsql\n") ("\t") ($ VSub_Name "$pkgname") ("-pdo_sqlite\n") ("\t") ($ VSub_Name "$pkgname") ("-pgsql\n") ("\t") ($ VSub_Name "$pkgname") ("-phar\n") ("\t") ($ VSub_Name "$pkgname") ("-posix\n") ("\t") ($ VSub_Name "$pkgname") ("-pspell\n") ("\t") ($ VSub_Name "$pkgname") ("-shmop\n") ("\t") ($ VSub_Name "$pkgname") ("-snmp\n") ("\t") ($ VSub_Name "$pkgname") ("-soap\n") ("\t") ($ VSub_Name "$pkgname") ("-sockets\n") ("\t") ($ VSub_Name "$pkgname") ("-sqlite3\n") ("\t") ($ VSub_Name "$pkgname") ("-sysvmsg\n") ("\t") ($ VSub_Name "$pkgname") ("-sysvsem\n") ("\t") ($ VSub_Name "$pkgname") ("-sysvshm\n") ("\t") ($ VSub_Name "$pkgname") ("-xml\n") ("\t") ($ VSub_Name "$pkgname") ("-xmlreader\n") ("\t") ($ VSub_Name "$pkgname") ("-xmlrpc\n") ("\t") ($ VSub_Name "$pkgname") ("-xsl\n") ("\t") ($ VSub_Name "$pkgname") ("-zip\n") ("\t") ($ VSub_Name "$pkgname") ("-zlib\n") ("\t") ($ VSub_Name "$pkgname") ("-mssql\n") ("\t") ($ VSub_Name "$pkgname") ("-pdo_dblib\n") ("\t") ($ VSub_Name "$pkgname") ("-wddx\n") ("\t") ($ VSub_Name "$pkgname") ("-opcache\n") ("\t") ) } spids: [108] ) ] spids: [108] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:source) op: Equal rhs: { (DQ ("http://php.net/distributions/php-") ($ VSub_Name "$pkgver") (".tar.bz2\n") ("\tphp-fpm.initd\n") ("\tphp5-module.conf\n") ("\tphp-install-pear-xml.patch\n") ("\tgd-iconv.patch\n") ("\t") ) } spids: [293] ) ] spids: [293] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:_apiver) op:Equal rhs:{(DQ (20131106))} spids:[306])] spids: [306] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:_extdir) op: Equal rhs: {(DQ (/usr/lib/) ($ VSub_Name "$pkgname") (/modules))} spids: [311] ) ] spids: [311] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:_srcdir) op: Equal rhs: {(DQ ($ VSub_Name "$srcdir")) (/php-) ($ VSub_Name "$pkgver")} spids: [318] ) ] spids: [318] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:_confdir) op: Equal rhs: {(/etc/) ($ VSub_Name "$pkgname")} spids: [325] ) ] spids: [325] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:_peardir) op:Equal rhs:{(/usr/share/pear)} spids:[333])] spids: [333] ) (FuncDef name: prepare body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$_srcdir"))}) (C {(update_config_sub)}) (ForEach iter_name: i iter_words: [{($ VSub_Name "$source")}] do_arg_iter: False body: (DoGroup children: [ (Case to_match: {($ VSub_Name "$i")} arms: [ (case_arm pat_list: [{(Lit_Other "*") (.patch)}] action: [ (Sentence child: (C {(msg)} {($ VSub_Name "$i")}) terminator: ) (AndOr children: [ (C {(patch)} {(-p1)} {(-i)} {(DQ ($ VSub_Name "$srcdir")) (/) ($ VSub_Name "$i")} ) (ControlFlow token: arg_word: {(1)} ) ] op_id: Op_DPipe ) ] spids: [395 397 421 -1] ) ] spids: [388 392 424] ) ] spids: [385 427] ) spids: [381 383] ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:vapi) op: Equal rhs: { (CommandSubPart command_list: (CommandList children: [ (C {(sed)} {(-n)} {(SQ <"/#define PHP_API_VERSION/{s/.* //;p}">)} {(main/php.h)} ) ] ) left_token: spids: [438 448] ) } spids: [437] ) ] spids: [435] ) (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other "[")} {(DQ ($ VSub_Name "$vapi"))} {(KW_Bang "!") (Lit_Other "=")} {(DQ ($ VSub_Name "$_apiver"))} {(Lit_Other "]")} ) terminator: ) ] action: [ (C {(error)} { (DQ ("Upstreram API version is now ") ($ VSub_Name "$vapi") (". Expecting ") ($ VSub_Name "$_vapi") ) } ) (ControlFlow token: arg_word:{(1)}) ] spids: [-1 469] ) ] spids: [-1 487] ) (C {(autoconf)}) ] spids: [363] ) spids: [359 362] ) (FuncDef name: _do_build body: (BraceGroup children: [ (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:_flavor) op: Equal rhs: {(DQ ($ VSub_Number "$1"))} spids: [504] ) ] spids: [502] ) (C {(shift)}) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:_builddir) op: Equal rhs: {(DQ ($ VSub_Name "$srcdir")) (/build-) ($ VSub_Name "$_flavor")} spids: [515] ) ] spids: [513] ) (C {(mkdir)} {(-p)} {(DQ ($ VSub_Name "$_builddir"))}) (C {(cd)} {(DQ ($ VSub_Name "$_builddir"))}) (C {(export)} {(Lit_VarLike "EXTENSION_DIR=") ($ VSub_Name "$_extdir")}) (C {(export)} {(Lit_VarLike "PEAR_INSTALLDIR=") (DQ ($ VSub_Name "$_peardir"))}) (AndOr children: [ (C {(DQ ($ VSub_Name "$_srcdir")) (/configure)} {($ VSub_At "$@")}) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (C {(sed)} {(-ri)} { (DQ ("s/^(EXTRA_LDFLAGS[ ]*") (EscapedLiteralPart token:) (" -lpthread/") ) } {(Makefile)} ) (AndOr children: [(C {(make)}) (ControlFlow token: arg_word:{(1)})] op_id: Op_DPipe ) ] spids: [499] ) spids: [495 498] ) (FuncDef name: build body: (BraceGroup children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:_phpconfig) op: Equal rhs: { (DQ ("\t\t--build=") ($ VSub_Name "$CBUILD") (" ") ("\t\t--host=") ($ VSub_Name "$CHOST") (" ") ("\t\t--prefix=/usr ") ("\t\t--sysconfdir=") ($ VSub_Name "$_confdir") (" ") ("\t\t--localstatedir=/var ") ("\t\t--with-layout=GNU ") ("\t\t--with-config-file-path=") ($ VSub_Name "$_confdir") (" ") ("\t\t--with-config-file-scan-dir=") ($ VSub_Name "$_confdir") ("/conf.d ") ("\t\t--enable-inline-optimization ") ("\t\t--disable-debug ") ("\t\t--disable-rpath ") ("\t\t--disable-static ") ("\t\t--enable-shared ") ("\t\t--mandir=/usr/share/man ") ("\t\t--with-pic ") ("\t\t--program-suffix=5 ") ("\t\t") ) } spids: [603] ) ] spids: [603] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:_phpextensions) op: Equal rhs: { (DQ (" ") ("\t\t--enable-bcmath=shared ") ("\t\t --with-bz2=shared ") ("\t\t--enable-calendar=shared ") ("\t\t --with-cdb ") ("\t\t--enable-ctype=shared ") ("\t\t --with-curl=shared ") ("\t\t--enable-dba=shared ") ("\t\t --with-db4=shared ") ("\t\t--enable-dom=shared ") ("\t\t --with-enchant=shared ") ("\t\t--enable-exif=shared ") ("\t\t --with-freetype-dir=shared,/usr ") ("\t\t--enable-ftp=shared ") ("\t\t --with-gd=shared ") ("\t\t--enable-gd-native-ttf ") ("\t\t --with-gdbm=shared ") ("\t\t --with-gettext=shared ") ("\t\t --with-gmp=shared ") ("\t\t --with-iconv=shared ") ("\t\t --with-icu-dir=/usr ") ("\t\t --with-imap=shared ") ("\t\t --with-imap-ssl=shared ") ("\t\t--enable-intl=shared ") ("\t\t --with-jpeg-dir=shared,/usr ") ("\t\t--enable-json=shared ") ("\t\t --with-ldap=shared ") ("\t\t--enable-libxml=shared ") ("\t\t--enable-mbregex ") ("\t\t--enable-mbstring=all ") ("\t\t --with-mcrypt=shared ") ("\t\t --with-mysql=shared,mysqlnd ") ("\t\t --with-mysql-sock=/var/run/mysqld/mysqld.sock ") ("\t\t --with-mysqli=shared,mysqlnd ") ("\t\t --with-openssl=shared ") ("\t\t --with-pcre-regex=/usr ") ("\t\t--enable-pcntl=shared ") ("\t\t--enable-pdo=shared ") ("\t\t --with-pdo-mysql=shared,mysqlnd ") ("\t\t --with-pdo-odbc=shared,unixODBC,/usr ") ("\t\t --with-pdo-pgsql=shared ") ("\t\t --with-pdo-sqlite=shared,/usr ") ("\t\t --with-pgsql=shared ") ("\t\t--enable-phar=shared ") ("\t\t --with-png-dir=shared,/usr ") ("\t\t--enable-posix=shared ") ("\t\t --with-pspell=shared ") ("\t\t --with-regex=php ") ("\t\t--enable-session ") ("\t\t--enable-shmop=shared ") ("\t\t --with-snmp=shared ") ("\t\t--enable-soap=shared ") ("\t\t--enable-sockets=shared ") ("\t\t --with-sqlite3=shared,/usr ") ("\t\t--enable-sysvmsg=shared ") ("\t\t--enable-sysvsem=shared ") ("\t\t--enable-sysvshm=shared ") ("\t\t --with-unixODBC=shared,/usr ") ("\t\t--enable-xml=shared ") ("\t\t--enable-xmlreader=shared ") ("\t\t --with-xmlrpc=shared ") ("\t\t --with-xsl=shared ") ("\t\t--enable-wddx=shared ") ("\t\t--enable-zip=shared ") ("\t\t --with-zlib=shared ") ("\t\t--without-db1 ") ("\t\t--without-db2 ") ("\t\t--without-db3 ") ("\t\t--without-qdbm ") ("\t\t--with-mssql=shared ") ("\t\t--with-pdo-dblib=shared ") ("\t\t--enable-opcache ") ("\t\t") ) } spids: [653] ) ] spids: [653] ) (AndOr children: [ (C {(_do_build)} {(cgi)} {(${ VSub_Name _phpconfig)} {(--disable-cli)} {(--enable-cgi)} {(--enable-cli)} {(--with-pear)} {(--with-readline)} {(--enable-phpdbg)} {(${ VSub_Name _phpextensions)} ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (C {(cp)} {(-a)} {(DQ ($ VSub_Name "$srcdir")) (/build-cgi)} {(DQ ($ VSub_Name "$srcdir")) (/build-fpm)} ) (AndOr children: [ (C {(_do_build)} {(fpm)} {(${ VSub_Name _phpconfig)} {(--disable-cli)} {(--enable-fpm)} {(${ VSub_Name _phpextensions)} ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (C {(cp)} {(-a)} {(DQ ($ VSub_Name "$srcdir")) (/build-cgi)} {(DQ ($ VSub_Name "$srcdir")) (/build-apache2)} ) (AndOr children: [ (C {(_do_build)} {(apache2)} {(${ VSub_Name _phpconfig)} {(--disable-cli)} {(--with-apxs2)} {(${ VSub_Name _phpextensions)} ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (C {(cp)} {(-a)} {(DQ ($ VSub_Name "$srcdir")) (/build-cgi)} {(DQ ($ VSub_Name "$srcdir")) (/build-embed)} ) (AndOr children: [ (C {(_do_build)} {(embed)} {(${ VSub_Name _phpconfig)} {(--disable-cli)} {(--enable-embed) (Lit_Other "=") (shared)} {(${ VSub_Name _phpextensions)} ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) ] spids: [600] ) spids: [596 599] ) (FuncDef name: package body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$srcdir")) (/build-cgi)}) (AndOr children: [ (C {(make)} {(-j1)} {(install)} {(install-pear)} {(Lit_VarLike "INSTALL_ROOT=") (DQ ($ VSub_Name "$pkgdir"))} ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (AndOr children: [ (Pipeline children: [ (C {(find)} {(DQ ($ VSub_Name "$pkgdir"))} {(-name)} {(SQ <".*">)}) (C {(xargs)} {(rm)} {(-rf)}) ] negated: False ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (AndOr children: [ (C {(install)} {(-D)} {(-m755)} {(DQ ($ VSub_Name "$srcdir")) (/build-embed/libs/libphp5.so)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/lib/libphp5.so)} ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (AndOr children: [ (C {(install)} {(-D)} {(-m644)} {(DQ ($ VSub_Name "$_srcdir")) (/sapi/embed/php_embed.h)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/include/php/sapi/embed/php_embed.h)} ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) ] spids: [1024] ) spids: [1020 1023] ) (FuncDef name: dev body: (BraceGroup children: [ (AndOr children: [ (C {(default_dev)}) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (C {(mkdir)} {(-p)} {(DQ ($ VSub_Name "$subpkgdir")) (/usr/lib/php)} {(DQ ($ VSub_Name "$subpkgdir")) (/usr/bin)} ) (AndOr children: [ (C {(mv)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/lib/php/build)} {(DQ ($ VSub_Name "$subpkgdir")) (/usr/lib/php/)} ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (C {(mv)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/bin/php-config5)} {(DQ ($ VSub_Name "$subpkgdir")) (/usr/bin/)} ) ] spids: [1152] ) spids: [1148 1151] ) (FuncDef name: doc body: (BraceGroup children: [ (AndOr children: [ (C {(default_doc)}) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (C {(cd)} {(DQ ($ VSub_Name "$srcdir")) (/php-) ($ VSub_Name "$pkgver")}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:_docs) op: Equal rhs: { (DQ ("CODING_STANDARDS CREDITS EXTENSIONS INSTALL LICENSE NEWS ") ("\tUPGRADING UPGRADING.INTERNALS") ) } spids: [1250] ) ] spids: [1250] ) (ForEach iter_name: _doc iter_words: [{($ VSub_Name "$_docs")} {(README.) (Lit_Other "*")}] do_arg_iter: False body: (DoGroup children: [ (AndOr children: [ (C {(install)} {(-Dm644)} {(DQ ($ VSub_Name "$srcdir")) (/php-) ($ VSub_Name "$pkgver") (/) ($ VSub_Name "$_doc") } {(DQ ($ VSub_Name "$subpkgdir")) (/usr/share/doc/) ($ VSub_Name "$pkgname") (/) ($ VSub_Name "$_doc")} ) (ControlFlow token: arg_word: {(1)} ) ] op_id: Op_DPipe ) ] spids: [1270 1302] ) spids: [1263 1268] ) ] spids: [1220] ) spids: [1216 1219] ) (FuncDef name: common body: (BraceGroup children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("PHP Common Files"))} spids: [1314] ) ] spids: [1314] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:depends) op:Equal rhs:{(DQ )} spids:[1320])] spids: [1320] ) (C {(cd)} {(DQ ($ VSub_Name "$srcdir")) (/php-) ($ VSub_Name "$pkgver")}) (C {(install)} {(-D)} {(-m644)} {(php.ini-production)} {(DQ ($ VSub_Name "$subpkgdir")) ($ VSub_Name "$_confdir") (/php.ini)} ) (C {(sed)} {(-ri)} {(-e)} { (DQ ("s:^; extension_dir = ") (EscapedLiteralPart token:) (./) (EscapedLiteralPart token:) (":extension_dir = ") (EscapedLiteralPart token:) ($ VSub_Name "$_extdir") (EscapedLiteralPart token:) (":") ) } {(-e)} {(SQ <"s/;(date.timezone =)/\\1 UTC/">)} {(-e)} { (DQ ("s~^([;]*cgi") (EscapedLiteralPart token:) ("rfc2616_headers.*)") (Lit_Other "$") ("~") (EscapedLiteralPart token:) (EscapedLiteralPart token:) (EscapedLiteralPart token:) (EscapedLiteralPart token:) (" If this is enabled, the PHP CGI binary can safely be placed outside of the") (EscapedLiteralPart token:) ("; web tree and people will not be able to circumvent .htaccess security.") (EscapedLiteralPart token:) (cgi) (EscapedLiteralPart token:) ("discard_path = 1~") ) } {(DQ ($ VSub_Name "$subpkgdir")) ($ VSub_Name "$_confdir") (/php.ini)} ) ] spids: [1311] ) spids: [1307 1310] ) (FuncDef name: cgi body: (BraceGroup children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("PHP Common Gateway Interface (CGI)"))} spids: [1418] ) ] spids: [1418] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:depends) op: Equal rhs: {(DQ ($ VSub_Name "$pkgname") (-common))} spids: [1424] ) ] spids: [1424] ) (C {(mkdir)} {(-p)} {(DQ ($ VSub_Name "$subpkgdir")) (/usr/bin)}) (C {(mv)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/bin/php-cgi) (Lit_Other "*")} {(DQ ($ VSub_Name "$subpkgdir")) (/usr/bin/)} ) ] spids: [1415] ) spids: [1411 1414] ) (FuncDef name: cli body: (BraceGroup children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("PHP Command Line Interface (CLI)"))} spids: [1464] ) ] spids: [1464] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:depends) op: Equal rhs: {(DQ ($ VSub_Name "$pkgname") (-common))} spids: [1470] ) ] spids: [1470] ) (C {(mkdir)} {(-p)} {(DQ ($ VSub_Name "$subpkgdir")) (/usr/bin)}) (AndOr children: [ (C {(mv)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/bin/php5)} {(DQ ($ VSub_Name "$subpkgdir")) (/usr/bin/)} ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (AndOr children: [ (C {(mv)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/bin/phpize) (Lit_Other "*")} {(DQ ($ VSub_Name "$subpkgdir")) (/usr/bin/)} ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) ] spids: [1461] ) spids: [1457 1460] ) (FuncDef name: fpm body: (BraceGroup children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("PHP FastCGI Process Manager (FPM)"))} spids: [1539] ) ] spids: [1539] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:depends) op: Equal rhs: {(DQ ($ VSub_Name "$pkgname") (-common))} spids: [1545] ) ] spids: [1545] ) (C {(mkdir)} {(-p)} {(DQ ($ VSub_Name "$subpkgdir")) ($ VSub_Name "$_confdir") (/fpm.d)}) (AndOr children: [ (C {(install)} {(-D)} {(-m755)} {(DQ ($ VSub_Name "$srcdir")) (/build-fpm/sapi/fpm/php-fpm)} {(DQ ($ VSub_Name "$subpkgdir")) (/usr/bin/php-fpm5)} ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (AndOr children: [ (C {(install)} {(-D)} {(-m644)} {(DQ ($ VSub_Name "$srcdir")) (/build-fpm/sapi/fpm/php-fpm.conf)} {(DQ ($ VSub_Name "$subpkgdir")) ($ VSub_Name "$_confdir") (/php-fpm.conf)} ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (C {(install)} {(-D)} {(-m755)} {(DQ ($ VSub_Name "$srcdir")) (/php-fpm.initd)} {(DQ ($ VSub_Name "$subpkgdir")) (/etc/init.d/php-fpm)} ) (AndOr children: [ (C {(sed)} {(-ri)} {(-e)} { (DQ ("s~^;(error_log)(.*)~") (EscapedLiteralPart token:) (" = /var/log/php-fpm.log~") ) } {(-e)} { (DQ ("s~^;(include)(.*)~") (EscapedLiteralPart token:) (" = ") ($ VSub_Name "$_confdir") ("/fpm.d/*.conf~") ) } {(-e)} {(DQ ("s/^;(pm.start_servers)/") (EscapedLiteralPart token:) (/))} {(-e)} { (DQ ("s/^;(pm.min_spare_servers)/") (EscapedLiteralPart token:) (/) ) } {(-e)} {(DQ ("s/^;(pm.max_spare_servers)/") (EscapedLiteralPart token:) (/))} {(DQ ($ VSub_Name "$subpkgdir")) ($ VSub_Name "$_confdir") (/php-fpm.conf)} ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) ] spids: [1536] ) spids: [1532 1535] ) (FuncDef name: apache2 body: (BraceGroup children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("PHP Module for Apache2"))} spids: [1713] ) ] spids: [1713] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:depends) op: Equal rhs: {(DQ ($ VSub_Name "$pkgname") ("-common apache2"))} spids: [1719] ) ] spids: [1719] ) (AndOr children: [ (C {(install)} {(-D)} {(-m755)} {(DQ ($ VSub_Name "$srcdir")) (/build-apache2/libs/libphp5.so)} {(DQ ($ VSub_Name "$subpkgdir")) (/usr/lib/apache2/libphp5.so)} ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (AndOr children: [ (C {(install)} {(-D)} {(-m644)} {(DQ ($ VSub_Name "$srcdir")) (/php5-module.conf)} {(DQ ($ VSub_Name "$subpkgdir")) (/etc/apache2/conf.d/php5-module.conf)} ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) ] spids: [1710] ) spids: [1706 1709] ) (FuncDef name: embed body: (BraceGroup children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("PHP Embed Library"))} spids: [1785] ) ] spids: [1785] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:depends) op: Equal rhs: {(DQ ($ VSub_Name "$pkgname") (-common))} spids: [1791] ) ] spids: [1791] ) (C {(mkdir)} {(-p)} {(DQ ($ VSub_Name "$subpkgdir")) (/usr/lib)}) (C {(mv)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/lib/libphp5.so)} {(DQ ($ VSub_Name "$subpkgdir")) (/usr/lib/)} ) ] spids: [1782] ) spids: [1778 1781] ) (FuncDef name: pear body: (BraceGroup children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("PHP Extension and Application Repository (PEAR)"))} spids: [1830] ) ] spids: [1830] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:depends) op: Equal rhs: {(DQ ($ VSub_Name "$pkgname") ("-cli ") ($ VSub_Name "$pkgname") (-xml))} spids: [1836] ) ] spids: [1836] ) (C {(mkdir)} {(-p)} {(DQ ($ VSub_Name "$subpkgdir")) (/usr/share)} {(DQ ($ VSub_Name "$subpkgdir")) ($ VSub_Name "$_confdir")} {(DQ ($ VSub_Name "$subpkgdir")) (/usr/bin)} ) (AndOr children: [ (C {(mv)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/bin/pecl)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/bin/pear)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/bin/peardev)} {(DQ ($ VSub_Name "$subpkgdir")) (/usr/bin/)} ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (AndOr children: [ (C {(mv)} {(DQ ($ VSub_Name "$pkgdir")) ($ VSub_Name "$_confdir") (/pear.conf)} {(DQ ($ VSub_Name "$subpkgdir")) ($ VSub_Name "$_confdir") (/)} ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (AndOr children: [ (C {(mv)} {(DQ ($ VSub_Name "$pkgdir")) (${ VSub_Name _peardir)} {(DQ ($ VSub_Name "$subpkgdir")) (/usr/share/)} ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) ] spids: [1827] ) spids: [1823 1826] ) (FuncDef name: phpdbg body: (BraceGroup children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("Interactive PHP debugger"))} spids: [1957] ) ] spids: [1957] ) (C {(mkdir)} {(-p)} {(DQ ($ VSub_Name "$subpkgdir")) (/usr/bin)}) (C {(mv)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/bin/phpdbg) (Lit_Other "*")} {(DQ ($ VSub_Name "$subpkgdir")) (/usr/bin/)} ) ] spids: [1954] ) spids: [1950 1953] ) (FuncDef name: _mv_ext body: (BraceGroup children: [ (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:ext) op: Equal rhs: {($ VSub_Number "$1")} spids: [1998] ) ] spids: [1996] ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:ini) op: Equal rhs: {($ VSub_Name "$ext") (.ini)} spids: [2004] ) ] spids: [2002] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ (${ VSub_Name ext) (" extension for PHP"))} spids: [2009] ) ] spids: [2009] ) (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other "[")} {(-n)} { (DQ (BracedVarSub token: suffix_op: (StringUnary op_id:VTest_Hyphen arg_word:{(SQ )}) spids: [2030 2033] ) ) } {(Lit_Other "]")} ) terminator: ) ] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:depends) op: Equal rhs: { (DQ (BracedVarSub token: suffix_op: (StringUnary op_id:VTest_Hyphen arg_word:{(SQ )}) spids: [2044 2047] ) ) } spids: [2042] ) ] spids: [2042] ) ] spids: [-1 2039] ) ] spids: [-1 2051] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:depends) op: Equal rhs: {(DQ (${ VSub_Name pkgname) (" ") (${ VSub_Name depends))} spids: [2054] ) ] spids: [2054] ) (If arms: [ (if_arm cond: [ (Sentence child: (C {(Lit_Other "[")} {(DQ ($ VSub_Name "$ext"))} {(Lit_Other "=")} {(DQ (wddx))} {(Lit_Other "]")} ) terminator: ) ] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:ini) op: Equal rhs: {(xml_) ($ VSub_Name "$ext") (.ini)} spids: [2095] ) ] spids: [2095] ) ] spids: [-1 2092] ) ] spids: [-1 2101] ) (C {(mkdir)} {(-p)} {(DQ ($ VSub_Name "$subpkgdir")) (/) ($ VSub_Name "$_extdir")}) (AndOr children: [ (C {(mv)} {(DQ ($ VSub_Name "$pkgdir")) (/) ($ VSub_Name "$_extdir") (/) (${ VSub_Name ext) (.so) } {(DQ ($ VSub_Name "$subpkgdir")) (/) ($ VSub_Name "$_extdir") (/)} ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (C {(mkdir)} {(-p)} {(DQ ($ VSub_Name "$subpkgdir")) ($ VSub_Name "$_confdir") (/conf.d)}) (Case to_match: {(DQ ($ VSub_Number "$1"))} arms: [ (case_arm pat_list: [{(opcache)}] action: [ (SimpleCommand words: [{(echo)} {(DQ ("zend_extension=") (${ VSub_Name ext) (.so))}] redirects: [ (Redir op_id: Redir_Great fd: -1 arg_word: {(DQ ($ VSub_Name "$subpkgdir")) ($ VSub_Name "$_confdir") (/conf.d/) ($ VSub_Name "$ini") } spids: [2177] ) ] ) ] spids: [2163 2164 2187 -1] ) (case_arm pat_list: [{(Lit_Other "*")}] action: [ (SimpleCommand words: [{(echo)} {(DQ ("extension=") (${ VSub_Name ext) (.so))}] redirects: [ (Redir op_id: Redir_Great fd: -1 arg_word: {(DQ ($ VSub_Name "$subpkgdir")) ($ VSub_Name "$_confdir") (/conf.d/) ($ VSub_Name "$ini") } spids: [2204] ) ] ) ] spids: [2190 2191 2214 -1] ) ] spids: [2154 2160 2217] ) ] spids: [1993] ) spids: [1989 1992] ) (FuncDef name: bcmath body: (BraceGroup children: [(Sentence child:(C {(_mv_ext)} {(bcmath)}) terminator:)] spids: [2226] ) spids: [2222 2225] ) (FuncDef name: bz2 body: (BraceGroup children: [(Sentence child:(C {(_mv_ext)} {(bz2)}) terminator:)] spids: [2239] ) spids: [2235 2238] ) (FuncDef name: calendar body: (BraceGroup children: [(Sentence child:(C {(_mv_ext)} {(calendar)}) terminator:)] spids: [2252] ) spids: [2248 2251] ) (FuncDef name: ctype body: (BraceGroup children: [(Sentence child:(C {(_mv_ext)} {(ctype)}) terminator:)] spids: [2265] ) spids: [2261 2264] ) (FuncDef name: _curl body: (BraceGroup children: [(Sentence child:(C {(_mv_ext)} {(curl)}) terminator:)] spids: [2278] ) spids: [2274 2277] ) (FuncDef name: dba body: (BraceGroup children: [(Sentence child:(C {(_mv_ext)} {(dba)}) terminator:)] spids: [2291] ) spids: [2287 2290] ) (FuncDef name: dom body: (BraceGroup children: [(Sentence child:(C {(_mv_ext)} {(dom)}) terminator:)] spids: [2304] ) spids: [2300 2303] ) (FuncDef name: enchant body: (BraceGroup children: [(Sentence child:(C {(_mv_ext)} {(enchant)}) terminator:)] spids: [2317] ) spids: [2313 2316] ) (FuncDef name: exif body: (BraceGroup children: [(Sentence child:(C {(_mv_ext)} {(exif)}) terminator:)] spids: [2330] ) spids: [2326 2329] ) (FuncDef name: ftp body: (BraceGroup children: [(Sentence child:(C {(_mv_ext)} {(ftp)}) terminator:)] spids: [2343] ) spids: [2339 2342] ) (FuncDef name: gd body: (BraceGroup children: [(Sentence child:(C {(_mv_ext)} {(gd)}) terminator:)] spids: [2356] ) spids: [2352 2355] ) (FuncDef name: gettext body: (BraceGroup children: [(Sentence child:(C {(_mv_ext)} {(gettext)}) terminator:)] spids: [2369] ) spids: [2365 2368] ) (FuncDef name: gmp body: (BraceGroup children: [(Sentence child:(C {(_mv_ext)} {(gmp)}) terminator:)] spids: [2382] ) spids: [2378 2381] ) (FuncDef name: iconv body: (BraceGroup children: [(Sentence child:(C {(_mv_ext)} {(iconv)}) terminator:)] spids: [2395] ) spids: [2391 2394] ) (FuncDef name: imap body: (BraceGroup children: [(Sentence child:(C {(_mv_ext)} {(imap)}) terminator:)] spids: [2408] ) spids: [2404 2407] ) (FuncDef name: intl body: (BraceGroup children: [(Sentence child:(C {(_mv_ext)} {(intl)}) terminator:)] spids: [2421] ) spids: [2417 2420] ) (FuncDef name: json body: (BraceGroup children: [(Sentence child:(C {(_mv_ext)} {(json)}) terminator:)] spids: [2434] ) spids: [2430 2433] ) (FuncDef name: ldap body: (BraceGroup children: [(Sentence child:(C {(_mv_ext)} {(ldap)}) terminator:)] spids: [2447] ) spids: [2443 2446] ) (FuncDef name: mcrypt body: (BraceGroup children: [(Sentence child:(C {(_mv_ext)} {(mcrypt)}) terminator:)] spids: [2460] ) spids: [2456 2459] ) (FuncDef name: mysql body: (BraceGroup children: [(Sentence child:(C {(_mv_ext)} {(mysql)}) terminator:)] spids: [2473] ) spids: [2469 2472] ) (FuncDef name: mysqli body: (BraceGroup children: [(Sentence child:(C {(_mv_ext)} {(mysqli)}) terminator:)] spids: [2486] ) spids: [2482 2485] ) (FuncDef name: odbc body: (BraceGroup children: [(Sentence child:(C {(_mv_ext)} {(odbc)} {(unixodbc)}) terminator:)] spids: [2499] ) spids: [2495 2498] ) (FuncDef name: openssl body: (BraceGroup children: [(Sentence child:(C {(_mv_ext)} {(openssl)}) terminator:)] spids: [2514] ) spids: [2510 2513] ) (FuncDef name: pcntl body: (BraceGroup children: [(Sentence child:(C {(_mv_ext)} {(pcntl)}) terminator:)] spids: [2527] ) spids: [2523 2526] ) (FuncDef name: pdo body: (BraceGroup children: [(Sentence child:(C {(_mv_ext)} {(pdo)}) terminator:)] spids: [2540] ) spids: [2536 2539] ) (FuncDef name: pdo_mysql body: (BraceGroup children: [ (Sentence child: (C {(_mv_ext)} {(pdo_mysql)} {($ VSub_Name "$pkgname") (-pdo)}) terminator: ) ] spids: [2553] ) spids: [2549 2552] ) (FuncDef name: pdo_odbc body: (BraceGroup children: [ (Sentence child: (C {(_mv_ext)} {(pdo_odbc)} {($ VSub_Name "$pkgname") (-pdo)}) terminator: ) ] spids: [2569] ) spids: [2565 2568] ) (FuncDef name: pdo_pgsql body: (BraceGroup children: [ (Sentence child: (C {(_mv_ext)} {(pdo_pgsql)} {($ VSub_Name "$pkgname") (-pdo)}) terminator: ) ] spids: [2585] ) spids: [2581 2584] ) (FuncDef name: pdo_sqlite body: (BraceGroup children: [ (Sentence child: (C {(_mv_ext)} {(pdo_sqlite)} {($ VSub_Name "$pkgname") (-pdo)}) terminator: ) ] spids: [2601] ) spids: [2597 2600] ) (FuncDef name: pgsql body: (BraceGroup children: [(Sentence child:(C {(_mv_ext)} {(pgsql)}) terminator:)] spids: [2617] ) spids: [2613 2616] ) (FuncDef name: phar body: (BraceGroup children: [ (C {(_mv_ext)} {(phar)}) (C {(mkdir)} {(-p)} {(DQ ($ VSub_Name "$subpkgdir")) (/usr/bin)}) (C {(mv)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/bin/phar) (Lit_Other "*")} {(DQ ($ VSub_Name "$subpkgdir")) (/usr/bin/)} ) ] spids: [2630] ) spids: [2626 2629] ) (FuncDef name: posix body: (BraceGroup children: [(Sentence child:(C {(_mv_ext)} {(posix)}) terminator:)] spids: [2668] ) spids: [2664 2667] ) (FuncDef name: pspell body: (BraceGroup children: [(Sentence child:(C {(_mv_ext)} {(pspell)}) terminator:)] spids: [2681] ) spids: [2677 2680] ) (FuncDef name: shmop body: (BraceGroup children: [(Sentence child:(C {(_mv_ext)} {(shmop)}) terminator:)] spids: [2694] ) spids: [2690 2693] ) (FuncDef name: snmp body: (BraceGroup children: [(Sentence child:(C {(_mv_ext)} {(snmp)}) terminator:)] spids: [2707] ) spids: [2703 2706] ) (FuncDef name: soap body: (BraceGroup children: [(Sentence child:(C {(_mv_ext)} {(soap)}) terminator:)] spids: [2720] ) spids: [2716 2719] ) (FuncDef name: sockets body: (BraceGroup children: [(Sentence child:(C {(_mv_ext)} {(sockets)}) terminator:)] spids: [2733] ) spids: [2729 2732] ) (FuncDef name: sqlite3 body: (BraceGroup children: [(Sentence child:(C {(_mv_ext)} {(sqlite3)}) terminator:)] spids: [2746] ) spids: [2742 2745] ) (FuncDef name: sysvmsg body: (BraceGroup children: [(Sentence child:(C {(_mv_ext)} {(sysvmsg)}) terminator:)] spids: [2759] ) spids: [2755 2758] ) (FuncDef name: sysvsem body: (BraceGroup children: [(Sentence child:(C {(_mv_ext)} {(sysvsem)}) terminator:)] spids: [2772] ) spids: [2768 2771] ) (FuncDef name: sysvshm body: (BraceGroup children: [(Sentence child:(C {(_mv_ext)} {(sysvshm)}) terminator:)] spids: [2785] ) spids: [2781 2784] ) (FuncDef name: xml body: (BraceGroup children: [(Sentence child:(C {(_mv_ext)} {(xml)}) terminator:)] spids: [2798] ) spids: [2794 2797] ) (FuncDef name: xmlreader body: (BraceGroup children: [ (Sentence child: (C {(_mv_ext)} {(xmlreader)} {($ VSub_Name "$pkgname") (-dom)}) terminator: ) ] spids: [2811] ) spids: [2807 2810] ) (FuncDef name: xmlrpc body: (BraceGroup children: [ (Sentence child: (C {(_mv_ext)} {(xmlrpc)} {($ VSub_Name "$pkgname") (-xml)}) terminator: ) ] spids: [2827] ) spids: [2823 2826] ) (FuncDef name: xsl body: (BraceGroup children: [ (Sentence child: (C {(_mv_ext)} {(xsl)} {($ VSub_Name "$pkgname") (-dom)}) terminator: ) ] spids: [2843] ) spids: [2839 2842] ) (FuncDef name: zip body: (BraceGroup children: [(Sentence child:(C {(_mv_ext)} {(zip)}) terminator:)] spids: [2859] ) spids: [2855 2858] ) (FuncDef name: zlib body: (BraceGroup children: [(Sentence child:(C {(_mv_ext)} {(zlib)}) terminator:)] spids: [2872] ) spids: [2868 2871] ) (FuncDef name: mssql body: (BraceGroup children: [(Sentence child:(C {(_mv_ext)} {(mssql)}) terminator:)] spids: [2885] ) spids: [2881 2884] ) (FuncDef name: pdo_dblib body: (BraceGroup children: [ (Sentence child: (C {(_mv_ext)} {(pdo_dblib)} {(DQ ($ VSub_Name "$pkgname") ("-pdo freetds"))}) terminator: ) ] spids: [2898] ) spids: [2894 2897] ) (FuncDef name: wddx body: (BraceGroup children: [(Sentence child:(C {(_mv_ext)} {(wddx)}) terminator:)] spids: [2916] ) spids: [2912 2915] ) (FuncDef name: opcache body: (BraceGroup children: [(Sentence child:(C {(_mv_ext)} {(opcache)}) terminator:)] spids: [2929] ) spids: [2925 2928] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha512sums) op: Equal rhs: { (DQ ( "fe0a0572917287a89910cc4d1bca7a8be17fb09d0459d68fea7b32f4b9fd94efbf36d90f8d7d34baee60efc6b0aeac1414a658fc0b451c5eb2f8e3864e20e3c0 php-5.6.31.tar.bz2\n" ) ( "f7d922cab98617ef910b4c14974e768c85e60424cd1b216f688b34b2d823b642a5b896463008c134ce47c150f9407f5c438823b7e7bc89b3fb440cd3e97b9d7e php-fpm.initd\n" ) ( "895e94c791bd82060ad820fef049d366a09c932097faa6b7b9a2c2e9e00a18cb7c0f9b128679c7659b404379266fd0f95dba5c0333f626194cf60f7bf6044102 php5-module.conf\n" ) ( "f1177cbf6b1f44402f421c3d317aab1a2a40d0b1209c11519c1158df337c8945f3a313d689c939768584f3e4edbe52e8bd6103fb6777462326a9d94e8ab1f505 php-install-pear-xml.patch\n" ) ( "6ecd0be2da1dc5b1d7512e46a2a5cd107a8b2a8c364efc9c624a7d6b2ab081685a329c94c22c970dc14c5c1115f702c512e97ae858da1bc69c6423323dbeeba2 gd-iconv.patch" ) ) } spids: [2939] ) ] spids: [2939] ) ] )