wok-next view squirrelmail-bookmarks/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents c4e53a39395a
children
line source
1 # SliTaz package receipt v2.
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 WEB_SITE="http://www.squirrelmail.org/"
11 SOURCE="bookmarks"
12 TARBALL="$SOURCE-$VERSION.tar.gz"
13 WGET_URL="${WEB_SITE}plugins/$TARBALL"
15 compile_rules() {
16 mkdir -p $install
17 cp -a $src $install/$SOURCE
18 }
20 genpkg_rules() {
21 mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail
22 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
23 rm -f $fs/usr/share/squirrelmail/plugins/$SOURCE/bookmarks_data.php
24 ln -s ../../usr/share/squirrelmail/plugins/$SOURCE/bookmarks_data_text.php \
25 $fs/etc/squirrelmail/bookmarks_data.php
26 ln -s ../../../../../etc/squirrelmail/bookmarks_data.php \
27 $fs/usr/share/squirrelmail/plugins/$SOURCE/bookmarks_data.php
28 DEPENDS="squirrelmail"
29 CONFIG_FILES="/etc/squirrelmail/bookmarks_data.php"
30 }
32 post_install() {
33 echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
34 }
36 pre_remove() {
37 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
38 }