wok-current view squirrelmail-html/receipt @ rev 19505
Rollback liboping (1.8.0)
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Sat Nov 19 09:14:20 2016 +0000 (2016-11-19) |
parents | d51b2411e55e |
children | 145555e18037 |
line source
1 # SliTaz package receipt.
3 PACKAGE="squirrelmail-html"
4 VERSION="3.7a-1.4.x"
5 CATEGORY="network"
6 SHORT_DESC="HTML viewer plugin for Web mail."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 SOURCE="view_as_html"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://www.squirrelmail.org/"
12 WGET_URL="${WEB_SITE}plugins/$TARBALL"
13 HOST_ARCH="any"
15 DEPENDS="squirrelmail"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 mkdir -p $DESTDIR
21 cp -a $src $DESTDIR/$SOURCE
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr/share/squirrelmail/plugins
28 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
29 chown -R 80 $fs/usr/share/squirrelmail
30 }
32 post_install()
33 {
34 echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
35 }
37 pre_remove()
38 {
39 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
40 }