wok view grooms/receipt @ rev 13641

Up: edbus (1.7.1)
author Christophe Lincoln <pankso@slitaz.org>
date Fri Nov 16 00:06:13 2012 +0100 (2012-11-16)
parents 5fb313d44a9b
children ce9c00ae0e36
line source
1 # SliTaz package receipt.
3 PACKAGE="grooms"
4 VERSION="1.0.1"
5 CATEGORY="games"
6 SHORT_DESC="Play the go game over internet."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 WEB_SITE="http://grooms.tuxfamily.org/"
9 TARBALL="$PACKAGE-$VERSION.zip"
10 WGET_URL="${WEB_SITE}$TARBALL"
12 DEPENDS="php"
13 BUILD_DEPENDS=""
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 }
21 # Rules to gen a SliTaz package suitable for Tazpkg.
22 genpkg_rules()
23 {
24 mkdir -p $fs/var/lib
25 cp -a $src $fs/var/lib/grooms
26 chown 80.80 $fs/var/lib/grooms
27 }
29 post_install()
30 {
31 # Configure lighttpd server
32 if [ -f $1/etc/lighttpd/lighttpd.conf ]; then
33 if ! grep -q /var/lib/grooms $1/etc/lighttpd/lighttpd.conf; then
34 sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/grooms/" => "/var/lib/grooms/",|g' -i $1/etc/lighttpd/lighttpd.conf
35 if [ -z "$1" ]; then
36 # Start Web server.
37 /etc/init.d/lighttpd stop
38 /etc/init.d/lighttpd start
39 fi
40 fi
41 fi
42 # Configure apache server
43 if [ -f $1/etc/apache/httpd.conf ]; then
44 if [ ! -f $1/etc/apache/conf.d/grooms ]; then
45 cat > $1/etc/apache/conf.d/grooms <<EOT
46 <IfModule mod_alias.c>
47 Alias /grooms /var/lib/grooms
48 </IfModule>
49 <Directory /var/lib/grooms/>
50 DirectoryIndex index.php
51 Options +FollowSymLinks
52 AllowOverride None
53 Order allow,deny
54 Allow from all
55 </Directory>
56 EOT
57 if [ -z "$1" ]; then
58 # Start Web server.
59 /etc/init.d/apache stop
60 /etc/init.d/apache start
61 fi
62 fi
63 fi
64 }