wok-6.x view squirrelmail-calendard-sql-backend/receipt @ rev 24321
updated aqualung (1.0 -> 1.1)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jan 26 10:22:26 2022 +0100 (2022-01-26) |
parents | 9e01bc6321ea |
children | cb67b4f8be05 |
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 LICENSE="GPL2"
9 SOURCE="calendar_sql_backend"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://www.squirrelmail.org/"
12 WGET_URL="${WEB_SITE}plugins/$TARBALL"
13 CONFIG_FILES="/etc/squirrelmail/config-$SOURCE.php"
14 PROVIDE="squirrelmail-calendard-backend"
15 HOST_ARCH="any"
17 DEPENDS="squirrelmail php-mysql"
19 current_version()
20 {
21 wget -O - "$WEB_SITE/plugin_view.php?id=247" 2>/dev/null | \
22 sed "/tarball/!d;s|.*$SOURCE.||;s|.tar.*||;q"
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 mkdir -p $DESTDIR
29 cp -a $src $DESTDIR/$SOURCE
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail
36 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
37 mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php.sample \
38 $fs/etc/squirrelmail/config-$SOURCE.php
39 ln -s /etc/squirrelmail/config-$SOURCE.php \
40 $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php
41 }
43 post_install()
44 {
45 echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
46 }
48 pre_remove()
49 {
50 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
51 }