SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "swat"

# SliTaz package receipt.

PACKAGE="swat"
VERSION="3.6.7"
CATEGORY="development"
SHORT_DESC="Samba Web Administration Tool."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL3"
WEB_SITE="http://samba.org/"
WANTED="samba"

DEPENDS="samba"

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/share/samba $fs/usr/share/applications
    cp -a $install/usr/share/samba/swat $fs/usr/share/samba
}

post_install()
{
    if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then
        if ! grep -q /usr/share/samba/swat/ "$1/etc/lighttpd/lighttpd.conf"; then
                sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/swat/" => "/usr/share/samba/swat/",|g' -i "$1/etc/lighttpd/lighttpd.conf"
            if [ -z "$1" ]; then
                # Start Web server.
                /etc/init.d/lighttpd stop
                /etc/init.d/lighttpd start
            fi
        fi
    fi
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)