wok-next annotate squirrelmail-msg_flags/receipt @ rev 21161

diffutils splitted again
author Hans-G?nter Theisgen
date Wed Feb 20 09:13:09 2019 +0100 (2019-02-20)
parents c4e53a39395a
children
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"
al@21020 6 SHORT_DESC="Few icons and flags for Web mail"
pascal@2255 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15200 8 LICENSE="GPL2"
al@21020 9 WEB_SITE="http://www.squirrelmail.org/"
al@21020 10
pascal@2255 11 SOURCE="msg_flags"
pascal@2255 12 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@15200 13 WGET_URL="${WEB_SITE}plugins/$TARBALL"
pascal@15200 14
al@21020 15 compile_rules() {
al@21020 16 mkdir -p $install
al@21020 17 cp -a $src $install/$SOURCE
pascal@9036 18 }
pascal@9036 19
al@21020 20 genpkg_rules() {
pascal@2255 21 mkdir -p $fs/usr/share/squirrelmail/plugins
pascal@15200 22 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
al@21020 23 DEPENDS="squirrelmail"
pascal@2255 24 }
pascal@2255 25
al@21020 26 post_install() {
pascal@18730 27 ( cd "$1/usr/share/squirrelmail/plugins/$SOURCE"
pascal@18730 28 patch -p0 < patches/$SOURCE-squirrelmail-$(. "$1/$INSTALLED/squirrelmail/receipt"; echo $VERSION).diff )
pascal@18730 29 echo "$PACKAGE" >> "$1/$INSTALLED/squirrelmail/modifiers"
pascal@18730 30 echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
pascal@2255 31 }
pascal@2255 32
al@21020 33 pre_remove() {
pascal@2255 34 ( cd /usr/share/squirrelmail/plugins/$SOURCE
pascal@2255 35 patch -R -p0 < patches/$SOURCE-squirrelmail-$(. $INSTALLED/squirrelmail/receipt; echo $VERSION).diff )
pascal@2260 36 sed -i "/^$PACKAGE\$/d" $INSTALLED/squirrelmail/modifiers
pascal@2255 37 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
pascal@2255 38 }