wok-current annotate squirrelmail-quota/receipt @ rev 1354

iUp: vim to 7.2.
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Sat Sep 06 15:08:50 2008 +0200 (2008-09-06)
parents
children bd6010223726
rev   line source
pascal@1227 1 # SliTaz package receipt.
pascal@1227 2
pascal@1227 3 PACKAGE="squirrelmail-quota"
pascal@1227 4 VERSION="2.2-1.4.0"
pascal@1227 5 CATEGORY="network"
pascal@1227 6 SHORT_DESC="Quota plugin for Web mail."
pascal@1227 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@1227 8 SOURCE="check_quota"
pascal@1227 9 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@1227 10 WEB_SITE="http://www.squirrelmail.org/"
pascal@1227 11 DEPENDS="squirrelmail squirrelmail-compatibility-plugin"
pascal@1227 12 WGET_URL="${WEB_SITE}plugins/$TARBALL"
pascal@1227 13 CONFIG_FILES="/etc/squirrelmail/config-quota.php"
pascal@1227 14
pascal@1227 15 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1227 16 genpkg_rules()
pascal@1227 17 {
pascal@1227 18 mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail
pascal@1227 19 cp -a $SOURCE $fs/usr/share/squirrelmail/plugins
pascal@1227 20 mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.sample.php \
pascal@1227 21 $fs/etc/squirrelmail/config-quota.php
pascal@1227 22 sed -i "s/settings\['quota_type'\] = 0/settings['quota_type'] = 1/" \
pascal@1227 23 $fs/etc/squirrelmail/config-quota.php
pascal@1227 24 ln -s /etc/squirrelmail/config-quota.php \
pascal@1227 25 $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php
pascal@1227 26 }
pascal@1227 27
pascal@1227 28 post_install()
pascal@1227 29 {
pascal@1227 30 ( cd $1/ ; cpio -o -H newc | gzip -9 ) > \
pascal@1227 31 $1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT
pascal@1227 32 etc/squirrelmail/config-quota.php
pascal@1227 33 EOT
pascal@1227 34 echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
pascal@1227 35 }
pascal@1227 36
pascal@1227 37 repack_cleanup()
pascal@1227 38 {
pascal@1227 39 zcat $INSTALLED/$PACKAGE/volatile.cpio.gz | ( cd $1 ; cpio -id )
pascal@1227 40 }