wok-6.x annotate squirrelmail-calendard-sql-backend/receipt @ rev 6251

nfs-utils: update depends
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Sep 13 17:15:20 2010 +0200 (2010-09-13)
parents 2ffff3bcda58
children f81e47267992
rev   line source
pascal@2251 1 # SliTaz package receipt.
pascal@2251 2
pascal@2251 3 PACKAGE="squirrelmail-calendard-sql-backend"
pascal@2251 4 VERSION="1.1-2.0"
pascal@2251 5 CATEGORY="network"
pascal@2251 6 SHORT_DESC="SQL-based backend for calendar data for Web mail."
pascal@2251 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@2251 8 SOURCE="calendar_sql_backend"
pascal@2251 9 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@2251 10 WEB_SITE="http://www.squirrelmail.org/"
pascal@2251 11 DEPENDS="squirrelmail php-mysql"
pascal@2251 12 WGET_URL="${WEB_SITE}plugins/$TARBALL"
pascal@2251 13 CONFIG_FILES="/etc/squirrelmail/config-$SOURCE.php"
pascal@2251 14 PROVIDE="squirrelmail-calendard-backend"
pascal@2251 15
pascal@2251 16 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@2251 17 genpkg_rules()
pascal@2251 18 {
pascal@2251 19 mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail
pascal@2251 20 cp -a $SOURCE $fs/usr/share/squirrelmail/plugins
pascal@2251 21 mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php.sample \
pascal@2251 22 $fs/etc/squirrelmail/config-$SOURCE.php
pascal@2251 23 ln -s /etc/squirrelmail/config-$SOURCE.php \
pascal@2251 24 $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php
pascal@2251 25 }
pascal@2251 26
pascal@2251 27 post_install()
pascal@2251 28 {
pascal@2251 29 echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
pascal@2251 30 }
pascal@2251 31
pascal@2260 32 pre_remove()
pascal@2251 33 {
pascal@2251 34 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
pascal@2251 35 }