# HG changeset patch # User Pascal Bellard # Date 1234738374 0 # Node ID 832fbd50a37d51c114a9db09e98f7953bdb0e0be # Parent faf3fcbe782b698c5bef4cc00ebda3ea3c79fafc Add squirrelmail-notes diff -r faf3fcbe782b -r 832fbd50a37d squirrelmail-notes/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/squirrelmail-notes/receipt Sun Feb 15 22:52:54 2009 +0000 @@ -0,0 +1,34 @@ +# SliTaz package receipt. + +PACKAGE="squirrelmail-notes" +VERSION="1.2-1.4.0" +CATEGORY="network" +SHORT_DESC="Notes creation plugin for Web mail." +MAINTAINER="pascal.bellard@slitaz.org" +SOURCE="notes" +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.php.sample \ + $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 +}