wok-6.x diff squirrelmail-quota/receipt @ rev 1478

busybox/depmod: add ignored options uqrC
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 04 14:30:26 2008 +0000 (2008-10-04)
parents
children bd6010223726
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/squirrelmail-quota/receipt	Sat Oct 04 14:30:26 2008 +0000
     1.3 @@ -0,0 +1,40 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="squirrelmail-quota"
     1.7 +VERSION="2.2-1.4.0"
     1.8 +CATEGORY="network"
     1.9 +SHORT_DESC="Quota plugin for Web mail."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +SOURCE="check_quota"
    1.12 +TARBALL="$SOURCE-$VERSION.tar.gz"
    1.13 +WEB_SITE="http://www.squirrelmail.org/"
    1.14 +DEPENDS="squirrelmail squirrelmail-compatibility-plugin"
    1.15 +WGET_URL="${WEB_SITE}plugins/$TARBALL"
    1.16 +CONFIG_FILES="/etc/squirrelmail/config-quota.php"
    1.17 +
    1.18 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.19 +genpkg_rules()
    1.20 +{
    1.21 +	mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail
    1.22 +	cp -a $SOURCE $fs/usr/share/squirrelmail/plugins
    1.23 +	mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.sample.php \
    1.24 +		$fs/etc/squirrelmail/config-quota.php
    1.25 +	sed -i "s/settings\['quota_type'\] = 0/settings['quota_type'] = 1/" \
    1.26 +		$fs/etc/squirrelmail/config-quota.php
    1.27 +	ln -s /etc/squirrelmail/config-quota.php \
    1.28 +		$fs/usr/share/squirrelmail/plugins/$SOURCE/config.php
    1.29 +}
    1.30 +
    1.31 +post_install()
    1.32 +{
    1.33 +	( cd $1/ ; cpio -o -H newc | gzip -9 ) > \
    1.34 +		$1/$INSTALLED/$PACKAGE/volatile.cpio.gz <<EOT
    1.35 +etc/squirrelmail/config-quota.php
    1.36 +EOT
    1.37 +	echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
    1.38 +}
    1.39 +
    1.40 +repack_cleanup()
    1.41 +{
    1.42 +        zcat $INSTALLED/$PACKAGE/volatile.cpio.gz | ( cd $1 ; cpio -id )
    1.43 +}