wok-next annotate grooms/receipt @ rev 20931
pygobject3 -> python-pygobject (latest); pygobject -> python-pygobject2 (legacy)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Aug 23 08:03:04 2018 +0300 (2018-08-23) |
parents | 9e01bc6321ea |
children | d5aab818505e |
rev | line source |
---|---|
al@20473 | 1 # SliTaz package receipt v2. |
pascal@13478 | 2 |
pascal@13478 | 3 PACKAGE="grooms" |
samuel_trassare@13680 | 4 VERSION="1.0.5" |
pascal@13478 | 5 CATEGORY="games" |
al@20473 | 6 SHORT_DESC="Play the board game, Go, over the Internet" |
pascal@13478 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15215 | 8 LICENSE="GPL2" |
al@20473 | 9 WEB_SITE="http://grooms.tuxfamily.org" |
al@20473 | 10 |
pascal@13478 | 11 TARBALL="$PACKAGE-$VERSION.zip" |
samuel_trassare@13680 | 12 WGET_URL="${WEB_SITE}/$TARBALL" |
pascal@13478 | 13 |
al@20473 | 14 compile_rules() { |
al@20473 | 15 mkdir -p $install/var/lib |
al@20473 | 16 cp -a $src $install/var/lib/grooms |
al@20473 | 17 chown 80.80 $install/var/lib/grooms |
pascal@13478 | 18 } |
pascal@13478 | 19 |
al@20473 | 20 genpkg_rules() { |
al@20473 | 21 copy @std |
al@20473 | 22 DEPENDS="php" |
pascal@13478 | 23 } |
pascal@13478 | 24 |
al@20473 | 25 post_install() { |
pascal@13478 | 26 # Configure lighttpd server |
pascal@18730 | 27 if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then |
pascal@18730 | 28 if ! grep -q /var/lib/grooms "$1/etc/lighttpd/lighttpd.conf"; then |
pascal@18730 | 29 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 | 30 if [ -z "$1" ]; then |
pascal@13478 | 31 # Start Web server. |
pascal@13478 | 32 /etc/init.d/lighttpd stop |
pascal@13478 | 33 /etc/init.d/lighttpd start |
pascal@13478 | 34 fi |
pascal@13478 | 35 fi |
pascal@13478 | 36 fi |
pascal@13478 | 37 # Configure apache server |
pascal@18730 | 38 if [ -f "$1/etc/apache/httpd.conf" ]; then |
pascal@18730 | 39 if [ ! -f "$1/etc/apache/conf.d/grooms" ]; then |
pascal@18730 | 40 cat > "$1/etc/apache/conf.d/grooms" <<EOT |
pascal@13478 | 41 <IfModule mod_alias.c> |
pascal@13478 | 42 Alias /grooms /var/lib/grooms |
pascal@13478 | 43 </IfModule> |
pascal@13478 | 44 <Directory /var/lib/grooms/> |
pascal@13478 | 45 DirectoryIndex index.php |
pascal@13478 | 46 Options +FollowSymLinks |
pascal@13478 | 47 AllowOverride None |
pascal@13478 | 48 Order allow,deny |
pascal@13478 | 49 Allow from all |
pascal@13478 | 50 </Directory> |
pascal@13478 | 51 EOT |
pascal@13478 | 52 if [ -z "$1" ]; then |
pascal@13478 | 53 # Start Web server. |
pascal@13478 | 54 /etc/init.d/apache stop |
pascal@13478 | 55 /etc/init.d/apache start |
pascal@13478 | 56 fi |
pascal@13478 | 57 fi |
pascal@13478 | 58 fi |
pascal@13478 | 59 } |