wok view squirrelmail-html/receipt @ rev 25672

Up minidlna (1.3.3), phpmyadmin (5.2.1), pidgin (2.14.13), redis (7.2.4), rsync (3.2.7), rust (1.76.0), screen (4.9.1), squashfs (4.6.1), squid (6.7), stunnel (5.72), tcpdump (4.99.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 26 14:07:44 2024 +0000 (10 months ago)
parents 46dcc80bef41
children
line source
1 # SliTaz package receipt.
3 PACKAGE="squirrelmail-html"
4 VERSION="3.8"
5 CATEGORY="network"
6 SHORT_DESC="HTML viewer plugin for squirrelmail."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.squirrelmail.org/"
11 SOURCE="view_as_html"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="${WEB_SITE}plugins/$TARBALL"
15 DEPENDS="squirrelmail"
17 HOST_ARCH="any"
19 current_version()
20 {
21 wget -O - "$WEB_SITE/plugin_view.php?id=55" 2>/dev/null | \
22 sed "/tarball/!d;s|.*$SOURCE.||;s|.tar.*||;q"
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 mkdir -p $DESTDIR
29 cp -a $src $DESTDIR/$SOURCE
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/share/squirrelmail/plugins
36 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
37 chown -R 80 $fs/usr/share/squirrelmail
38 }
40 post_install()
41 {
42 echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
43 }
45 pre_remove()
46 {
47 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
48 }