wok-next view swat/receipt @ rev 19842
Fix gtk+3; up libgudev, libxkbcommon.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Aug 18 03:02:41 2017 +0300 (2017-08-18) |
parents | 2b9f96603415 |
children |
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 }