# HG changeset patch # User Pascal Bellard # Date 1234737993 0 # Node ID 762c9ee1c9f909436f8201e7df57f83ddba685df # Parent 0caf13e4f1dade1468bc9c3a9231180f1acb6d3c Add squirrelmail-autocomplete diff -r 0caf13e4f1da -r 762c9ee1c9f9 squirrelmail-autocomplete/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/squirrelmail-autocomplete/receipt Sun Feb 15 22:46:33 2009 +0000 @@ -0,0 +1,30 @@ +# SliTaz package receipt. + +PACKAGE="squirrelmail-autocomplete" +VERSION="2.0-1.0.0" +CATEGORY="network" +SHORT_DESC="Complete To/Cc/Bcc fields plugin for Web mail (IE only)." +MAINTAINER="pascal.bellard@slitaz.org" +SOURCE="autocomplete" +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 + 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 +}