wok-next annotate grooms/receipt @ rev 21727
created recipe for vbindiff
author | Hans-G?nter Theisgen |
---|---|
date | Sat Nov 21 14:32:44 2020 +0100 (2020-11-21) |
parents | d5aab818505e |
children |
rev | line source |
---|---|
al@20473 | 1 # SliTaz package receipt v2. |
pascal@13478 | 2 |
pascal@13478 | 3 PACKAGE="grooms" |
Hans-G?nter@21707 | 4 VERSION="1.0.9" |
pascal@13478 | 5 CATEGORY="games" |
Hans-G?nter@21707 | 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@21020 | 9 WEB_SITE="http://grooms.tuxfamily.org/" |
al@20473 | 10 |
pascal@13478 | 11 TARBALL="$PACKAGE-$VERSION.zip" |
al@21020 | 12 WGET_URL="${WEB_SITE}$TARBALL" |
pascal@13478 | 13 |
Hans-G?nter@21707 | 14 compile_rules() |
Hans-G?nter@21707 | 15 { |
Hans-G?nter@21707 | 16 mkdir -p $install/var/lib |
Hans-G?nter@21707 | 17 cp -a $src $install/var/lib/grooms |
Hans-G?nter@21707 | 18 chown 80.80 $install/var/lib/grooms |
pascal@13478 | 19 } |
pascal@13478 | 20 |
Hans-G?nter@21707 | 21 genpkg_rules() |
Hans-G?nter@21707 | 22 { |
al@20473 | 23 copy @std |
al@20473 | 24 DEPENDS="php" |
pascal@13478 | 25 } |
pascal@13478 | 26 |
Hans-G?nter@21707 | 27 post_install() |
Hans-G?nter@21707 | 28 { |
pascal@13478 | 29 # Configure lighttpd server |
Hans-G?nter@21707 | 30 if [ -f "$1/etc/lighttpd/lighttpd.conf" ] |
Hans-G?nter@21707 | 31 then |
Hans-G?nter@21707 | 32 if ! grep -q /var/lib/grooms "$1/etc/lighttpd/lighttpd.conf" |
Hans-G?nter@21707 | 33 then |
Hans-G?nter@21707 | 34 sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/grooms/" => "/var/lib/grooms/",|g' \ |
Hans-G?nter@21707 | 35 -i "$1/etc/lighttpd/lighttpd.conf" |
Hans-G?nter@21707 | 36 if [ -z "$1" ] |
Hans-G?nter@21707 | 37 then |
pascal@13478 | 38 # Start Web server. |
pascal@13478 | 39 /etc/init.d/lighttpd stop |
pascal@13478 | 40 /etc/init.d/lighttpd start |
pascal@13478 | 41 fi |
pascal@13478 | 42 fi |
pascal@13478 | 43 fi |
pascal@13478 | 44 # Configure apache server |
Hans-G?nter@21707 | 45 if [ -f "$1/etc/apache/httpd.conf" ] |
Hans-G?nter@21707 | 46 then |
Hans-G?nter@21707 | 47 if [ ! -f "$1/etc/apache/conf.d/grooms" ] |
Hans-G?nter@21707 | 48 then |
pascal@18730 | 49 cat > "$1/etc/apache/conf.d/grooms" <<EOT |
pascal@13478 | 50 <IfModule mod_alias.c> |
pascal@13478 | 51 Alias /grooms /var/lib/grooms |
pascal@13478 | 52 </IfModule> |
pascal@13478 | 53 <Directory /var/lib/grooms/> |
pascal@13478 | 54 DirectoryIndex index.php |
pascal@13478 | 55 Options +FollowSymLinks |
pascal@13478 | 56 AllowOverride None |
pascal@13478 | 57 Order allow,deny |
pascal@13478 | 58 Allow from all |
pascal@13478 | 59 </Directory> |
pascal@13478 | 60 EOT |
Hans-G?nter@21707 | 61 if [ -z "$1" ] |
Hans-G?nter@21707 | 62 then |
pascal@13478 | 63 # Start Web server. |
pascal@13478 | 64 /etc/init.d/apache stop |
pascal@13478 | 65 /etc/init.d/apache start |
pascal@13478 | 66 fi |
pascal@13478 | 67 fi |
pascal@13478 | 68 fi |
pascal@13478 | 69 } |