wok-current view swat/receipt @ rev 16211
Up mesa-wayland-dev (9.1.3)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Mar 31 11:30:38 2014 +0000 (2014-03-31) |
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 }