wok view squirrelmail-compatibility-plugin/receipt @ rev 23496

updated python-invoice2data (0.2.42 -> 0.2.93)
author Hans-G?nter Theisgen
date Mon Apr 06 07:28:30 2020 +0100 (2020-04-06)
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 }