wok-next view grooms/receipt @ rev 21469

updated tinc (1.0.25 -> 1.0.36)
author Hans-G?nter Theisgen
date Wed May 13 07:41:00 2020 +0100 (2020-05-13)
parents e1c0edabdcb2
children 5464a63145b7
line source
1 # SliTaz package receipt v2.
3 PACKAGE="grooms"
4 VERSION="1.0.5"
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 mkdir -p $install/var/lib
16 cp -a $src $install/var/lib/grooms
17 chown 80.80 $install/var/lib/grooms
18 }
20 genpkg_rules() {
21 copy @std
22 DEPENDS="php"
23 }
25 post_install() {
26 # Configure lighttpd server
27 if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then
28 if ! grep -q /var/lib/grooms "$1/etc/lighttpd/lighttpd.conf"; then
29 sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/grooms/" => "/var/lib/grooms/",|g' -i "$1/etc/lighttpd/lighttpd.conf"
30 if [ -z "$1" ]; then
31 # Start Web server.
32 /etc/init.d/lighttpd stop
33 /etc/init.d/lighttpd start
34 fi
35 fi
36 fi
37 # Configure apache server
38 if [ -f "$1/etc/apache/httpd.conf" ]; then
39 if [ ! -f "$1/etc/apache/conf.d/grooms" ]; then
40 cat > "$1/etc/apache/conf.d/grooms" <<EOT
41 <IfModule mod_alias.c>
42 Alias /grooms /var/lib/grooms
43 </IfModule>
44 <Directory /var/lib/grooms/>
45 DirectoryIndex index.php
46 Options +FollowSymLinks
47 AllowOverride None
48 Order allow,deny
49 Allow from all
50 </Directory>
51 EOT
52 if [ -z "$1" ]; then
53 # Start Web server.
54 /etc/init.d/apache stop
55 /etc/init.d/apache start
56 fi
57 fi
58 fi
59 }