wok-6.x view swat/receipt @ rev 17741
perl-class-accessor, perl-file-rsync, perl-libjson, perl-texi2html: add bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Mar 06 20:20:59 2015 +0100 (2015-03-06) |
parents | 4cba4433d0b7 |
children | 9e01bc6321ea |
line source
1 # SliTaz package receipt.
3 PACKAGE="swat"
4 VERSION="3.6.7"
5 CATEGORY="development"
6 SHORT_DESC="Samba Web Administration Tool."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="http://samba.org/"
10 WANTED="samba"
12 DEPENDS="samba"
14 # Rules to gen a SliTaz package suitable for Tazpkg.
15 genpkg_rules()
16 {
17 mkdir -p $fs/usr/share/samba $fs/usr/share/applications
18 cp -a $install/usr/share/samba/swat $fs/usr/share/samba
19 }
21 post_install()
22 {
23 if [ -f $1/etc/lighttpd/lighttpd.conf ]; then
24 if ! grep -q /usr/share/samba/swat/ $1/etc/lighttpd/lighttpd.conf; then
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
26 if [ -z "$1" ]; then
27 # Start Web server.
28 /etc/init.d/lighttpd stop
29 /etc/init.d/lighttpd start
30 fi
31 fi
32 fi
33 }