wok-current annotate squirrelmail-notes/receipt @ rev 3855

Add djmount, faad2, libmms (Thanks Kacper)
author Paul Issott <paul@slitaz.org>
date Fri Aug 07 19:25:26 2009 +0000 (2009-08-07)
parents 832fbd50a37d
children f81e47267992
rev   line source
pascal@2256 1 # SliTaz package receipt.
pascal@2256 2
pascal@2256 3 PACKAGE="squirrelmail-notes"
pascal@2256 4 VERSION="1.2-1.4.0"
pascal@2256 5 CATEGORY="network"
pascal@2256 6 SHORT_DESC="Notes creation plugin for Web mail."
pascal@2256 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@2256 8 SOURCE="notes"
pascal@2256 9 TARBALL="$SOURCE.$VERSION.tar.gz"
pascal@2256 10 WEB_SITE="http://www.squirrelmail.org/"
pascal@2256 11 DEPENDS="squirrelmail"
pascal@2256 12 WGET_URL="${WEB_SITE}plugins/$TARBALL"
pascal@2256 13 CONFIG_FILES="/etc/squirrelmail/config-$SOURCE.php"
pascal@2256 14
pascal@2256 15 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@2256 16 genpkg_rules()
pascal@2256 17 {
pascal@2256 18 mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail
pascal@2256 19 cp -a $SOURCE $fs/usr/share/squirrelmail/plugins
pascal@2256 20 mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php.sample \
pascal@2256 21 $fs/etc/squirrelmail/config-$SOURCE.php
pascal@2256 22 ln -s /etc/squirrelmail/config-$SOURCE.php \
pascal@2256 23 $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php
pascal@2256 24 }
pascal@2256 25
pascal@2256 26 post_install()
pascal@2256 27 {
pascal@2256 28 echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
pascal@2256 29 }
pascal@2256 30
pascal@2260 31 pre_remove()
pascal@2256 32 {
pascal@2256 33 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
pascal@2256 34 }