wok-current view squirrelmail-compatibility-plugin/receipt @ rev 19310
Up cacerts (20160512)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Jul 11 21:34:51 2016 +0300 (2016-07-11) |
parents | d51b2411e55e |
children | 3628cd5813d0 |
line source
1 # SliTaz package receipt.
3 PACKAGE="squirrelmail-compatibility-plugin"
4 VERSION="2.0.13-1.0"
5 CATEGORY="network"
6 SHORT_DESC="Compatibility plugin for Web mail need by many plugins."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 SOURCE="compatibility"
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 local file
34 local line
35 file="$1/usr/share/squirrelmail/functions/strings.php"
36 line="include_once(SM_PATH . 'plugins/compatibility/functions.php');"
37 grep -qs "$line" "$file" || sed -i "s|.*global.php.*|&\n$line|" "$file"
38 }