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