wok-next view grooms/receipt @ rev 20443

The rest of my "home work" for update many packages (up to Xorg, GTK and Openbox) for Next and mainly for Next64. Since this point this repository is open for commits. Many errors are expected due to harfbuzz-freetype dependency loop...
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Feb 24 16:17:33 2018 +0200 (2018-02-24)
parents 7bb096863642
children e1c0edabdcb2
line source
1 # SliTaz package receipt.
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://$PACKAGE.tuxfamily.org"
10 TARBALL="$PACKAGE-$VERSION.zip"
11 WGET_URL="${WEB_SITE}/$TARBALL"
13 DEPENDS="php"
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 }