wok view squirrelmail-bookmarks/receipt @ rev 17288

Up: wget (1.16), inkscape (0.48.5).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Oct 28 09:55:47 2014 +0200 (2014-10-28)
parents b13ed9740841
children 9e01bc6321ea
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"
14 HOST_ARCH="any"
16 DEPENDS="squirrelmail"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 mkdir -p $DESTDIR
22 cp -a $src $DESTDIR/$SOURCE
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail
29 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
30 rm -f $fs/usr/share/squirrelmail/plugins/$SOURCE/bookmarks_data.php
31 ln -s /usr/share/squirrelmail/plugins/$SOURCE/bookmarks_data_text.php \
32 $fs/etc/squirrelmail/bookmarks_data.php
33 ln -s /etc/squirrelmail/bookmarks_data.php \
34 $fs/usr/share/squirrelmail/plugins/$SOURCE/bookmarks_data.php
35 }
37 post_install()
38 {
39 echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
40 }
42 pre_remove()
43 {
44 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
45 }