wok annotate php-cherokee/receipt @ rev 24793

updated libgpg-error and libgpg-error-dev (1.37 -> 1.44)
author Hans-G?nter Theisgen
date Mon Mar 21 15:45:38 2022 +0100 (2022-03-21)
parents b10d41313e54
children
rev   line source
stanislas@15181 1 # SliTaz package receipt.
stanislas@15181 2
stanislas@15181 3 PACKAGE="php-cherokee"
Hans-G?nter@23426 4 VERSION="7.4.4"
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/"
Hans-G?nter@23426 10
Hans-G?nter@23426 11 PROVIDE="php:cherokee"
Hans-G?nter@23426 12 DEPENDS="cherokee libxml2 php-common zlib"
stanislas@15181 13 WANTED="php"
pascal@15198 14
stanislas@15181 15 # Rules to gen a SliTaz package suitable for Tazpkg.
stanislas@15181 16 genpkg_rules()
stanislas@15181 17 {
Hans-G?nter@23426 18 mkdir -p $fs/usr/bin
Hans-G?nter@23426 19 mkdir -p $fs/usr/share/php
Hans-G?nter@23426 20
Hans-G?nter@23426 21 cp -a $src/sapi/cgi/php-cgi $fs/usr/bin
stanislas@15181 22 }
stanislas@15181 23
stanislas@15181 24 # Post and pre install commands to stop
stanislas@15181 25 # and restart Web server if needed.
stanislas@15181 26 pre_install()
stanislas@15181 27 {
Hans-G?nter@23426 28 if [ -z "$1" -a ! -f "/var/run/cherokee.pid" ]
Hans-G?nter@23426 29 then
stanislas@15181 30 /etc/init.d/cherokee stop
stanislas@15181 31 fi
stanislas@15181 32 }
stanislas@15181 33
stanislas@15181 34 post_install()
stanislas@15181 35 {
stanislas@15181 36 # Enable php
pascal@18730 37 # if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then
pascal@18730 38 # [ -f "$1/usr/lib/lighttpd/mod_fastcgi.so" ] || \
pascal@18730 39 # tazpkg get-install lighttpd-modules --root="$1/"
stanislas@15181 40 # sed -e 's|#fastcgi.server = ( ".php"|fastcgi.server = ( ".php"|' \
stanislas@15181 41 # -e 's|#"bin-path" => "/usr/bin/php-cgi"|"bin-path" => "/usr/bin/php-cgi"|' \
stanislas@15181 42 # -e 's|#"socket" => "/tmp/php.socket"|"socket" => "/tmp/php.socket"\n )))|' \
pascal@18730 43 # -i "$1/etc/lighttpd/lighttpd.conf"
pascal@18730 44 # grep -q mod_fastcgi "$1/etc/lighttpd/lighttpd.conf" || \
stanislas@15181 45 # sed -e 's|server.modules = (|server.modules = (\n "mod_fastcgi",|' \
pascal@18730 46 # -i "$1/etc/lighttpd/lighttpd.conf"
pascal@18730 47 # grep -q php3 "$1/etc/lighttpd/lighttpd.conf" || \
stanislas@15181 48 # sed -e 's|for PHP.*|for PHP.\nfastcgi.map-extensions = ( ".php3" => ".php", ".php4" => ".php", ".php5" => ".php" )|' \
pascal@18730 49 # -i "$1/etc/lighttpd/lighttpd.conf"
stanislas@15181 50 # fi
stanislas@15181 51
stanislas@15181 52
stanislas@15181 53 # Start Web server.
Hans-G?nter@23426 54 if [ -z "$1" -a ! -f /var/run/cherokee.pid -a -f /etc/init.d/cherokee ]
Hans-G?nter@23426 55 then
stanislas@15181 56 /etc/init.d/cherokee start
stanislas@15181 57 fi
stanislas@15181 58 }