summaryrefslogtreecommitdiff
path: root/php-fpm/Pkgfile
blob: e34990bdc09f5c7465a21a105c991f8265e217ea (plain)
    1 # Description: FastCGI Process Manager for PHP
    2 # URL: https://www.php.net
    3 # Maintainer: Juergen Daubert, jue at crux dot nu
    4 # Depends on: libpcre2 libxml2
    5 
    6 name=php-fpm
    7 version=8.1.10
    8 release=1
    9 source=(https://php.net/distributions/php-$version.tar.xz
   10 	php-fpm)
   11 
   12 build() {
   13 	cd php-$version
   14 
   15 	local PHP_CONFIG="
   16 	--prefix=/usr \
   17 	--sysconfdir=/etc/php \
   18 	--localstatedir=/var \
   19 	--with-config-file-path=/etc/php \
   20 	--with-config-file-scan-dir=/etc/php/conf.d \
   21 	--with-zlib \
   22 	--with-external-pcre \
   23 	--disable-static --disable-debug \
   24 	--without-sqlite3 --without-pdo-sqlite \
   25 	--without-pear"
   26 
   27 	EXTENSION_DIR=/usr/lib/php/extensions \
   28 	./configure \
   29 		$PHP_CONFIG \
   30 		--enable-fpm \
   31 		--disable-cli \
   32 		--with-fpm-user=www \
   33 		--with-fpm-group=www
   34 
   35 	make
   36 
   37 	install -d $PKG/usr/{sbin,share/man/man8}
   38 	install -d $PKG/etc/{rc.d,php/php-fpm.d}
   39 
   40 	install -m 755 sapi/fpm/php-fpm $PKG/usr/sbin/
   41 	install -m 644 sapi/fpm/php-fpm.conf $PKG/etc/php/
   42 	install -m 644 sapi/fpm/www.conf $PKG/etc/php/php-fpm.d/
   43 	install -m 644 sapi/fpm/php-fpm.8 $PKG/usr/share/man/man8/
   44 	install -m 755 $SRC/php-fpm $PKG/etc/rc.d/
   45 
   46 	sed '/;pid =/s/;//' -i $PKG/etc/php/php-fpm.conf
   47 }

Generated by cgit