wok view swat/receipt @ rev 12953
zerobin: append '=' to forced key
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu May 31 13:45:40 2012 +0200 (2012-05-31) |
parents | 411f2350a05b |
children | 4cba4433d0b7 |
line source
1 # SliTaz package receipt.
3 PACKAGE="swat"
4 VERSION="3.5.8"
5 CATEGORY="development"
6 SHORT_DESC="Samba Web Administration Tool."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 WEB_SITE="http://samba.org/"
9 DEPENDS="samba"
10 WANTED="samba"
12 # Rules to gen a SliTaz package suitable for Tazpkg.
13 genpkg_rules()
14 {
15 mkdir -p $fs/usr/share/samba $fs/usr/share/applications
16 cp -a $_pkg/usr/share/samba/swat $fs/usr/share/samba
17 }
19 post_install()
20 {
21 if [ -f $1/etc/lighttpd/lighttpd.conf ]; then
22 if ! grep -q /usr/share/samba/swat/ $1/etc/lighttpd/lighttpd.conf; then
23 sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/swat/" => "/usr/share/samba/swat/",|g' -i $1/etc/lighttpd/lighttpd.conf
24 if [ -z "$1" ]; then
25 # Start Web server.
26 /etc/init.d/lighttpd stop
27 /etc/init.d/lighttpd start
28 fi
29 fi
30 fi
31 }