wok annotate squirrelmail-compatibility-plugin/receipt @ rev 14671
edbus: Up to 1.7.7
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Thu Jun 06 22:08:28 2013 +0200 (2013-06-06) |
parents | 91a615759636 |
children | 380ffe05937a |
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@1220 | 8 SOURCE="compatibility" |
pascal@1220 | 9 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@1220 | 10 WEB_SITE="http://www.squirrelmail.org/" |
pascal@1220 | 11 DEPENDS="squirrelmail" |
pascal@1220 | 12 WGET_URL="${WEB_SITE}plugins/$TARBALL" |
pascal@1220 | 13 |
pascal@9036 | 14 # Rules to configure and make the package. |
pascal@9036 | 15 compile_rules() |
pascal@9036 | 16 { |
pascal@9037 | 17 mkdir -p $DESTDIR |
pascal@9036 | 18 cp -a $src $DESTDIR/$SOURCE |
pascal@9036 | 19 } |
pascal@9036 | 20 |
pascal@1220 | 21 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1220 | 22 genpkg_rules() |
pascal@1220 | 23 { |
pascal@1220 | 24 mkdir -p $fs/usr/share/squirrelmail/plugins |
pascal@9036 | 25 cp -a $_pkg/$SOURCE $fs/usr/share/squirrelmail/plugins |
pascal@1220 | 26 } |
pascal@13526 | 27 |
pascal@13526 | 28 post_install() |
pascal@13526 | 29 { |
pascal@13526 | 30 local file |
pascal@13526 | 31 local line |
pascal@13526 | 32 file=$1/usr/share/squirrelmail/functions/strings.php |
pascal@13526 | 33 line="include_once(SM_PATH . 'plugins/compatibility/functions.php');" |
pascal@13526 | 34 grep -qs "$line" $file || sed -i "s|.*global.php.*|&\n$line|" $file |
pascal@13526 | 35 } |