Browse Source

php-apache: add package (#1075)

android-5
Vishal Biswas 8 years ago
committed by Fredrik Fornwall
parent
commit
6b78878e05
  1. 1
      packages/php/build.sh
  2. 3
      packages/php/php-apache.subpackage.sh
  3. 30
      packages/php/sapi-apache2handler-config.m4.patch

1
packages/php/build.sh

@ -38,6 +38,7 @@ ac_cv_func_res_nsearch=no
--with-zlib
--with-pgsql=shared,$TERMUX_PREFIX
--with-pdo-pgsql=shared,$TERMUX_PREFIX
--with-apxs2=$TERMUX_PREFIX/bin/apxs
--enable-fpm
--sbindir=$TERMUX_PREFIX/bin
"

3
packages/php/php-apache.subpackage.sh

@ -0,0 +1,3 @@
TERMUX_SUBPKG_DESCRIPTION="Apache 2.0 Handler module for PHP"
TERMUX_SUBPKG_DEPENDS="php, apache2"
TERMUX_SUBPKG_INCLUDE="libexec/apache2/libphp7.so"

30
packages/php/sapi-apache2handler-config.m4.patch

@ -0,0 +1,30 @@
--- ./sapi/apache2handler/config.m4 2017-05-09 17:59:42.000000000 +0530
+++ ./sapi/apache2handler/config.m4 2017-06-08 21:10:39.847173781 +0530
@@ -111,6 +111,7 @@
INSTALL_IT="$INSTALL_IT $SAPI_LIBTOOL"
;;
*)
+ EXTRA_LDFLAGS="$EXTRA_LDFLAGS -lapr-1 -laprutil-1"
PHP_SELECT_SAPI(apache2handler, shared, mod_php7.c sapi_apache2.c apache_config.c php_functions.c, $APACHE_CFLAGS)
INSTALL_IT="$INSTALL_IT $SAPI_LIBTOOL"
;;
@@ -122,7 +122,7 @@
PHP_BUILD_THREAD_SAFE
fi
else
- APACHE_THREADED_MPM=`$APXS_HTTPD -V | grep 'threaded:.*yes'`
+ APACHE_THREADED_MPM=true
if test -n "$APACHE_THREADED_MPM"; then
PHP_BUILD_THREAD_SAFE
fi
--- ./configure
+++ ./configure
@@ -6932,7 +6932,7 @@
fi
else
- APACHE_THREADED_MPM=`$APXS_HTTPD -V | grep 'threaded:.*yes'`
+ APACHE_THREADED_MPM=true
if test -n "$APACHE_THREADED_MPM"; then
enable_maintainer_zts=yes
Loading…
Cancel
Save