wok-6.x annotate squirrelmail-legend/receipt @ rev 15949

compton: avoid source tarball collisions
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 23 12:17:31 2014 +0000 (2014-02-23)
parents 91a615759636
children d51b2411e55e
rev   line source
pascal@2254 1 # SliTaz package receipt.
pascal@2254 2
pascal@2254 3 PACKAGE="squirrelmail-legend"
pascal@2254 4 VERSION="1.2-1.2.8"
pascal@2254 5 CATEGORY="network"
pascal@2254 6 SHORT_DESC="Adds a legend below the folder list in Web mail."
pascal@2254 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15200 8 LICENSE="GPL2"
pascal@2254 9 SOURCE="legend"
pascal@2254 10 TARBALL="$SOURCE.$VERSION.tar.gz"
pascal@2254 11 WEB_SITE="http://www.squirrelmail.org/"
pascal@15200 12 WGET_URL="${WEB_SITE}plugins/$TARBALL"
pascal@15200 13
pascal@2254 14 DEPENDS="squirrelmail"
pascal@2254 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@2254 23 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@2254 24 genpkg_rules()
pascal@2254 25 {
pascal@2254 26 mkdir -p $fs/usr/share/squirrelmail/plugins
pascal@15200 27 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
pascal@2254 28 }
pascal@2254 29
pascal@2254 30 post_install()
pascal@2254 31 {
pascal@2254 32 echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
pascal@2254 33 }
pascal@2254 34
pascal@2260 35 pre_remove()
pascal@2254 36 {
pascal@2254 37 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
pascal@2254 38 }