2012-03-16 11:00:33 +01:00
|
|
|
# Description: FastCGI Process Manager for PHP
|
|
|
|
# URL: http://www.php.net
|
|
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
2017-10-31 17:32:48 +01:59
|
|
|
# Depends on: libpcre libxml2
|
2012-03-16 11:00:33 +01:00
|
|
|
|
|
|
|
name=php-fpm
|
2018-09-14 12:16:53 +02:00
|
|
|
version=7.2.10
|
2012-03-16 11:00:33 +01:00
|
|
|
release=1
|
2014-09-19 13:27:25 +02:00
|
|
|
source=(http://php.net/distributions/php-$version.tar.xz
|
2012-03-16 11:00:33 +01:00
|
|
|
php-fpm)
|
|
|
|
|
|
|
|
build () {
|
|
|
|
cd php-$version
|
|
|
|
|
|
|
|
local PHP_CONFIG="
|
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc/php \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--with-config-file-path=/etc/php \
|
|
|
|
--with-config-file-scan-dir=/etc/php/conf.d \
|
|
|
|
--with-zlib \
|
|
|
|
--with-pcre-regex=/usr \
|
2013-02-25 13:11:00 +01:00
|
|
|
--disable-static --disable-debug \
|
|
|
|
--without-sqlite3 --without-pdo-sqlite \
|
|
|
|
--without-pear"
|
2012-03-16 11:00:33 +01:00
|
|
|
|
|
|
|
EXTENSION_DIR=/usr/lib/php/extensions \
|
|
|
|
./configure \
|
|
|
|
$PHP_CONFIG \
|
|
|
|
--enable-fpm \
|
|
|
|
--disable-cli \
|
|
|
|
--with-fpm-user=www \
|
2013-02-25 13:11:00 +01:00
|
|
|
--with-fpm-group=www
|
2012-03-16 11:00:33 +01:00
|
|
|
|
|
|
|
make
|
|
|
|
|
2018-03-30 12:49:31 +02:00
|
|
|
install -d $PKG/usr/{sbin,share/man/man8}
|
|
|
|
install -d $PKG/etc/{rc.d,php/php-fpm.d}
|
|
|
|
|
2012-03-16 11:00:33 +01:00
|
|
|
install -m 755 sapi/fpm/php-fpm $PKG/usr/sbin/
|
|
|
|
install -m 644 sapi/fpm/php-fpm.conf $PKG/etc/php/
|
2018-03-30 12:49:31 +02:00
|
|
|
install -m 644 sapi/fpm/www.conf $PKG/etc/php/php-fpm.d/
|
2015-11-27 16:43:31 +01:00
|
|
|
install -m 644 sapi/fpm/php-fpm.8 $PKG/usr/share/man/man8/
|
2012-03-16 11:00:33 +01:00
|
|
|
install -m 755 $SRC/php-fpm $PKG/etc/rc.d/
|
2015-01-23 15:11:42 +01:00
|
|
|
|
2018-03-30 12:49:31 +02:00
|
|
|
sed '/;pid =/s/;//' -i $PKG/etc/php/php-fpm.conf
|
2012-03-16 11:00:33 +01:00
|
|
|
}
|