opt/php-fcgi/Pkgfile

36 lines
786 B
Plaintext
Raw Normal View History

2008-05-07 19:42:29 +02:00
# Description: CGI/FastCGI version of the PHP interpreter
# URL: https://www.php.net
# Maintainer: Juergen Daubert, jue at crux dot nu
# Depends on: libpcre2 libxml2
2008-05-07 19:42:29 +02:00
name=php-fcgi
2023-12-23 15:47:56 +01:00
version=8.3.1
2008-12-05 11:37:44 +01:00
release=1
2020-06-06 13:00:05 +02:00
source=(https://php.net/distributions/php-$version.tar.xz
2023-12-23 15:47:56 +01:00
php-fcgi)
2008-05-07 19:42:29 +02:00
build() {
cd php-$version
2008-05-07 19:42:29 +02:00
local PHP_CONFIG="
--prefix=/usr \
--with-config-file-path=/etc/php \
--with-config-file-scan-dir=/etc/php/conf.d \
--with-zlib \
--with-external-pcre \
--disable-static --disable-debug \
--without-sqlite3 --without-pdo-sqlite \
--without-pear"
2008-05-07 19:42:29 +02:00
EXTENSION_DIR=/usr/lib/php/extensions \
./configure \
$PHP_CONFIG \
--enable-cgi \
--disable-cli
2008-05-07 19:42:29 +02:00
make
2008-05-07 19:42:29 +02:00
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
2008-05-07 19:42:29 +02:00
}