wok-current view squirrelmail-compatibility-plugin/receipt @ rev 22942

updated icewm again (1.3.8 -> 1.6.4)
author Hans-G?nter Theisgen
date Thu Feb 27 17:34:50 2020 +0100 (2020-02-27)
parents 9e01bc6321ea
children 46dcc80bef41
line source
1 # SliTaz package receipt.
3 PACKAGE="squirrelmail-compatibility-plugin"
4 VERSION="2.0.16-1.0"
5 CATEGORY="network"
6 SHORT_DESC="Compatibility plugin for Web mail, needed by many plugins."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.squirrelmail.org/"
11 SOURCE="compatibility"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="${WEB_SITE}plugins/$TARBALL"
15 DEPENDS="squirrelmail"
17 HOST_ARCH="any"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 mkdir -p $DESTDIR
23 cp -a $src $DESTDIR/$SOURCE
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr/share/squirrelmail/plugins
30 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
31 }
33 post_install()
34 {
35 local file
36 local line
37 file="$1/usr/share/squirrelmail/functions/strings.php"
38 line="include_once(SM_PATH . 'plugins/compatibility/functions.php');"
39 grep -qs "$line" "$file" || sed -i "s|.*global.php.*|&\n$line|" "$file"
40 }