wok-6.x view squirrelmail-calendard-sql-backend/receipt @ rev 20334

Do not use efi shell (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jun 02 16:13:06 2018 +0200 (2018-06-02)
parents d51b2411e55e
children 46dcc80bef41
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 # Rules to configure and make the package.
20 compile_rules()
21 {
22 mkdir -p $DESTDIR
23 cp -a $src $DESTDIR/$SOURCE
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail
30 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
31 mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php.sample \
32 $fs/etc/squirrelmail/config-$SOURCE.php
33 ln -s /etc/squirrelmail/config-$SOURCE.php \
34 $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php
35 }
37 post_install()
38 {
39 echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
40 }
42 pre_remove()
43 {
44 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
45 }