wok-current diff squirrelmail-quota/receipt @ rev 4483
Up: task (1.8.3)
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Sun Nov 15 21:09:37 2009 +0000 (2009-11-15) |
parents | cb2efee225ba |
children | f81e47267992 |
line diff
1.1 --- a/squirrelmail-quota/receipt Sun Feb 15 20:40:24 2009 +0000 1.2 +++ b/squirrelmail-quota/receipt Sun Nov 15 21:09:37 2009 +0000 1.3 @@ -10,7 +10,7 @@ 1.4 WEB_SITE="http://www.squirrelmail.org/" 1.5 DEPENDS="squirrelmail squirrelmail-compatibility-plugin" 1.6 WGET_URL="${WEB_SITE}plugins/$TARBALL" 1.7 -CONFIG_FILES="/etc/squirrelmail/config-quota.php" 1.8 +CONFIG_FILES="/etc/squirrelmail/config-$SOURCE.php" 1.9 1.10 # Rules to gen a SliTaz package suitable for Tazpkg. 1.11 genpkg_rules() 1.12 @@ -18,10 +18,10 @@ 1.13 mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail 1.14 cp -a $SOURCE $fs/usr/share/squirrelmail/plugins 1.15 mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.sample.php \ 1.16 - $fs/etc/squirrelmail/config-quota.php 1.17 + $fs/etc/squirrelmail/config-$SOURCE.php 1.18 sed -i "s/settings\['quota_type'\] = 0/settings['quota_type'] = 1/" \ 1.19 - $fs/etc/squirrelmail/config-quota.php 1.20 - ln -s /etc/squirrelmail/config-quota.php \ 1.21 + $fs/etc/squirrelmail/config-$SOURCE.php 1.22 + ln -s /etc/squirrelmail/config-$SOURCE.php \ 1.23 $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php 1.24 } 1.25 1.26 @@ -30,7 +30,7 @@ 1.27 echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php 1.28 } 1.29 1.30 -post_remove() 1.31 +pre_remove() 1.32 { 1.33 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php 1.34 }