wok-next annotate squirrelmail-compatibility-plugin/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | c4e53a39395a |
children |
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" |
al@21020 | 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" |
al@21020 | 9 WEB_SITE="http://www.squirrelmail.org/" |
al@21020 | 10 |
pascal@1220 | 11 SOURCE="compatibility" |
pascal@1220 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@15000 | 13 WGET_URL="${WEB_SITE}plugins/$TARBALL" |
pascal@15000 | 14 |
al@21020 | 15 compile_rules() { |
al@21020 | 16 mkdir -p $install |
al@21020 | 17 cp -a $src $install/$SOURCE |
pascal@9036 | 18 } |
pascal@9036 | 19 |
al@21020 | 20 genpkg_rules() { |
pascal@1220 | 21 mkdir -p $fs/usr/share/squirrelmail/plugins |
pascal@15000 | 22 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins |
al@21020 | 23 DEPENDS="squirrelmail" |
pascal@1220 | 24 } |
pascal@13526 | 25 |
al@21020 | 26 post_install() { |
pascal@13526 | 27 local file |
pascal@13526 | 28 local line |
pascal@18730 | 29 file="$1/usr/share/squirrelmail/functions/strings.php" |
pascal@13526 | 30 line="include_once(SM_PATH . 'plugins/compatibility/functions.php');" |
pascal@18730 | 31 grep -qs "$line" "$file" || sed -i "s|.*global.php.*|&\n$line|" "$file" |
pascal@13526 | 32 } |