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

Up slitaz-boot-scripts(417), tazpkg(875)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Nov 28 13:50:44 2015 +0200 (2015-11-28)
parents 380ffe05937a
children 9e01bc6321ea
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 }