summaryrefslogtreecommitdiff
path: root/php-fpm/Pkgfile
blob: 7aa9f084757367f4b14606acbd6d2cdba33d8b54 (plain)
    1 # Description: FastCGI Process Manager for PHP
    2 # URL:         http://www.php.net
    3 # Maintainer:  Juergen Daubert, jue at crux dot nu
    4 # Depends on:  libpcre2 libxml2
    5 
    6 name=php-fpm
    7 version=7.3.10
    8 release=1
    9 source=(http://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-pcre-regex=/usr \
   23     --disable-static --disable-debug \
   24     --without-sqlite3 --without-pdo-sqlite \
   25     --without-libzip \
   26     --without-pear"
   27 
   28     EXTENSION_DIR=/usr/lib/php/extensions \
   29     ./configure \
   30         $PHP_CONFIG \
   31         --enable-fpm \
   32         --disable-cli \
   33         --with-fpm-user=www \
   34         --with-fpm-group=www 
   35 
   36     make
   37 
   38     install -d $PKG/usr/{sbin,share/man/man8}
   39     install -d $PKG/etc/{rc.d,php/php-fpm.d}
   40     
   41     install -m 755 sapi/fpm/php-fpm $PKG/usr/sbin/
   42     install -m 644 sapi/fpm/php-fpm.conf $PKG/etc/php/
   43     install -m 644 sapi/fpm/www.conf $PKG/etc/php/php-fpm.d/
   44     install -m 644 sapi/fpm/php-fpm.8 $PKG/usr/share/man/man8/
   45     install -m 755 $SRC/php-fpm $PKG/etc/rc.d/
   46 
   47     sed '/;pid =/s/;//' -i $PKG/etc/php/php-fpm.conf
   48 }

Generated by cgit