wok diff squirrelmail-multilogin/receipt @ rev 2378
Add dwm (Dynamic Window Manager for 16Kb pkg
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Mar 07 23:40:48 2009 +0100 (2009-03-07) |
parents | 0caf13e4f1da |
children | f81e47267992 |
line diff
1.1 --- a/squirrelmail-multilogin/receipt Sun Feb 15 21:25:22 2009 +0000 1.2 +++ b/squirrelmail-multilogin/receipt Sat Mar 07 23:40:48 2009 +0100 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-multilogin.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 @@ -19,25 +19,25 @@ 1.13 $fs/var/lib/squirrelmail/slitaz.org/data 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-multilogin.php 1.17 - ln -s /etc/squirrelmail/config-multilogin.php \ 1.18 + $fs/etc/squirrelmail/config-$SOURCE.php 1.19 + ln -s /etc/squirrelmail/config-$SOURCE.php \ 1.20 $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php 1.21 - ( cd $fs/etc/squirrelmail ; patch -p0 ) < stuff/config-multilogin.u 1.22 + ( cd $fs/etc/squirrelmail ; patch -p0 ) < stuff/config-$SOURCE.u 1.23 } 1.24 1.25 post_install() 1.26 { 1.27 chown www $1/var/lib/squirrelmail/slitaz.org/data 1.28 - ( cd $1/usr/share/squirrelmail/plugins/multilogin 1.29 - patch -p0 < patches/multilogin-squirrelmail-$(. $1/$INSTALLED/squirrelmail/receipt; echo $VERSION).diff ) 1.30 + ( cd $1/usr/share/squirrelmail/plugins/$SOURCE 1.31 + patch -p0 < patches/$SOURCE-squirrelmail-$(. $1/$INSTALLED/squirrelmail/receipt; echo $VERSION).diff ) 1.32 echo "$PACKAGE" >> $1/$INSTALLED/squirrelmail/modifiers 1.33 echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php 1.34 } 1.35 1.36 -post_remove() 1.37 +pre_remove() 1.38 { 1.39 - ( cd /usr/share/squirrelmail/plugins/multilogin 1.40 - patch -R -p0 < patches/multilogin-squirrelmail-$(. $INSTALLED/squirrelmail/receipt; echo $VERSION).diff ) 1.41 - sed -i "/$PACKAGE/d" $INSTALLED/squirrelmail/modifiers 1.42 + ( cd /usr/share/squirrelmail/plugins/$SOURCE 1.43 + patch -R -p0 < patches/$SOURCE-squirrelmail-$(. $INSTALLED/squirrelmail/receipt; echo $VERSION).diff ) 1.44 + sed -i "/^$PACKAGE\$/d" $INSTALLED/squirrelmail/modifiers 1.45 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php 1.46 }