# SliTaz package receipt. PACKAGE="squirrelmail-shared_calendars" VERSION="2.0.1-1.4.0" CATEGORY="network" SHORT_DESC="Fully iCal-compliant calendaring functionality for Web mail." MAINTAINER="pascal.bellard@slitaz.org" SOURCE="shared_calendars" TARBALL="$SOURCE-$VERSION.tar.gz" WEB_SITE="http://www.squirrelmail.org/" DEPENDS="squirrelmail squirrelmail-compatibility-plugin squirrelmail-calendard-backend" WGET_URL="${WEB_SITE}plugins/$TARBALL" CONFIG_FILES="/etc/squirrelmail/config-$SOURCE.php" # Rules to configure and make the package. compile_rules() { mkdir -p $DESTDIR cp -a $src $DESTDIR/calendar } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail cp -a $_pkg/calendar $fs/usr/share/squirrelmail/plugins mv $fs/usr/share/squirrelmail/plugins/calendar/data/config.php.sample \ $fs/etc/squirrelmail/config-$SOURCE.php ln -s /etc/squirrelmail/config-$SOURCE.php \ $fs/usr/share/squirrelmail/plugins/calendar/data/config.php } post_install() { echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php } pre_remove() { sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php }