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

Add pidgin-otr
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Sep 16 12:39:13 2013 +0000 (2013-09-16)
parents 4941013a3cb7
children d51b2411e55e
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"
14 DEPENDS="squirrelmail"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 mkdir -p $DESTDIR
20 cp -a $src $DESTDIR/$SOURCE
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs/usr/share/squirrelmail/plugins
27 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
28 }
30 post_install()
31 {
32 local file
33 local line
34 file=$1/usr/share/squirrelmail/functions/strings.php
35 line="include_once(SM_PATH . 'plugins/compatibility/functions.php');"
36 grep -qs "$line" $file || sed -i "s|.*global.php.*|&\n$line|" $file
37 }