# HG changeset patch # User Pascal Bellard # Date 1234738156 0 # Node ID 2ffff3bcda58eafe4f67f7b2a191d3db5d627710 # Parent bbffc3ca182b82c6cba88f02981c5a668ebe6c74 Add squirrelmail-calendard-sql-backend diff -r bbffc3ca182b -r 2ffff3bcda58 squirrelmail-calendard-sql-backend/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/squirrelmail-calendard-sql-backend/receipt Sun Feb 15 22:49:16 2009 +0000 @@ -0,0 +1,35 @@ +# SliTaz package receipt. + +PACKAGE="squirrelmail-calendard-sql-backend" +VERSION="1.1-2.0" +CATEGORY="network" +SHORT_DESC="SQL-based backend for calendar data for Web mail." +MAINTAINER="pascal.bellard@slitaz.org" +SOURCE="calendar_sql_backend" +TARBALL="$SOURCE-$VERSION.tar.gz" +WEB_SITE="http://www.squirrelmail.org/" +DEPENDS="squirrelmail php-mysql" +WGET_URL="${WEB_SITE}plugins/$TARBALL" +CONFIG_FILES="/etc/squirrelmail/config-$SOURCE.php" +PROVIDE="squirrelmail-calendard-backend" + +# 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 +}