wok annotate swat/receipt @ rev 19770
Up: tazbug (2.0) No more gtk gui, new cmdline tools, plugins and better way to handle bugs
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Feb 21 04:43:09 2017 +0100 (2017-02-21) |
parents | 2b9f96603415 |
children |
rev | line source |
---|---|
pascal@1250 | 1 # SliTaz package receipt. |
pascal@1250 | 2 |
pascal@1250 | 3 PACKAGE="swat" |
slaxemulator@13268 | 4 VERSION="3.6.7" |
pascal@1250 | 5 CATEGORY="development" |
pascal@1250 | 6 SHORT_DESC="Samba Web Administration Tool." |
pascal@1250 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@14999 | 8 LICENSE="GPL3" |
pascal@1250 | 9 WEB_SITE="http://samba.org/" |
pascal@14999 | 10 WANTED="samba" |
pascal@14999 | 11 |
pascal@1250 | 12 DEPENDS="samba" |
pascal@1250 | 13 |
pascal@1250 | 14 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1250 | 15 genpkg_rules() |
pascal@1250 | 16 { |
pascal@11544 | 17 mkdir -p $fs/usr/share/samba $fs/usr/share/applications |
slaxemulator@13268 | 18 cp -a $install/usr/share/samba/swat $fs/usr/share/samba |
pascal@1250 | 19 } |
pascal@1250 | 20 |
pascal@1250 | 21 post_install() |
pascal@1250 | 22 { |
pascal@18730 | 23 if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then |
pascal@18730 | 24 if ! grep -q /usr/share/samba/swat/ "$1/etc/lighttpd/lighttpd.conf"; then |
pascal@18730 | 25 sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/swat/" => "/usr/share/samba/swat/",|g' -i "$1/etc/lighttpd/lighttpd.conf" |
pascal@1250 | 26 if [ -z "$1" ]; then |
pascal@1250 | 27 # Start Web server. |
pascal@1250 | 28 /etc/init.d/lighttpd stop |
pascal@1250 | 29 /etc/init.d/lighttpd start |
pascal@1250 | 30 fi |
pascal@1250 | 31 fi |
pascal@1250 | 32 fi |
pascal@1250 | 33 } |