# HG changeset patch # User Pascal Bellard # Date 1234738020 0 # Node ID f353d1f31c59c3a244158536f10dd5500ee6bfc8 # Parent 762c9ee1c9f909436f8201e7df57f83ddba685df Add squirrelmail-autorespond diff -r 762c9ee1c9f9 -r f353d1f31c59 squirrelmail-autorespond/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/squirrelmail-autorespond/receipt Sun Feb 15 22:47:00 2009 +0000 @@ -0,0 +1,34 @@ +# SliTaz package receipt. + +PACKAGE="squirrelmail-autorespond" +VERSION="0.5.1-1.4" +CATEGORY="network" +SHORT_DESC="Vacation and forwarding plugin for Web mail." +MAINTAINER="pascal.bellard@slitaz.org" +SOURCE="autorespond" +TARBALL="$SOURCE-$VERSION.tar.gz" +WEB_SITE="http://www.squirrelmail.org/" +DEPENDS="squirrelmail vacation" +WGET_URL="${WEB_SITE}plugins/$TARBALL" +CONFIG_FILES="/etc/squirrelmail/config-$SOURCE.php" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail + cp -a $SOURCE $fs/usr/share/squirrelmail/plugins + mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php \ + $fs/etc/squirrelmail/config-$SOURCE.php + ln -s /etc/squirrelmail/config-$SOURCE.php \ + $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php +} + +post_install() +{ + echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php +} + +post_remove() +{ + sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php +}