wok-next annotate squirrelmail-msg_flags/receipt @ rev 6485
audacious-plugins: break a dependency loop
author | Antoine Bodin <gokhlayeh@mailoo.org> |
---|---|
date | Thu Sep 30 21:14:47 2010 +0200 (2010-09-30) |
parents | faf3fcbe782b |
children | f81e47267992 |
rev | line source |
---|---|
pascal@2255 | 1 # SliTaz package receipt. |
pascal@2255 | 2 |
pascal@2255 | 3 PACKAGE="squirrelmail-msg_flags" |
pascal@2255 | 4 VERSION="1.4.15a-1.4.3" |
pascal@2255 | 5 CATEGORY="network" |
pascal@2255 | 6 SHORT_DESC="Few icons and flags for Web mail." |
pascal@2255 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@2255 | 8 SOURCE="msg_flags" |
pascal@2255 | 9 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@2255 | 10 WEB_SITE="http://www.squirrelmail.org/" |
pascal@2255 | 11 DEPENDS="squirrelmail" |
pascal@2255 | 12 WGET_URL="${WEB_SITE}plugins/$TARBALL" |
pascal@2255 | 13 |
pascal@2255 | 14 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2255 | 15 genpkg_rules() |
pascal@2255 | 16 { |
pascal@2255 | 17 mkdir -p $fs/usr/share/squirrelmail/plugins |
pascal@2255 | 18 cp -a $SOURCE $fs/usr/share/squirrelmail/plugins |
pascal@2255 | 19 } |
pascal@2255 | 20 |
pascal@2255 | 21 post_install() |
pascal@2255 | 22 { |
pascal@2255 | 23 ( cd $1/usr/share/squirrelmail/plugins/$SOURCE |
pascal@2255 | 24 patch -p0 < patches/$SOURCE-squirrelmail-$(. $1/$INSTALLED/squirrelmail/receipt; echo $VERSION).diff ) |
pascal@2255 | 25 echo "$PACKAGE" >> $1/$INSTALLED/squirrelmail/modifiers |
pascal@2255 | 26 echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php |
pascal@2255 | 27 } |
pascal@2255 | 28 |
pascal@2260 | 29 pre_remove() |
pascal@2255 | 30 { |
pascal@2255 | 31 ( cd /usr/share/squirrelmail/plugins/$SOURCE |
pascal@2255 | 32 patch -R -p0 < patches/$SOURCE-squirrelmail-$(. $INSTALLED/squirrelmail/receipt; echo $VERSION).diff ) |
pascal@2260 | 33 sed -i "/^$PACKAGE\$/d" $INSTALLED/squirrelmail/modifiers |
pascal@2255 | 34 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php |
pascal@2255 | 35 } |