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
|
2013-02-25 13:11:00 +01:00
|
|
|
# Depends on: xz libpcre libxml2
|
2012-03-16 11:00:33 +01:00
|
|
|
|
|
|
|
name=php-fpm
|
2017-10-28 19:23:44 +02:00
|
|
|
version=5.6.32
|
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
|
|
|
|
|
2015-11-27 16:43:31 +01:00
|
|
|
install -d $PKG/{usr/{sbin,share/man/man8},etc/{rc.d,php}}
|
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/
|
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
|
|
|
|
|
|
|
sed -i '/;pid =/s/;//' $PKG/etc/php/php-fpm.conf
|
2012-03-16 11:00:33 +01:00
|
|
|
}
|