# HG changeset patch # User Hans-G?nter Theisgen # Date 1594044904 -3600 # Node ID 5464a63145b7ef6167ae943e87430c6b5997003a # Parent 7eb2e66fb13812920081360ac0935e79d1fd62f5 updated grooms (1.0.5 -> 1.0.9) diff -r 7eb2e66fb138 -r 5464a63145b7 grooms/receipt --- a/grooms/receipt Mon Jul 06 14:49:55 2020 +0100 +++ b/grooms/receipt Mon Jul 06 15:15:04 2020 +0100 @@ -1,9 +1,9 @@ # SliTaz package receipt v2. PACKAGE="grooms" -VERSION="1.0.5" +VERSION="1.0.9" CATEGORY="games" -SHORT_DESC="Play the board game, Go, over the Internet" +SHORT_DESC="Play the board game Go, over the Internet" MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" WEB_SITE="http://grooms.tuxfamily.org/" @@ -11,23 +11,30 @@ TARBALL="$PACKAGE-$VERSION.zip" WGET_URL="${WEB_SITE}$TARBALL" -compile_rules() { - mkdir -p $install/var/lib - cp -a $src $install/var/lib/grooms - chown 80.80 $install/var/lib/grooms +compile_rules() +{ + mkdir -p $install/var/lib + cp -a $src $install/var/lib/grooms + chown 80.80 $install/var/lib/grooms } -genpkg_rules() { +genpkg_rules() +{ copy @std DEPENDS="php" } -post_install() { +post_install() +{ # Configure lighttpd server - if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then - if ! grep -q /var/lib/grooms "$1/etc/lighttpd/lighttpd.conf"; then - sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/grooms/" => "/var/lib/grooms/",|g' -i "$1/etc/lighttpd/lighttpd.conf" - if [ -z "$1" ]; then + if [ -f "$1/etc/lighttpd/lighttpd.conf" ] + then + if ! grep -q /var/lib/grooms "$1/etc/lighttpd/lighttpd.conf" + then + sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/grooms/" => "/var/lib/grooms/",|g' \ + -i "$1/etc/lighttpd/lighttpd.conf" + if [ -z "$1" ] + then # Start Web server. /etc/init.d/lighttpd stop /etc/init.d/lighttpd start @@ -35,8 +42,10 @@ fi fi # Configure apache server - if [ -f "$1/etc/apache/httpd.conf" ]; then - if [ ! -f "$1/etc/apache/conf.d/grooms" ]; then + if [ -f "$1/etc/apache/httpd.conf" ] + then + if [ ! -f "$1/etc/apache/conf.d/grooms" ] + then cat > "$1/etc/apache/conf.d/grooms" < Alias /grooms /var/lib/grooms @@ -49,7 +58,8 @@ Allow from all EOT - if [ -z "$1" ]; then + if [ -z "$1" ] + then # Start Web server. /etc/init.d/apache stop /etc/init.d/apache start