wok-next view squirrelmail-calendard-file-backend/receipt @ rev 21722

efivar: typo in post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 01 10:31:46 2020 +0000 (2020-09-01)
parents c4e53a39395a
children
line source
1 # SliTaz package receipt.
3 PACKAGE="squirrelmail-calendard-file-backend"
4 VERSION="1.0-2.0"
5 CATEGORY="network"
6 SHORT_DESC="File-based backend for calendar data for Web mail"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.squirrelmail.org/"
11 SOURCE="calendar_file_backend"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="${WEB_SITE}plugins/$TARBALL"
15 compile_rules() {
16 mkdir -p $install
17 cp -a $src $install/$SOURCE
18 }
20 genpkg_rules() {
21 mkdir -p $fs/usr/share/squirrelmail/plugins
22 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
23 DEPENDS="squirrelmail"
24 PROVIDE="squirrelmail-calendard-backend"
25 }
27 post_install() {
28 echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
29 }
31 pre_remove() {
32 sed -i "/\$plugins.. = '$SOURCE';/d" "$1/etc/squirrelmail/config_local.php"
33 }