wok diff swat/receipt @ rev 1479

madwifi: typo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 04 14:46:49 2008 +0000 (2008-10-04)
parents
children b51677fcfa18
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/swat/receipt	Sat Oct 04 14:46:49 2008 +0000
     1.3 @@ -0,0 +1,32 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="swat"
     1.7 +VERSION="3.2.1"
     1.8 +CATEGORY="development"
     1.9 +SHORT_DESC="Samba Web Administration Tool."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +WEB_SITE="http://samba.org/"
    1.12 +DEPENDS="samba"
    1.13 +WANTED="samba"
    1.14 +
    1.15 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.16 +genpkg_rules()
    1.17 +{
    1.18 +	mkdir -p $fs/usr/share/samba
    1.19 +	cp -a $_pkg/usr/share/samba/swat $fs/usr/share/samba
    1.20 +	cp stuff/swat.desktop $fs/usr/share/applications
    1.21 +}
    1.22 +
    1.23 +post_install()
    1.24 +{
    1.25 +	if [ -f $1/etc/lighttpd/lighttpd.conf ]; then
    1.26 +		if ! grep -q /usr/share/samba/swat/ $1/etc/lighttpd/lighttpd.conf; then
    1.27 +	    		sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/swat/" => "/usr/share/samba/swat/",|g' -i $1/etc/lighttpd/lighttpd.conf
    1.28 +			if [ -z "$1" ]; then
    1.29 +				# Start Web server.
    1.30 +				/etc/init.d/lighttpd stop
    1.31 +				/etc/init.d/lighttpd start
    1.32 +			fi
    1.33 +		fi
    1.34 +	fi
    1.35 +}