opt/php-fpm/Pkgfile

48 lines
1.3 KiB
Plaintext
Raw Normal View History

2012-03-16 11:00:33 +01:00
# Description: FastCGI Process Manager for PHP
2020-06-06 13:00:05 +02:00
# URL: https://www.php.net
2012-03-16 11:00:33 +01:00
# Maintainer: Juergen Daubert, jue at crux dot nu
2019-05-31 13:06:35 +02:00
# Depends on: libpcre2 libxml2
2012-03-16 11:00:33 +01:00
name=php-fpm
version=7.4.14
2012-03-16 11:00:33 +01:00
release=1
2020-06-06 13:00:05 +02:00
source=(https://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 \
2020-02-15 13:56:55 +01:00
--with-external-pcre \
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
}