5 makepkg
-o --nodeps --noprepare --skipinteg
7 pushd "src/${pkgbase}-${pkgver}"
9 sed '/APACHE_THREADED_MPM=/d' -i.orig sapi
/apache2handler
/config.
m4
11 sed 's/.conf.default/.conf/g' -i.orig sapi
/fpm
/Makefile.frag
14 -e 's#run/php-fpm.pid#/run/php-fpm/php-fpm.pid#' \
15 -e 's#^;error_log =.*#error_log = syslog#' \
16 -i.orig sapi
/fpm
/php-fpm.conf.
in
19 -e 's#^listen =.*#listen = /run/php-fpm/php-fpm.sock#' \
20 -e 's#^;listen.owner =#listen.owner =#' \
21 -e 's#^;listen.group =#listen.group =#' \
22 -e 's#^;chdir =.*#;chdir = /srv/http#' \
23 -i.orig sapi
/fpm
/www.conf.
in
26 -e 's#^PIDFile=.*#PIDFile=/run/php-fpm/php-fpm.pid#' \
27 -i.orig sapi
/fpm
/php-fpm.service.
in
29 # available extensions after build
30 # find /var/lib/archbuild/*-x86_64/*/build/php/src/build/modules -name '*.so' -exec basename {} .so \; | sort -u
73 for extension
in "${availableExtensions[@]}"; do
74 if [[ $extension == 'curl' ]]; then
75 extensions
+="extension=${extension}\n"
76 elif [[ $extension == 'opcache' ]]; then
77 extensions
+=";zend_extension=${extension}\n"
78 elif [[ $extension == 'zip' ]]; then
79 extensions
+="extension=${extension}\n"
81 extensions
+=";extension=${extension}\n"
86 -r ":a;N;\$!ba;s/; Notes for Windows environments :\n.+;?extension=\w+\n/${extensions}/g" \
87 -i.orig php.ini-production
89 -e 's#^;extension_dir = "\./"$#extension_dir = "/usr/lib/php/modules/"#g' \
92 diff -u sapi
/apache2handler
/config.
m4.orig sapi
/apache2handler
/config.
m4 | filterdiff
--clean --remove-timestamps > ..
/..
/apache.
patch
95 diff -u sapi
/fpm
/Makefile.frag.orig sapi
/fpm
/Makefile.frag
96 diff -u sapi
/fpm
/php-fpm.conf.
in.orig sapi
/fpm
/php-fpm.conf.
in
97 diff -u sapi
/fpm
/www.conf.
in.orig sapi
/fpm
/www.conf.
in
98 diff -u sapi
/fpm
/php-fpm.service.
in.orig sapi
/fpm
/php-fpm.service.
in
99 } | filterdiff
--clean --remove-timestamps > ..
/..
/php-fpm.
patch
101 diff -u php.ini-production.orig php.ini-production | filterdiff
--clean --remove-timestamps > ..
/..
/php.ini.
patch