wok view squirrelmail-msg_flags/receipt @ rev 21232

updated libhtp and libhtp-dev (0.2.6 -> 0.5.30)
author Hans-G?nter Theisgen
date Thu Apr 11 13:28:24 2019 +0100 (2019-04-11)
parents d51b2411e55e
children 765360b9ea4b
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 SOURCE="msg_flags"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://www.squirrelmail.org/"
12 WGET_URL="${WEB_SITE}plugins/$TARBALL"
13 HOST_ARCH="any"
15 DEPENDS="squirrelmail"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 mkdir -p $DESTDIR
21 cp -a $src $DESTDIR/$SOURCE
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr/share/squirrelmail/plugins
28 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
29 }
31 post_install()
32 {
33 ( cd "$1/usr/share/squirrelmail/plugins/$SOURCE"
34 patch -p0 < patches/$SOURCE-squirrelmail-$(. "$1/$INSTALLED/squirrelmail/receipt"; echo $VERSION).diff )
35 echo "$PACKAGE" >> "$1/$INSTALLED/squirrelmail/modifiers"
36 echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
37 }
39 pre_remove()
40 {
41 ( cd /usr/share/squirrelmail/plugins/$SOURCE
42 patch -R -p0 < patches/$SOURCE-squirrelmail-$(. $INSTALLED/squirrelmail/receipt; echo $VERSION).diff )
43 sed -i "/^$PACKAGE\$/d" $INSTALLED/squirrelmail/modifiers
44 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
45 }