wok-6.x rev 2255
Add squirrelmail-msg_flags
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 15 22:52:03 2009 +0000 (2009-02-15) |
parents | d3042f76641f |
children | 832fbd50a37d |
files | squirrelmail-msg_flags/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/squirrelmail-msg_flags/receipt Sun Feb 15 22:52:03 2009 +0000 1.3 @@ -0,0 +1,35 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="squirrelmail-msg_flags" 1.7 +VERSION="1.4.15a-1.4.3" 1.8 +CATEGORY="network" 1.9 +SHORT_DESC="Few icons and flags for Web mail." 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +SOURCE="msg_flags" 1.12 +TARBALL="$SOURCE-$VERSION.tar.gz" 1.13 +WEB_SITE="http://www.squirrelmail.org/" 1.14 +DEPENDS="squirrelmail" 1.15 +WGET_URL="${WEB_SITE}plugins/$TARBALL" 1.16 + 1.17 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.18 +genpkg_rules() 1.19 +{ 1.20 + mkdir -p $fs/usr/share/squirrelmail/plugins 1.21 + cp -a $SOURCE $fs/usr/share/squirrelmail/plugins 1.22 +} 1.23 + 1.24 +post_install() 1.25 +{ 1.26 + ( cd $1/usr/share/squirrelmail/plugins/$SOURCE 1.27 + patch -p0 < patches/$SOURCE-squirrelmail-$(. $1/$INSTALLED/squirrelmail/receipt; echo $VERSION).diff ) 1.28 + echo "$PACKAGE" >> $1/$INSTALLED/squirrelmail/modifiers 1.29 + echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php 1.30 +} 1.31 + 1.32 +post_remove() 1.33 +{ 1.34 + ( cd /usr/share/squirrelmail/plugins/$SOURCE 1.35 + patch -R -p0 < patches/$SOURCE-squirrelmail-$(. $INSTALLED/squirrelmail/receipt; echo $VERSION).diff ) 1.36 + sed -i "/$PACKAGE/d" $INSTALLED/squirrelmail/modifiers 1.37 + sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php 1.38 +}