wok view php-cherokee/receipt @ rev 15583
Add some licenses
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Nov 30 15:44:51 2013 +0000 (2013-11-30) |
parents | 60a1a4db09fb |
children | fec9d55946a2 |
line source
1 # SliTaz package receipt.
3 PACKAGE="php-cherokee"
4 VERSION="5.4.13"
5 CATEGORY="development"
6 SHORT_DESC="PHP module for cherokee."
7 MAINTAINER="shann@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="http://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 }