wok-current view grooms/receipt @ rev 23807

eudev: include relocated udevadm
author Richard Dunbar <mojo@slitaz.org>
date Sun May 24 12:23:14 2020 -0400 (2020-05-24)
parents 9e01bc6321ea
children af8d823a3077
line source
1 # SliTaz package receipt.
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://$PACKAGE.tuxfamily.org"
11 TARBALL="$PACKAGE-$VERSION.zip"
12 WGET_URL="${WEB_SITE}/$TARBALL"
14 DEPENDS="php"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 :
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 mkdir -p $fs/var/lib
26 cp -a $src $fs/var/lib/grooms
27 chown 80.80 $fs/var/lib/grooms
28 }
30 post_install()
31 {
32 # Configure lighttpd server
33 if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then
34 if ! grep -q /var/lib/grooms "$1/etc/lighttpd/lighttpd.conf"; then
35 sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/grooms/" => "/var/lib/grooms/",|g' -i "$1/etc/lighttpd/lighttpd.conf"
36 if [ -z "$1" ]; then
37 # Start Web server.
38 /etc/init.d/lighttpd stop
39 /etc/init.d/lighttpd start
40 fi
41 fi
42 fi
43 # Configure apache server
44 if [ -f "$1/etc/apache/httpd.conf" ]; then
45 if [ ! -f "$1/etc/apache/conf.d/grooms" ]; then
46 cat > "$1/etc/apache/conf.d/grooms" <<EOT
47 <IfModule mod_alias.c>
48 Alias /grooms /var/lib/grooms
49 </IfModule>
50 <Directory /var/lib/grooms/>
51 DirectoryIndex index.php
52 Options +FollowSymLinks
53 AllowOverride None
54 Order allow,deny
55 Allow from all
56 </Directory>
57 EOT
58 if [ -z "$1" ]; then
59 # Start Web server.
60 /etc/init.d/apache stop
61 /etc/init.d/apache start
62 fi
63 fi
64 fi
65 }