php-fcgi: new port
This commit is contained in:
parent
a16e58a768
commit
62dabacfc0
6
php-fcgi/.footprint
Normal file
6
php-fcgi/.footprint
Normal file
@ -0,0 +1,6 @@
|
||||
drwxr-xr-x root/root etc/
|
||||
drwxr-xr-x root/root etc/rc.d/
|
||||
-rwxr-xr-x root/root etc/rc.d/php-fcgi
|
||||
drwxr-xr-x root/root usr/
|
||||
drwxr-xr-x root/root usr/bin/
|
||||
-rwxr-xr-x root/root usr/bin/php-cgi
|
2
php-fcgi/.md5sum
Normal file
2
php-fcgi/.md5sum
Normal file
@ -0,0 +1,2 @@
|
||||
7380ffecebd95c6edb317ef861229ebd php-5.2.6.tar.bz2
|
||||
000e63b28460601ad0029c0e5b86acfe php-fcgi
|
34
php-fcgi/Pkgfile
Normal file
34
php-fcgi/Pkgfile
Normal file
@ -0,0 +1,34 @@
|
||||
# Description: CGI/FastCGI version of the PHP interpreter
|
||||
# URL: http://www.php.net
|
||||
# Maintainer: Jürgen Daubert, juergen dot daubert at t-online dot de
|
||||
# Depends on: libxml2
|
||||
|
||||
name=php-fcgi
|
||||
version=5.2.6
|
||||
release=1
|
||||
source=(http://www.php.net/distributions/php-$version.tar.bz2
|
||||
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 \
|
||||
--disable-static --disable-debug --disable-pear"
|
||||
|
||||
EXTENSION_DIR=/usr/lib/php/extensions \
|
||||
./configure \
|
||||
$PHP_CONFIG \
|
||||
--enable-fastcgi \
|
||||
--enable-cgi \
|
||||
--disable-cli \
|
||||
--enable-force-cgi-redirect \
|
||||
--enable-discard-path
|
||||
|
||||
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
|
||||
}
|
29
php-fcgi/php-fcgi
Normal file
29
php-fcgi/php-fcgi
Normal file
@ -0,0 +1,29 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# /etc/rc.d/php-fcgi: start/stop FastCGI php daemon
|
||||
#
|
||||
|
||||
PHP=/usr/bin/php-cgi
|
||||
PORT="127.0.0.1:8000"
|
||||
USR=www
|
||||
COUNT=8
|
||||
|
||||
case $1 in
|
||||
start)
|
||||
export PHP_FCGI_CHILDREN=$COUNT
|
||||
su -s "/bin/sh" $USR -c "$PHP -b $PORT" &
|
||||
;;
|
||||
stop)
|
||||
killall -q $PHP
|
||||
;;
|
||||
restart)
|
||||
$0 stop
|
||||
sleep 2
|
||||
$0 start
|
||||
;;
|
||||
*)
|
||||
echo "usage: $0 [start|stop|restart]"
|
||||
;;
|
||||
esac
|
||||
|
||||
# End of file
|
Loading…
x
Reference in New Issue
Block a user