summaryrefslogtreecommitdiff
path: root/php-fpm/Pkgfile
blob: 753c76760caf08230d1e1b8e69e0eed12241afce (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:  libpcre libxml2
    5 
    6 name=php-fpm
    7 version=5.4.10
    8 release=1
    9 source=(http://www.php.net/distributions/php-$version.tar.bz2 
   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 --without-pear"
   24 
   25     EXTENSION_DIR=/usr/lib/php/extensions \
   26     ./configure \
   27         $PHP_CONFIG \
   28         --enable-fpm \
   29         --disable-cli \
   30         --with-fpm-user=www \
   31         --with-fpm-group=www
   32 
   33     make
   34 
   35     install -d $PKG/{usr/{sbin,man/man8},etc/{rc.d,php}}
   36     install -m 755 sapi/fpm/php-fpm $PKG/usr/sbin/
   37     install -m 644 sapi/fpm/php-fpm.conf $PKG/etc/php/
   38     install -m 644 sapi/fpm/php-fpm.8 $PKG/usr/man/man8/
   39     install -m 755 $SRC/php-fpm $PKG/etc/rc.d/
   40 }

Generated by cgit