wok annotate php-cherokee/receipt @ rev 16374

Up: slitaz-configs (5.4) Getting ready for 5.0-RC1
author Christophe Lincoln <pankso@slitaz.org>
date Mon Apr 14 19:59:46 2014 +0200 (2014-04-14)
parents fec9d55946a2
children 55f67249b264
rev   line source
stanislas@15181 1 # SliTaz package receipt.
stanislas@15181 2
stanislas@15181 3 PACKAGE="php-cherokee"
pascal@16100 4 VERSION="5.4.26"
stanislas@15181 5 CATEGORY="development"
stanislas@15181 6 SHORT_DESC="PHP module for cherokee."
stanislas@15181 7 MAINTAINER="shann@slitaz.org"
pascal@15198 8 LICENSE="BSD"
stanislas@15181 9 WEB_SITE="http://www.php.net/"
stanislas@15181 10 WANTED="php"
stanislas@15181 11 PROVIDE="php:cherokee"
stanislas@15181 12
pascal@15198 13 DEPENDS="php-common cherokee libxml2 zlib"
pascal@15198 14
stanislas@15181 15 # Rules to gen a SliTaz package suitable for Tazpkg.
stanislas@15181 16 genpkg_rules()
stanislas@15181 17 {
stanislas@15181 18 mkdir -p $fs/usr/bin $fs/usr/share/php
stanislas@15181 19 cp -a $src/sapi/cgi/php-cgi $fs/usr/bin
stanislas@15181 20 }
stanislas@15181 21
stanislas@15181 22 # Post and pre install commands to stop
stanislas@15181 23 # and restart Web server if needed.
stanislas@15181 24 pre_install()
stanislas@15181 25 {
stanislas@15181 26 if [ -z "$1" -a ! -f "/var/run/cherokee.pid" ]; then
stanislas@15181 27 /etc/init.d/cherokee stop
stanislas@15181 28 fi
stanislas@15181 29 }
stanislas@15181 30
stanislas@15181 31 post_install()
stanislas@15181 32 {
stanislas@15181 33 # Enable php
stanislas@15181 34 # if [ -f $1/etc/lighttpd/lighttpd.conf ]; then
stanislas@15181 35 # [ -f $1/usr/lib/lighttpd/mod_fastcgi.so ] || \
stanislas@15181 36 # tazpkg get-install lighttpd-modules --root=$1/
stanislas@15181 37 # sed -e 's|#fastcgi.server = ( ".php"|fastcgi.server = ( ".php"|' \
stanislas@15181 38 # -e 's|#"bin-path" => "/usr/bin/php-cgi"|"bin-path" => "/usr/bin/php-cgi"|' \
stanislas@15181 39 # -e 's|#"socket" => "/tmp/php.socket"|"socket" => "/tmp/php.socket"\n )))|' \
stanislas@15181 40 # -i $1/etc/lighttpd/lighttpd.conf
stanislas@15181 41 # grep -q mod_fastcgi $1/etc/lighttpd/lighttpd.conf || \
stanislas@15181 42 # sed -e 's|server.modules = (|server.modules = (\n "mod_fastcgi",|' \
stanislas@15181 43 # -i $1/etc/lighttpd/lighttpd.conf
stanislas@15181 44 # grep -q php3 $1/etc/lighttpd/lighttpd.conf || \
stanislas@15181 45 # sed -e 's|for PHP.*|for PHP.\nfastcgi.map-extensions = ( ".php3" => ".php", ".php4" => ".php", ".php5" => ".php" )|' \
stanislas@15181 46 # -i $1/etc/lighttpd/lighttpd.conf
stanislas@15181 47 # fi
stanislas@15181 48
stanislas@15181 49
stanislas@15181 50 # Start Web server.
stanislas@15181 51 if [ -z "$1" -a ! -f /var/run/cherokee.pid \
stanislas@15181 52 -a -f /etc/init.d/cherokee ]; then
stanislas@15181 53 /etc/init.d/cherokee start
stanislas@15181 54 fi
stanislas@15181 55 }