# HG changeset patch # User Pascal Bellard # Date 1234738114 0 # Node ID bbffc3ca182b82c6cba88f02981c5a668ebe6c74 # Parent 427c4c30e1c440cdab393274d1f60d73989ce9ed Add squirrelmail-calendard-file-backend diff -r 427c4c30e1c4 -r bbffc3ca182b squirrelmail-calendard-file-backend/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/squirrelmail-calendard-file-backend/receipt Sun Feb 15 22:48:34 2009 +0000 @@ -0,0 +1,30 @@ +# SliTaz package receipt. + +PACKAGE="squirrelmail-calendard-file-backend" +VERSION="1.0-2.0" +CATEGORY="network" +SHORT_DESC="File-based backend for calendar data for Web mail." +MAINTAINER="pascal.bellard@slitaz.org" +SOURCE="calendar_file_backend" +TARBALL="$SOURCE-$VERSION.tar.gz" +WEB_SITE="http://www.squirrelmail.org/" +DEPENDS="squirrelmail" +WGET_URL="${WEB_SITE}plugins/$TARBALL" +PROVIDE="squirrelmail-calendard-backend" + +# 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 +}