# HG changeset patch # User Pascal Bellard # Date 1234738435 0 # Node ID 1a4ef4a759db8d5c130211a814c6745da6d3d4ad # Parent fc0f04ae67c504e96ee94a6aae38a2f451d38e47 Add squirrelmail-sieve diff -r fc0f04ae67c5 -r 1a4ef4a759db squirrelmail-sieve/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/squirrelmail-sieve/receipt Sun Feb 15 22:53:55 2009 +0000 @@ -0,0 +1,34 @@ +# SliTaz package receipt. + +PACKAGE="squirrelmail-sieve" +VERSION="1.9.7" +CATEGORY="network" +SHORT_DESC="Sieve Mail Filters plugin for Web mail." +MAINTAINER="pascal.bellard@slitaz.org" +SOURCE="avelsieve" +TARBALL="$SOURCE-$VERSION.tar.gz" +WEB_SITE="http://www.squirrelmail.org/" +DEPENDS="squirrelmail" +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/config_sample.php \ + $fs/etc/squirrelmail/config-$SOURCE.php + ln -s /etc/squirrelmail/config-$SOURCE.php \ + $fs/usr/share/squirrelmail/plugins/$SOURCE/config/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 +}