wok-current annotate php-cherokee/receipt @ rev 22374

updated ilmbase and ilmbase-dev again (2.2.0 -> 2.3.0)
author Hans-G?nter Theisgen
date Wed Nov 27 16:47:30 2019 +0100 (2019-11-27)
parents 9e01bc6321ea
children 84a3b4b621e1
rev   line source
stanislas@15181 1 # SliTaz package receipt.
stanislas@15181 2
stanislas@15181 3 PACKAGE="php-cherokee"
erjo@16733 4 VERSION="5.5.13"
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"
pascal@21278 9 WEB_SITE="https://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
pascal@18730 34 # if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then
pascal@18730 35 # [ -f "$1/usr/lib/lighttpd/mod_fastcgi.so" ] || \
pascal@18730 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 )))|' \
pascal@18730 40 # -i "$1/etc/lighttpd/lighttpd.conf"
pascal@18730 41 # grep -q mod_fastcgi "$1/etc/lighttpd/lighttpd.conf" || \
stanislas@15181 42 # sed -e 's|server.modules = (|server.modules = (\n "mod_fastcgi",|' \
pascal@18730 43 # -i "$1/etc/lighttpd/lighttpd.conf"
pascal@18730 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" )|' \
pascal@18730 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 }