wok-current annotate squirrelmail-msg_flags/receipt @ rev 22693
Up libcurl (7.68.0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jan 20 17:42:00 2020 +0100 (2020-01-20) |
parents | 9e01bc6321ea |
children | 46dcc80bef41 |
rev | line source |
---|---|
pascal@2255 | 1 # SliTaz package receipt. |
pascal@2255 | 2 |
pascal@2255 | 3 PACKAGE="squirrelmail-msg_flags" |
Hans-G?nter@21965 | 4 VERSION="1.4.20-1.4.3" |
pascal@2255 | 5 CATEGORY="network" |
Hans-G?nter@21965 | 6 SHORT_DESC="Few icons and flags for squirrelmail." |
pascal@2255 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15200 | 8 LICENSE="GPL2" |
Hans-G?nter@21965 | 9 WEB_SITE="http://www.squirrelmail.org/" |
Hans-G?nter@21965 | 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 |
pascal@2255 | 15 DEPENDS="squirrelmail" |
pascal@2255 | 16 |
Hans-G?nter@21965 | 17 HOST_ARCH="any" |
Hans-G?nter@21965 | 18 |
pascal@9036 | 19 # Rules to configure and make the package. |
pascal@9036 | 20 compile_rules() |
pascal@9036 | 21 { |
pascal@9037 | 22 mkdir -p $DESTDIR |
pascal@9036 | 23 cp -a $src $DESTDIR/$SOURCE |
pascal@9036 | 24 } |
pascal@9036 | 25 |
pascal@2255 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2255 | 27 genpkg_rules() |
pascal@2255 | 28 { |
pascal@2255 | 29 mkdir -p $fs/usr/share/squirrelmail/plugins |
pascal@15200 | 30 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins |
pascal@2255 | 31 } |
pascal@2255 | 32 |
pascal@2255 | 33 post_install() |
pascal@2255 | 34 { |
pascal@18730 | 35 ( cd "$1/usr/share/squirrelmail/plugins/$SOURCE" |
pascal@18730 | 36 patch -p0 < patches/$SOURCE-squirrelmail-$(. "$1/$INSTALLED/squirrelmail/receipt"; echo $VERSION).diff ) |
pascal@18730 | 37 echo "$PACKAGE" >> "$1/$INSTALLED/squirrelmail/modifiers" |
pascal@18730 | 38 echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php" |
pascal@2255 | 39 } |
pascal@2255 | 40 |
pascal@2260 | 41 pre_remove() |
pascal@2255 | 42 { |
pascal@2255 | 43 ( cd /usr/share/squirrelmail/plugins/$SOURCE |
pascal@2255 | 44 patch -R -p0 < patches/$SOURCE-squirrelmail-$(. $INSTALLED/squirrelmail/receipt; echo $VERSION).diff ) |
pascal@2260 | 45 sed -i "/^$PACKAGE\$/d" $INSTALLED/squirrelmail/modifiers |
pascal@2255 | 46 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php |
pascal@2255 | 47 } |