wok view squirrelmail-bookmarks/receipt @ rev 15785

Up: OpenVPN (2.3.2)
author Christophe Lincoln <pankso@slitaz.org>
date Wed Jan 15 18:50:15 2014 +0100 (2014-01-15)
parents 91a615759636
children d51b2411e55e
line source
1 # SliTaz package receipt.
3 PACKAGE="squirrelmail-bookmarks"
4 VERSION="2.0.3-1.4.1"
5 CATEGORY="network"
6 SHORT_DESC="Store and manage favorites lists within the Squirrelmail interface."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 SOURCE="bookmarks"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://www.squirrelmail.org/"
12 WGET_URL="${WEB_SITE}plugins/$TARBALL"
13 CONFIG_FILES="/etc/squirrelmail/bookmarks_data.php"
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 $fs/etc/squirrelmail
28 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
29 rm -f $fs/usr/share/squirrelmail/plugins/$SOURCE/bookmarks_data.php
30 ln -s /usr/share/squirrelmail/plugins/$SOURCE/bookmarks_data_text.php \
31 $fs/etc/squirrelmail/bookmarks_data.php
32 ln -s /etc/squirrelmail/bookmarks_data.php \
33 $fs/usr/share/squirrelmail/plugins/$SOURCE/bookmarks_data.php
34 }
36 post_install()
37 {
38 echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
39 }
41 pre_remove()
42 {
43 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
44 }