wok-current annotate squirrelmail-quota/receipt @ rev 4194
netatalk*: fix FSH
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Sep 23 16:37:17 2009 +0200 (2009-09-23) |
parents | cb2efee225ba |
children | f81e47267992 |
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@2260 | 13 CONFIG_FILES="/etc/squirrelmail/config-$SOURCE.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@2260 | 21 $fs/etc/squirrelmail/config-$SOURCE.php |
pascal@1227 | 22 sed -i "s/settings\['quota_type'\] = 0/settings['quota_type'] = 1/" \ |
pascal@2260 | 23 $fs/etc/squirrelmail/config-$SOURCE.php |
pascal@2260 | 24 ln -s /etc/squirrelmail/config-$SOURCE.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 } |
pascal@2245 | 32 |
pascal@2260 | 33 pre_remove() |
pascal@2245 | 34 { |
pascal@2245 | 35 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php |
pascal@2245 | 36 } |