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

attr: /lib moved to /usr/lib
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 15 15:16:45 2015 +0100 (2015-02-15)
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 }