wok-current annotate squirrelmail-html/receipt @ rev 25047
Up gsoap (2.8.122)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jun 04 12:13:41 2022 +0000 (2022-06-04) |
parents | 46dcc80bef41 |
children |
rev | line source |
---|---|
pascal@1225 | 1 # SliTaz package receipt. |
pascal@1225 | 2 |
pascal@1225 | 3 PACKAGE="squirrelmail-html" |
Hans-G?nter@21964 | 4 VERSION="3.8" |
pascal@1225 | 5 CATEGORY="network" |
Hans-G?nter@21964 | 6 SHORT_DESC="HTML viewer plugin for squirrelmail." |
pascal@1225 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15200 | 8 LICENSE="GPL2" |
pascal@24746 | 9 WEB_SITE="https://www.squirrelmail.org/" |
Hans-G?nter@21964 | 10 |
pascal@1225 | 11 SOURCE="view_as_html" |
pascal@1225 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@15200 | 13 WGET_URL="${WEB_SITE}plugins/$TARBALL" |
pascal@15200 | 14 |
pascal@1225 | 15 DEPENDS="squirrelmail" |
pascal@1225 | 16 |
Hans-G?nter@21964 | 17 HOST_ARCH="any" |
Hans-G?nter@21964 | 18 |
pascal@24094 | 19 current_version() |
pascal@24094 | 20 { |
pascal@24094 | 21 wget -O - "$WEB_SITE/plugin_view.php?id=55" 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@1225 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1225 | 33 genpkg_rules() |
pascal@1225 | 34 { |
pascal@1225 | 35 mkdir -p $fs/usr/share/squirrelmail/plugins |
pascal@15200 | 36 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins |
pascal@3259 | 37 chown -R 80 $fs/usr/share/squirrelmail |
pascal@1225 | 38 } |
pascal@1225 | 39 |
pascal@1225 | 40 post_install() |
pascal@1225 | 41 { |
pascal@18730 | 42 echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php" |
pascal@1225 | 43 } |
pascal@2245 | 44 |
pascal@2260 | 45 pre_remove() |
pascal@2245 | 46 { |
pascal@2245 | 47 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php |
pascal@2245 | 48 } |