wok annotate swat/receipt @ rev 14269
ADD: cantarell-fonts, gtk2-engine-murrine (former murrine), libunique-gtk3; TINY EDITS: gobject-introspection, gtk3-engine-solidity, gtk3-engine-unico*, libnotify-gtk3, libxklavier, lxpanel; UP: lightdm* 1.5.3, midori 0.4.9
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Apr 04 15:39:28 2013 +0000 (2013-04-04) |
parents | 88cfcda0c8aa |
children | 2b9f96603415 |
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@1250 | 8 WEB_SITE="http://samba.org/" |
pascal@1250 | 9 DEPENDS="samba" |
pascal@1250 | 10 WANTED="samba" |
pascal@1250 | 11 |
pascal@1250 | 12 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1250 | 13 genpkg_rules() |
pascal@1250 | 14 { |
pascal@11544 | 15 mkdir -p $fs/usr/share/samba $fs/usr/share/applications |
slaxemulator@13268 | 16 cp -a $install/usr/share/samba/swat $fs/usr/share/samba |
pascal@1250 | 17 } |
pascal@1250 | 18 |
pascal@1250 | 19 post_install() |
pascal@1250 | 20 { |
pascal@1250 | 21 if [ -f $1/etc/lighttpd/lighttpd.conf ]; then |
pascal@1250 | 22 if ! grep -q /usr/share/samba/swat/ $1/etc/lighttpd/lighttpd.conf; then |
pascal@1250 | 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 |
pascal@1250 | 24 if [ -z "$1" ]; then |
pascal@1250 | 25 # Start Web server. |
pascal@1250 | 26 /etc/init.d/lighttpd stop |
pascal@1250 | 27 /etc/init.d/lighttpd start |
pascal@1250 | 28 fi |
pascal@1250 | 29 fi |
pascal@1250 | 30 fi |
pascal@1250 | 31 } |