wok rev 15181
First receipt for php-cherokee
author | Stanislas Leduc <stanislas.leduc@balinor.net> |
---|---|
date | Wed Aug 21 13:52:26 2013 +0200 (2013-08-21) |
parents | 10c1de772cf6 |
children | 92c944abb6f5 |
files | php-cherokee/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/php-cherokee/receipt Wed Aug 21 13:52:26 2013 +0200 1.3 @@ -0,0 +1,53 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="php-cherokee" 1.7 +VERSION="5.4.13" 1.8 +CATEGORY="development" 1.9 +SHORT_DESC="PHP module for cherokee." 1.10 +MAINTAINER="shann@slitaz.org" 1.11 +DEPENDS="php-common cherokee libxml2 zlib" 1.12 +WEB_SITE="http://www.php.net/" 1.13 +WANTED="php" 1.14 +PROVIDE="php:cherokee" 1.15 + 1.16 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.17 +genpkg_rules() 1.18 +{ 1.19 + mkdir -p $fs/usr/bin $fs/usr/share/php 1.20 + cp -a $src/sapi/cgi/php-cgi $fs/usr/bin 1.21 +} 1.22 + 1.23 +# Post and pre install commands to stop 1.24 +# and restart Web server if needed. 1.25 +pre_install() 1.26 +{ 1.27 + if [ -z "$1" -a ! -f "/var/run/cherokee.pid" ]; then 1.28 + /etc/init.d/cherokee stop 1.29 + fi 1.30 +} 1.31 + 1.32 +post_install() 1.33 +{ 1.34 + # Enable php 1.35 +# if [ -f $1/etc/lighttpd/lighttpd.conf ]; then 1.36 +# [ -f $1/usr/lib/lighttpd/mod_fastcgi.so ] || \ 1.37 +# tazpkg get-install lighttpd-modules --root=$1/ 1.38 +# sed -e 's|#fastcgi.server = ( ".php"|fastcgi.server = ( ".php"|' \ 1.39 +# -e 's|#"bin-path" => "/usr/bin/php-cgi"|"bin-path" => "/usr/bin/php-cgi"|' \ 1.40 +# -e 's|#"socket" => "/tmp/php.socket"|"socket" => "/tmp/php.socket"\n )))|' \ 1.41 +# -i $1/etc/lighttpd/lighttpd.conf 1.42 +# grep -q mod_fastcgi $1/etc/lighttpd/lighttpd.conf || \ 1.43 +# sed -e 's|server.modules = (|server.modules = (\n "mod_fastcgi",|' \ 1.44 +# -i $1/etc/lighttpd/lighttpd.conf 1.45 +# grep -q php3 $1/etc/lighttpd/lighttpd.conf || \ 1.46 +# sed -e 's|for PHP.*|for PHP.\nfastcgi.map-extensions = ( ".php3" => ".php", ".php4" => ".php", ".php5" => ".php" )|' \ 1.47 +# -i $1/etc/lighttpd/lighttpd.conf 1.48 +# fi 1.49 + 1.50 + 1.51 + # Start Web server. 1.52 + if [ -z "$1" -a ! -f /var/run/cherokee.pid \ 1.53 + -a -f /etc/init.d/cherokee ]; then 1.54 + /etc/init.d/cherokee start 1.55 + fi 1.56 +}