wok-6.x view squirrelmail-html/receipt @ rev 13025

clucene-dev, clucene, drupal, fcitx-skin-default, fcitx-zm, gejengel, hd2u, input-utils, jdk6-jaf, jdk6-jaxp, jdk6-jaxws, kismet, libedit-dev, libedit, linux-module-headers, linux-ocfs2, linux-staging, linux64-ocfs2, linux64-staging, menu-railroad, nfs-utils, ode-dev, openjdk-6-src, runcom, talloc-python, vlc-plugin, xorg-xf86-video-neomagic: fix maintainer
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jun 11 17:36:31 2012 +0200 (2012-06-11)
parents f81e47267992
children b13ed9740841
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 SOURCE="view_as_html"
9 TARBALL="$SOURCE-$VERSION.tar.gz"
10 WEB_SITE="http://www.squirrelmail.org/"
11 DEPENDS="squirrelmail"
12 WGET_URL="${WEB_SITE}plugins/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 mkdir -p $DESTDIR
18 cp -a $src $DESTDIR/$SOURCE
19 }
21 # Rules to gen a SliTaz package suitable for Tazpkg.
22 genpkg_rules()
23 {
24 mkdir -p $fs/usr/share/squirrelmail/plugins
25 cp -a $_pkg/$SOURCE $fs/usr/share/squirrelmail/plugins
26 chown -R 80 $fs/usr/share/squirrelmail
27 }
29 post_install()
30 {
31 echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
32 }
34 pre_remove()
35 {
36 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
37 }