wok view squirrelmail-calendard-sql-backend/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (24 months ago)
parents 46dcc80bef41
children
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="https://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 }