wok-current annotate squirrelmail-quota/receipt @ rev 2058
Up lua (5.1.4), thanks mimas
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jan 21 10:34:09 2009 +0000 (2009-01-21) |
parents | 133b21aade72 |
children | cb2efee225ba |
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 echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php |
pascal@1227 | 31 } |