wok annotate squirrelmail-compatibility-plugin/receipt @ rev 19683

Add: mate (a package to install all MATE desktop at once)
author Christophe Lincoln <pankso@slitaz.org>
date Sun Feb 12 00:43:16 2017 +0100 (2017-02-12)
parents d51b2411e55e
children 3628cd5813d0
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@16264 13 HOST_ARCH="any"
pascal@15000 14
pascal@1220 15 DEPENDS="squirrelmail"
pascal@1220 16
pascal@9036 17 # Rules to configure and make the package.
pascal@9036 18 compile_rules()
pascal@9036 19 {
pascal@9037 20 mkdir -p $DESTDIR
pascal@9036 21 cp -a $src $DESTDIR/$SOURCE
pascal@9036 22 }
pascal@9036 23
pascal@1220 24 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1220 25 genpkg_rules()
pascal@1220 26 {
pascal@1220 27 mkdir -p $fs/usr/share/squirrelmail/plugins
pascal@15000 28 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
pascal@1220 29 }
pascal@13526 30
pascal@13526 31 post_install()
pascal@13526 32 {
pascal@13526 33 local file
pascal@13526 34 local line
pascal@18730 35 file="$1/usr/share/squirrelmail/functions/strings.php"
pascal@13526 36 line="include_once(SM_PATH . 'plugins/compatibility/functions.php');"
pascal@18730 37 grep -qs "$line" "$file" || sed -i "s|.*global.php.*|&\n$line|" "$file"
pascal@13526 38 }