wok-current view php-cherokee/receipt @ rev 25729

Merge wok for both arch and few updates (again)
author Stanislas Leduc <shann@slitaz.org>
date Thu Dec 05 08:52:36 2024 +0000 (5 weeks ago)
parents a23978bfa665
children
line source
1 # SliTaz package receipt.
3 PACKAGE="php-cherokee"
4 VERSION="7.4.33"
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 HOST_ARCH="i486 x86_64"
17 # Rules to gen a SliTaz package suitable for Tazpkg.
18 genpkg_rules()
19 {
20 mkdir -p $fs/usr/bin
21 mkdir -p $fs/usr/share/php
23 cp -a $src/sapi/cgi/php-cgi $fs/usr/bin
24 }
26 # Post and pre install commands to stop
27 # and restart Web server if needed.
28 pre_install()
29 {
30 if [ -z "$1" -a ! -f "/var/run/cherokee.pid" ]
31 then
32 /etc/init.d/cherokee stop
33 fi
34 }
36 post_install()
37 {
38 # Enable php
39 # if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then
40 # [ -f "$1/usr/lib/lighttpd/mod_fastcgi.so" ] || \
41 # tazpkg get-install lighttpd-modules --root="$1/"
42 # sed -e 's|#fastcgi.server = ( ".php"|fastcgi.server = ( ".php"|' \
43 # -e 's|#"bin-path" => "/usr/bin/php-cgi"|"bin-path" => "/usr/bin/php-cgi"|' \
44 # -e 's|#"socket" => "/tmp/php.socket"|"socket" => "/tmp/php.socket"\n )))|' \
45 # -i "$1/etc/lighttpd/lighttpd.conf"
46 # grep -q mod_fastcgi "$1/etc/lighttpd/lighttpd.conf" || \
47 # sed -e 's|server.modules = (|server.modules = (\n "mod_fastcgi",|' \
48 # -i "$1/etc/lighttpd/lighttpd.conf"
49 # grep -q php3 "$1/etc/lighttpd/lighttpd.conf" || \
50 # sed -e 's|for PHP.*|for PHP.\nfastcgi.map-extensions = ( ".php3" => ".php", ".php4" => ".php", ".php5" => ".php" )|' \
51 # -i "$1/etc/lighttpd/lighttpd.conf"
52 # fi
55 # Start Web server.
56 if [ -z "$1" -a ! -f /var/run/cherokee.pid -a -f /etc/init.d/cherokee ]
57 then
58 /etc/init.d/cherokee start
59 fi
60 }