2008-05-07 19:42:29 +02:00
|
|
|
# Description: CGI/FastCGI version of the PHP interpreter
|
2021-06-05 17:02:30 +02:00
|
|
|
# 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-03-19 10:33:18 +01:00
|
|
|
version=8.2.4
|
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
|
2021-06-05 17:02:30 +02:00
|
|
|
php-fcgi)
|
2008-05-07 19:42:29 +02:00
|
|
|
|
2021-06-05 17:02:30 +02:00
|
|
|
build() {
|
|
|
|
cd php-$version
|
2008-05-07 19:42:29 +02:00
|
|
|
|
2021-06-05 17:02:30 +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
|
|
|
|
2021-06-05 17:02:30 +02:00
|
|
|
EXTENSION_DIR=/usr/lib/php/extensions \
|
|
|
|
./configure \
|
|
|
|
$PHP_CONFIG \
|
|
|
|
--enable-cgi \
|
|
|
|
--disable-cli
|
2008-05-07 19:42:29 +02:00
|
|
|
|
2021-06-05 17:02:30 +02:00
|
|
|
make
|
2008-05-07 19:42:29 +02:00
|
|
|
|
2021-06-05 17:02:30 +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
|
|
|
}
|