wok annotate squirrelmail-msg_flags/receipt @ rev 24094
Add fasmg
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Aug 09 16:49:29 2021 +0000 (2021-08-09) |
parents | 765360b9ea4b |
children | cb67b4f8be05 |
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@24094 | 19 current_version() |
pascal@24094 | 20 { |
pascal@24094 | 21 wget -O - "$WEB_SITE/plugin_view.php?id=91" 2>/dev/null | \ |
pascal@24094 | 22 sed "/tarball/!d;s|.*$SOURCE.||;s|.tar.*||;q" |
pascal@24094 | 23 } |
pascal@24094 | 24 |
pascal@9036 | 25 # Rules to configure and make the package. |
pascal@9036 | 26 compile_rules() |
pascal@9036 | 27 { |
pascal@9037 | 28 mkdir -p $DESTDIR |
pascal@9036 | 29 cp -a $src $DESTDIR/$SOURCE |
pascal@9036 | 30 } |
pascal@9036 | 31 |
pascal@2255 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2255 | 33 genpkg_rules() |
pascal@2255 | 34 { |
pascal@2255 | 35 mkdir -p $fs/usr/share/squirrelmail/plugins |
pascal@15200 | 36 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins |
pascal@2255 | 37 } |
pascal@2255 | 38 |
pascal@2255 | 39 post_install() |
pascal@2255 | 40 { |
pascal@18730 | 41 ( cd "$1/usr/share/squirrelmail/plugins/$SOURCE" |
pascal@18730 | 42 patch -p0 < patches/$SOURCE-squirrelmail-$(. "$1/$INSTALLED/squirrelmail/receipt"; echo $VERSION).diff ) |
pascal@18730 | 43 echo "$PACKAGE" >> "$1/$INSTALLED/squirrelmail/modifiers" |
pascal@18730 | 44 echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php" |
pascal@2255 | 45 } |
pascal@2255 | 46 |
pascal@2260 | 47 pre_remove() |
pascal@2255 | 48 { |
pascal@2255 | 49 ( cd /usr/share/squirrelmail/plugins/$SOURCE |
pascal@2255 | 50 patch -R -p0 < patches/$SOURCE-squirrelmail-$(. $INSTALLED/squirrelmail/receipt; echo $VERSION).diff ) |
pascal@2260 | 51 sed -i "/^$PACKAGE\$/d" $INSTALLED/squirrelmail/modifiers |
pascal@2255 | 52 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php |
pascal@2255 | 53 } |