wok-stable view squirrelmail-calendard-sql-backend/receipt @ rev 5195

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