wok-current annotate grooms/receipt @ rev 24308
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jan 17 18:18:17 2022 +0000 (2022-01-17) |
parents | 9e01bc6321ea |
children | af8d823a3077 |
rev | line source |
---|---|
pascal@13478 | 1 # SliTaz package receipt. |
pascal@13478 | 2 |
pascal@13478 | 3 PACKAGE="grooms" |
Hans-G?nter@21003 | 4 VERSION="1.0.9" |
pascal@13478 | 5 CATEGORY="games" |
samuel_trassare@13680 | 6 SHORT_DESC="Play the board game, Go, over the Internet." |
pascal@13478 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15215 | 8 LICENSE="GPL2" |
samuel_trassare@13680 | 9 WEB_SITE="http://$PACKAGE.tuxfamily.org" |
Hans-G?nter@21003 | 10 |
pascal@13478 | 11 TARBALL="$PACKAGE-$VERSION.zip" |
samuel_trassare@13680 | 12 WGET_URL="${WEB_SITE}/$TARBALL" |
pascal@13478 | 13 |
pascal@13478 | 14 DEPENDS="php" |
pascal@13478 | 15 |
pascal@13478 | 16 # Rules to configure and make the package. |
pascal@13478 | 17 compile_rules() |
pascal@13478 | 18 { |
Hans-G?nter@21003 | 19 : |
pascal@13478 | 20 } |
pascal@13478 | 21 |
pascal@13478 | 22 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@13478 | 23 genpkg_rules() |
pascal@13478 | 24 { |
pascal@13478 | 25 mkdir -p $fs/var/lib |
pascal@13478 | 26 cp -a $src $fs/var/lib/grooms |
pascal@13479 | 27 chown 80.80 $fs/var/lib/grooms |
pascal@13478 | 28 } |
pascal@13478 | 29 |
pascal@13478 | 30 post_install() |
pascal@13478 | 31 { |
pascal@13478 | 32 # Configure lighttpd server |
pascal@18730 | 33 if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then |
pascal@18730 | 34 if ! grep -q /var/lib/grooms "$1/etc/lighttpd/lighttpd.conf"; then |
pascal@18730 | 35 sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/grooms/" => "/var/lib/grooms/",|g' -i "$1/etc/lighttpd/lighttpd.conf" |
pascal@13478 | 36 if [ -z "$1" ]; then |
pascal@13478 | 37 # Start Web server. |
pascal@13478 | 38 /etc/init.d/lighttpd stop |
pascal@13478 | 39 /etc/init.d/lighttpd start |
pascal@13478 | 40 fi |
pascal@13478 | 41 fi |
pascal@13478 | 42 fi |
pascal@13478 | 43 # Configure apache server |
pascal@18730 | 44 if [ -f "$1/etc/apache/httpd.conf" ]; then |
pascal@18730 | 45 if [ ! -f "$1/etc/apache/conf.d/grooms" ]; then |
pascal@18730 | 46 cat > "$1/etc/apache/conf.d/grooms" <<EOT |
pascal@13478 | 47 <IfModule mod_alias.c> |
pascal@13478 | 48 Alias /grooms /var/lib/grooms |
pascal@13478 | 49 </IfModule> |
pascal@13478 | 50 <Directory /var/lib/grooms/> |
pascal@13478 | 51 DirectoryIndex index.php |
pascal@13478 | 52 Options +FollowSymLinks |
pascal@13478 | 53 AllowOverride None |
pascal@13478 | 54 Order allow,deny |
pascal@13478 | 55 Allow from all |
pascal@13478 | 56 </Directory> |
pascal@13478 | 57 EOT |
pascal@13478 | 58 if [ -z "$1" ]; then |
pascal@13478 | 59 # Start Web server. |
pascal@13478 | 60 /etc/init.d/apache stop |
pascal@13478 | 61 /etc/init.d/apache start |
pascal@13478 | 62 fi |
pascal@13478 | 63 fi |
pascal@13478 | 64 fi |
pascal@13478 | 65 } |