# HG changeset patch # User Pascal Bellard # Date 1234738458 0 # Node ID a26ef49252622caa448c7c503e7ffecc8fc1e3c9 # Parent 1a4ef4a759db8d5c130211a814c6745da6d3d4ad Add squirrelmail-spamassassin diff -r 1a4ef4a759db -r a26ef4925262 squirrelmail-spamassassin/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/squirrelmail-spamassassin/receipt Sun Feb 15 22:54:18 2009 +0000 @@ -0,0 +1,29 @@ +# SliTaz package receipt. + +PACKAGE="squirrelmail-spamassassin" +VERSION="1.0-1.2.7" +CATEGORY="network" +SHORT_DESC="Vacation and forwarding plugin for Web mail." +MAINTAINER="pascal.bellard@slitaz.org" +SOURCE="saconf" +TARBALL="$SOURCE.$VERSION.tar.gz" +WEB_SITE="http://www.squirrelmail.org/" +DEPENDS="squirrelmail" +WGET_URL="${WEB_SITE}plugins/$TARBALL" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/share/squirrelmail/plugins + cp -a $SOURCE $fs/usr/share/squirrelmail/plugins +} + +post_install() +{ + echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php +} + +post_remove() +{ + sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php +}