summaryrefslogtreecommitdiff
path: root/php-fcgi/Pkgfile
blob: 808cb60b78652e955e4fe0c216ddda11633921af (plain)
    1 # Description: CGI/FastCGI version of the PHP interpreter
    2 # URL:         http://www.php.net
    3 # Maintainer:  Juergen Daubert, jue at crux dot nu
    4 # Depends on:  libpcre2 libxml2
    5 
    6 name=php-fcgi
    7 version=7.4.2
    8 release=1
    9 source=(http://php.net/distributions/php-$version.tar.xz
   10         php-fcgi)
   11 
   12 build () {
   13     cd php-$version
   14 
   15     local PHP_CONFIG="
   16     --prefix=/usr \
   17     --with-config-file-path=/etc/php \
   18     --with-config-file-scan-dir=/etc/php/conf.d \
   19     --with-zlib \
   20     --with-external-pcre \
   21     --disable-static --disable-debug \
   22     --without-sqlite3 --without-pdo-sqlite \
   23     --without-pear"
   24 
   25     EXTENSION_DIR=/usr/lib/php/extensions \
   26     ./configure \
   27         $PHP_CONFIG \
   28         --enable-cgi \
   29         --disable-cli 
   30 
   31     make
   32 
   33     install -D -m 755 sapi/cgi/php-cgi $PKG/usr/bin/php-cgi
   34     install -D -m 755 $SRC/php-fcgi $PKG/etc/rc.d/php-fcgi
   35 }

Generated by cgit