2014-08-19 12:24:55 +02:00
|
|
|
# Description: PHP DSO module for apache
|
2020-06-06 13:00:05 +02:00
|
|
|
# URL: https://www.php.net
|
2014-08-19 12:24:55 +02:00
|
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
2019-12-08 14:59:58 +01:00
|
|
|
# Depends on: apache libpcre2
|
2014-08-19 12:24:55 +02:00
|
|
|
|
|
|
|
name=mod_php
|
2021-05-03 19:17:01 +02:00
|
|
|
version=7.4.18
|
2014-08-19 12:24:55 +02:00
|
|
|
release=1
|
2020-06-06 13:00:05 +02:00
|
|
|
source=(https://php.net/distributions/php-$version.tar.xz)
|
2014-08-19 12:24:55 +02:00
|
|
|
|
|
|
|
build () {
|
|
|
|
cd php-$version
|
|
|
|
|
2014-08-19 12:38:47 +02:00
|
|
|
# to be compatible with our other php ports, don't build
|
|
|
|
# for a threaded MPM (ZTS). Use only the prefork MPM!
|
|
|
|
sed -i '/APACHE_THREADED_MPM=/d' configure
|
|
|
|
|
2014-08-19 12:24:55 +02:00
|
|
|
local APXS
|
2014-08-19 12:38:47 +02:00
|
|
|
APXS=$(which apxs) || APXS='/usr/bin/apxs'
|
2014-08-19 12:24:55 +02:00
|
|
|
|
|
|
|
local PHP_CONFIG="
|
|
|
|
--prefix=/usr \
|
|
|
|
--with-config-file-path=/etc/php \
|
|
|
|
--with-config-file-scan-dir=/etc/php/conf.d \
|
|
|
|
--with-zlib \
|
2020-02-15 14:01:36 +01:00
|
|
|
--with-external-pcre \
|
2014-08-19 12:24:55 +02:00
|
|
|
--disable-static --disable-debug \
|
|
|
|
--without-sqlite3 --without-pdo-sqlite \
|
|
|
|
--without-pear"
|
|
|
|
|
|
|
|
EXTENSION_DIR=/usr/lib/php/extensions \
|
|
|
|
./configure \
|
|
|
|
$PHP_CONFIG \
|
|
|
|
--with-apxs2=$APXS \
|
|
|
|
--disable-cli
|
|
|
|
|
|
|
|
make
|
2018-03-30 12:50:47 +02:00
|
|
|
install -D -m 755 libs/libphp7.so $PKG/usr/lib/apache/libphp7.so
|
2014-08-19 12:24:55 +02:00
|
|
|
}
|