wok view squirrelmail-msg_flags/receipt @ rev 25337
suricata: set variable LIBS
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jul 23 20:18:41 2022 +0100 (2022-07-23) |
parents | 46dcc80bef41 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="squirrelmail-msg_flags"
4 VERSION="1.4.20-1.4.3"
5 CATEGORY="network"
6 SHORT_DESC="Few icons and flags for squirrelmail."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.squirrelmail.org/"
11 SOURCE="msg_flags"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="${WEB_SITE}plugins/$TARBALL"
15 DEPENDS="squirrelmail"
17 HOST_ARCH="any"
19 current_version()
20 {
21 wget -O - "$WEB_SITE/plugin_view.php?id=91" 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
36 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
37 }
39 post_install()
40 {
41 ( cd "$1/usr/share/squirrelmail/plugins/$SOURCE"
42 patch -p0 < patches/$SOURCE-squirrelmail-$(. "$1/$INSTALLED/squirrelmail/receipt"; echo $VERSION).diff )
43 echo "$PACKAGE" >> "$1/$INSTALLED/squirrelmail/modifiers"
44 echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
45 }
47 pre_remove()
48 {
49 ( cd /usr/share/squirrelmail/plugins/$SOURCE
50 patch -R -p0 < patches/$SOURCE-squirrelmail-$(. $INSTALLED/squirrelmail/receipt; echo $VERSION).diff )
51 sed -i "/^$PACKAGE\$/d" $INSTALLED/squirrelmail/modifiers
52 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
53 }