wok view php-cherokee/receipt @ rev 24170

updated otf-gfs
author Hans-G?nter Theisgen
date Wed Dec 29 07:55:54 2021 +0100 (2021-12-29)
parents b10d41313e54
children
line source
1 # SliTaz package receipt.
3 PACKAGE="php-cherokee"
4 VERSION="7.4.4"
5 CATEGORY="development"
6 SHORT_DESC="PHP module for cherokee."
7 MAINTAINER="shann@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://www.php.net/"
11 PROVIDE="php:cherokee"
12 DEPENDS="cherokee libxml2 php-common zlib"
13 WANTED="php"
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 genpkg_rules()
17 {
18 mkdir -p $fs/usr/bin
19 mkdir -p $fs/usr/share/php
21 cp -a $src/sapi/cgi/php-cgi $fs/usr/bin
22 }
24 # Post and pre install commands to stop
25 # and restart Web server if needed.
26 pre_install()
27 {
28 if [ -z "$1" -a ! -f "/var/run/cherokee.pid" ]
29 then
30 /etc/init.d/cherokee stop
31 fi
32 }
34 post_install()
35 {
36 # Enable php
37 # if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then
38 # [ -f "$1/usr/lib/lighttpd/mod_fastcgi.so" ] || \
39 # tazpkg get-install lighttpd-modules --root="$1/"
40 # sed -e 's|#fastcgi.server = ( ".php"|fastcgi.server = ( ".php"|' \
41 # -e 's|#"bin-path" => "/usr/bin/php-cgi"|"bin-path" => "/usr/bin/php-cgi"|' \
42 # -e 's|#"socket" => "/tmp/php.socket"|"socket" => "/tmp/php.socket"\n )))|' \
43 # -i "$1/etc/lighttpd/lighttpd.conf"
44 # grep -q mod_fastcgi "$1/etc/lighttpd/lighttpd.conf" || \
45 # sed -e 's|server.modules = (|server.modules = (\n "mod_fastcgi",|' \
46 # -i "$1/etc/lighttpd/lighttpd.conf"
47 # grep -q php3 "$1/etc/lighttpd/lighttpd.conf" || \
48 # sed -e 's|for PHP.*|for PHP.\nfastcgi.map-extensions = ( ".php3" => ".php", ".php4" => ".php", ".php5" => ".php" )|' \
49 # -i "$1/etc/lighttpd/lighttpd.conf"
50 # fi
53 # Start Web server.
54 if [ -z "$1" -a ! -f /var/run/cherokee.pid -a -f /etc/init.d/cherokee ]
55 then
56 /etc/init.d/cherokee start
57 fi
58 }