wok-next view squirrelmail-msg_flags/receipt @ rev 21592
updated dkms (2.1.1.2 -> 2.8.2)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jun 24 07:35:54 2020 +0100 (2020-06-24) |
parents | c4e53a39395a |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="squirrelmail-msg_flags"
4 VERSION="1.4.15a-1.4.3"
5 CATEGORY="network"
6 SHORT_DESC="Few icons and flags for Web mail"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.squirrelmail.org/"
11 SOURCE="msg_flags"
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 }
26 post_install() {
27 ( cd "$1/usr/share/squirrelmail/plugins/$SOURCE"
28 patch -p0 < patches/$SOURCE-squirrelmail-$(. "$1/$INSTALLED/squirrelmail/receipt"; echo $VERSION).diff )
29 echo "$PACKAGE" >> "$1/$INSTALLED/squirrelmail/modifiers"
30 echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
31 }
33 pre_remove() {
34 ( cd /usr/share/squirrelmail/plugins/$SOURCE
35 patch -R -p0 < patches/$SOURCE-squirrelmail-$(. $INSTALLED/squirrelmail/receipt; echo $VERSION).diff )
36 sed -i "/^$PACKAGE\$/d" $INSTALLED/squirrelmail/modifiers
37 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
38 }