wok-next view squirrelmail-vkeyboard/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-vkeyboard"
4 VERSION="0.9.1"
5 CATEGORY="network"
6 SHORT_DESC="Virtual keyboard plugin for Web mail"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 SOURCE="vkeyboard"
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"
15 DEPENDS="squirrelmail"
17 compile_rules() {
18 mkdir -p $install
19 cp -a $src $install/$SOURCE
20 }
22 genpkg_rules() {
23 mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail
24 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
25 mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php.sample \
26 $fs/etc/squirrelmail/config-$SOURCE.php
27 ln -s /etc/squirrelmail/config-$SOURCE.php \
28 $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php
29 }
31 post_install() {
32 echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
33 }
35 pre_remove() {
36 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
37 }