wok annotate squirrelmail-sizes/receipt @ rev 9036

iron-linux, squirrelmail plugins: fix genpkg_rules
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Mar 04 00:08:04 2011 +0100 (2011-03-04)
parents ff4c00ab546f
children 91a615759636
rev   line source
pascal@1226 1 # SliTaz package receipt.
pascal@1226 2
pascal@1226 3 PACKAGE="squirrelmail-sizes"
pascal@1226 4 VERSION="1.5-1.4.0"
pascal@1226 5 CATEGORY="network"
pascal@1226 6 SHORT_DESC="Folder sizes plugin for Web mail."
pascal@1226 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@1226 8 SOURCE="folder_sizes"
pascal@1226 9 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@1226 10 WEB_SITE="http://www.squirrelmail.org/"
pascal@1226 11 DEPENDS="squirrelmail"
pascal@1226 12 WGET_URL="${WEB_SITE}plugins/$TARBALL"
pascal@1226 13
pascal@9036 14 # Rules to configure and make the package.
pascal@9036 15 compile_rules()
pascal@9036 16 {
pascal@9036 17 cp -a $src $DESTDIR/$SOURCE
pascal@9036 18 }
pascal@9036 19
pascal@1226 20 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1226 21 genpkg_rules()
pascal@1226 22 {
pascal@1226 23 mkdir -p $fs/usr/share/squirrelmail/plugins
pascal@9036 24 cp -a $_pkg/$SOURCE $fs/usr/share/squirrelmail/plugins
pascal@1226 25 }
pascal@1226 26
pascal@1226 27 post_install()
pascal@1226 28 {
pascal@1226 29 echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
pascal@1226 30 }
pascal@2245 31
pascal@2260 32 pre_remove()
pascal@2245 33 {
pascal@2245 34 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
pascal@2245 35 }