opt/php-fcgi/Pkgfile

37 lines
891 B
Plaintext
Raw Normal View History

2008-05-07 19:42:29 +02:00
# Description: CGI/FastCGI version of the PHP interpreter
# URL: http://www.php.net
2011-02-02 13:44:37 +01:00
# Maintainer: Juergen Daubert, jue at crux dot nu
2019-05-31 13:06:35 +02:00
# Depends on: libpcre2 libxml2
2008-05-07 19:42:29 +02:00
name=php-fcgi
2019-05-31 13:06:35 +02:00
version=7.3.6
2008-12-05 11:37:44 +01:00
release=1
2014-09-19 13:27:15 +02:00
source=(http://php.net/distributions/php-$version.tar.xz
2008-05-07 19:42:29 +02:00
php-fcgi)
build () {
cd php-$version
local PHP_CONFIG="
--prefix=/usr \
--with-config-file-path=/etc/php \
--with-config-file-scan-dir=/etc/php/conf.d \
2008-07-09 09:59:41 +02:00
--with-zlib \
2008-12-05 11:52:12 +01:00
--with-pcre-regex=/usr \
2013-02-25 13:11:10 +01:00
--disable-static --disable-debug \
--without-sqlite3 --without-pdo-sqlite \
2019-04-10 15:26:35 +02:00
--without-libzip \
2013-02-25 13:11:10 +01:00
--without-pear"
2008-05-07 19:42:29 +02:00
EXTENSION_DIR=/usr/lib/php/extensions \
./configure \
$PHP_CONFIG \
--enable-cgi \
2011-01-07 18:01:10 +01:00
--disable-cli
2008-05-07 19:42:29 +02:00
make
install -D -m 755 sapi/cgi/php-cgi $PKG/usr/bin/php-cgi
install -D -m 755 $SRC/php-fcgi $PKG/etc/rc.d/php-fcgi
}