wok-6.x view squirrelmail-compatibility-plugin/receipt @ rev 14730
Up xorg-xf86-video-ati (7.1.0), xorg-xf86-video-fbdev (0.4.3), xorg-xf86-video-geode (2.11.14), xorg-xf86-video-i740 (1.3.4), xorg-xf86-video-neomagic (1.2.7), xorg-xf86-video-nv (2.1.20), xorg-xf86-video-s3 (0.6.5), xorg-xf86-video-trident (1.3.6), xorg-xf86-video-vesa (2.3.2), xorg-xf86-video-vmware (13.0.1)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jun 13 10:45:31 2013 +0200 (2013-06-13) |
parents | 91a615759636 |
children | 380ffe05937a |
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 SOURCE="compatibility"
9 TARBALL="$SOURCE-$VERSION.tar.gz"
10 WEB_SITE="http://www.squirrelmail.org/"
11 DEPENDS="squirrelmail"
12 WGET_URL="${WEB_SITE}plugins/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 mkdir -p $DESTDIR
18 cp -a $src $DESTDIR/$SOURCE
19 }
21 # Rules to gen a SliTaz package suitable for Tazpkg.
22 genpkg_rules()
23 {
24 mkdir -p $fs/usr/share/squirrelmail/plugins
25 cp -a $_pkg/$SOURCE $fs/usr/share/squirrelmail/plugins
26 }
28 post_install()
29 {
30 local file
31 local line
32 file=$1/usr/share/squirrelmail/functions/strings.php
33 line="include_once(SM_PATH . 'plugins/compatibility/functions.php');"
34 grep -qs "$line" $file || sed -i "s|.*global.php.*|&\n$line|" $file
35 }