wok-stable annotate squirrelmail-compatibility-plugin/receipt @ rev 12465

Up e2fsprogs (1.44.2)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 04 18:42:23 2019 +0100 (2019-03-04)
parents 91a615759636
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"
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@12344 27
pascal@12344 28 post_install()
pascal@12344 29 {
pascal@12344 30 local file
pascal@12344 31 local line
pascal@12344 32 file=$1/usr/share/squirrelmail/functions/strings.php
pascal@12344 33 line="include_once(SM_PATH . 'plugins/compatibility/functions.php');"
pascal@12344 34 grep -qs "$line" $file || sed -i "s|.*global.php.*|&\n$line|" $file
pascal@12344 35 }