wok annotate 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 |
rev | line source |
---|---|
pascal@1220 | 1 # SliTaz package receipt. |
pascal@1220 | 2 |
pascal@1220 | 3 PACKAGE="squirrelmail-compatibility-plugin" |
pascal@1220 | 4 VERSION="2.0.13-1.0" |
pascal@1220 | 5 CATEGORY="network" |
pascal@1220 | 6 SHORT_DESC="Compatibility plugin for Web mail need by many plugins." |
pascal@1220 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
pascal@1220 | 9 SOURCE="compatibility" |
pascal@1220 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@1220 | 11 WEB_SITE="http://www.squirrelmail.org/" |
pascal@15000 | 12 WGET_URL="${WEB_SITE}plugins/$TARBALL" |
pascal@15000 | 13 |
pascal@1220 | 14 DEPENDS="squirrelmail" |
pascal@1220 | 15 |
pascal@9036 | 16 # Rules to configure and make the package. |
pascal@9036 | 17 compile_rules() |
pascal@9036 | 18 { |
pascal@9037 | 19 mkdir -p $DESTDIR |
pascal@9036 | 20 cp -a $src $DESTDIR/$SOURCE |
pascal@9036 | 21 } |
pascal@9036 | 22 |
pascal@1220 | 23 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1220 | 24 genpkg_rules() |
pascal@1220 | 25 { |
pascal@1220 | 26 mkdir -p $fs/usr/share/squirrelmail/plugins |
pascal@15000 | 27 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins |
pascal@1220 | 28 } |
pascal@13526 | 29 |
pascal@13526 | 30 post_install() |
pascal@13526 | 31 { |
pascal@13526 | 32 local file |
pascal@13526 | 33 local line |
pascal@13526 | 34 file=$1/usr/share/squirrelmail/functions/strings.php |
pascal@13526 | 35 line="include_once(SM_PATH . 'plugins/compatibility/functions.php');" |
pascal@13526 | 36 grep -qs "$line" $file || sed -i "s|.*global.php.*|&\n$line|" $file |
pascal@13526 | 37 } |