wok-next rev 21707

updated grooms (1.0.5 -> 1.0.9)
author Hans-G?nter Theisgen
date Mon Jul 06 15:15:04 2020 +0100 (2020-07-06)
parents 7eb2e66fb138
children d96c9a7b7089
files grooms/receipt
line diff
     1.1 --- a/grooms/receipt	Mon Jul 06 14:49:55 2020 +0100
     1.2 +++ b/grooms/receipt	Mon Jul 06 15:15:04 2020 +0100
     1.3 @@ -1,9 +1,9 @@
     1.4  # SliTaz package receipt v2.
     1.5  
     1.6  PACKAGE="grooms"
     1.7 -VERSION="1.0.5"
     1.8 +VERSION="1.0.9"
     1.9  CATEGORY="games"
    1.10 -SHORT_DESC="Play the board game, Go, over the Internet"
    1.11 +SHORT_DESC="Play the board game Go, over the Internet"
    1.12  MAINTAINER="pascal.bellard@slitaz.org"
    1.13  LICENSE="GPL2"
    1.14  WEB_SITE="http://grooms.tuxfamily.org/"
    1.15 @@ -11,23 +11,30 @@
    1.16  TARBALL="$PACKAGE-$VERSION.zip"
    1.17  WGET_URL="${WEB_SITE}$TARBALL"
    1.18  
    1.19 -compile_rules() {
    1.20 -	mkdir -p         $install/var/lib
    1.21 -	cp    -a    $src $install/var/lib/grooms
    1.22 -	chown 80.80      $install/var/lib/grooms
    1.23 +compile_rules()
    1.24 +{
    1.25 +	mkdir -p		$install/var/lib
    1.26 +	cp    -a $src		$install/var/lib/grooms
    1.27 +	chown 80.80		$install/var/lib/grooms
    1.28  }
    1.29  
    1.30 -genpkg_rules() {
    1.31 +genpkg_rules()
    1.32 +{
    1.33  	copy @std
    1.34  	DEPENDS="php"
    1.35  }
    1.36  
    1.37 -post_install() {
    1.38 +post_install()
    1.39 +{
    1.40  	# Configure lighttpd server
    1.41 -	if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then
    1.42 -		if ! grep -q /var/lib/grooms "$1/etc/lighttpd/lighttpd.conf"; then
    1.43 -			sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/grooms/" => "/var/lib/grooms/",|g' -i "$1/etc/lighttpd/lighttpd.conf"
    1.44 -			if [ -z "$1" ]; then
    1.45 +	if [ -f "$1/etc/lighttpd/lighttpd.conf" ]
    1.46 +	  then
    1.47 +		if ! grep -q /var/lib/grooms "$1/etc/lighttpd/lighttpd.conf"
    1.48 +		  then
    1.49 +			sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/grooms/" => "/var/lib/grooms/",|g' \
    1.50 +				-i "$1/etc/lighttpd/lighttpd.conf"
    1.51 +			if [ -z "$1" ]
    1.52 +			  then
    1.53  				# Start Web server.
    1.54  				/etc/init.d/lighttpd stop
    1.55  				/etc/init.d/lighttpd start
    1.56 @@ -35,8 +42,10 @@
    1.57  		fi
    1.58  	fi
    1.59  	# Configure apache server
    1.60 -	if [ -f "$1/etc/apache/httpd.conf" ]; then
    1.61 -		if [ ! -f "$1/etc/apache/conf.d/grooms" ]; then
    1.62 +	if [ -f "$1/etc/apache/httpd.conf" ]
    1.63 +	  then
    1.64 +		if [ ! -f "$1/etc/apache/conf.d/grooms" ]
    1.65 +		  then
    1.66  			cat > "$1/etc/apache/conf.d/grooms" <<EOT
    1.67  <IfModule mod_alias.c>
    1.68  	Alias /grooms /var/lib/grooms
    1.69 @@ -49,7 +58,8 @@
    1.70  	Allow from all
    1.71  </Directory>
    1.72  EOT
    1.73 -			if [ -z "$1" ]; then
    1.74 +			if [ -z "$1" ]
    1.75 +			  then
    1.76  				# Start Web server.
    1.77  				/etc/init.d/apache stop
    1.78  				/etc/init.d/apache start