wok-6.x view squirrelmail-legend/receipt @ rev 17831

Up:tazpanel(1.8.3)
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Mon Mar 23 00:37:51 2015 +0100 (2015-03-23)
parents b13ed9740841
children 9e01bc6321ea
line source
1 # SliTaz package receipt.
3 PACKAGE="squirrelmail-legend"
4 VERSION="1.2-1.2.8"
5 CATEGORY="network"
6 SHORT_DESC="Adds a legend below the folder list in Web mail."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 SOURCE="legend"
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 }
31 post_install()
32 {
33 echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
34 }
36 pre_remove()
37 {
38 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
39 }