wok-next view grooms/receipt @ rev 21727
created recipe for vbindiff
author | Hans-G?nter Theisgen |
---|---|
date | Sat Nov 21 14:32:44 2020 +0100 (2020-11-21) |
parents | d5aab818505e |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="grooms"
4 VERSION="1.0.9"
5 CATEGORY="games"
6 SHORT_DESC="Play the board game Go, over the Internet"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://grooms.tuxfamily.org/"
11 TARBALL="$PACKAGE-$VERSION.zip"
12 WGET_URL="${WEB_SITE}$TARBALL"
14 compile_rules()
15 {
16 mkdir -p $install/var/lib
17 cp -a $src $install/var/lib/grooms
18 chown 80.80 $install/var/lib/grooms
19 }
21 genpkg_rules()
22 {
23 copy @std
24 DEPENDS="php"
25 }
27 post_install()
28 {
29 # Configure lighttpd server
30 if [ -f "$1/etc/lighttpd/lighttpd.conf" ]
31 then
32 if ! grep -q /var/lib/grooms "$1/etc/lighttpd/lighttpd.conf"
33 then
34 sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/grooms/" => "/var/lib/grooms/",|g' \
35 -i "$1/etc/lighttpd/lighttpd.conf"
36 if [ -z "$1" ]
37 then
38 # Start Web server.
39 /etc/init.d/lighttpd stop
40 /etc/init.d/lighttpd start
41 fi
42 fi
43 fi
44 # Configure apache server
45 if [ -f "$1/etc/apache/httpd.conf" ]
46 then
47 if [ ! -f "$1/etc/apache/conf.d/grooms" ]
48 then
49 cat > "$1/etc/apache/conf.d/grooms" <<EOT
50 <IfModule mod_alias.c>
51 Alias /grooms /var/lib/grooms
52 </IfModule>
53 <Directory /var/lib/grooms/>
54 DirectoryIndex index.php
55 Options +FollowSymLinks
56 AllowOverride None
57 Order allow,deny
58 Allow from all
59 </Directory>
60 EOT
61 if [ -z "$1" ]
62 then
63 # Start Web server.
64 /etc/init.d/apache stop
65 /etc/init.d/apache start
66 fi
67 fi
68 fi
69 }