wok-current view squirrelmail-calendard-sql-backend/receipt @ rev 10634

jdk6-*: fix receipt (if no files it must be a meta package)
author Christophe Lincoln <pankso@slitaz.org>
date Thu May 26 23:47:17 2011 +0200 (2011-05-26)
parents f81e47267992
children b13ed9740841
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 configure and make the package.
17 compile_rules()
18 {
19 mkdir -p $DESTDIR
20 cp -a $src $DESTDIR/$SOURCE
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail
27 cp -a $_pkg/$SOURCE $fs/usr/share/squirrelmail/plugins
28 mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php.sample \
29 $fs/etc/squirrelmail/config-$SOURCE.php
30 ln -s /etc/squirrelmail/config-$SOURCE.php \
31 $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php
32 }
34 post_install()
35 {
36 echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
37 }
39 pre_remove()
40 {
41 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
42 }