wok-next annotate squirrelmail-bookmarks/receipt @ rev 21157

Update some WEB_SITE
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 04 11:54:13 2019 +0100 (2019-02-04)
parents c4e53a39395a
children
rev   line source
al@21020 1 # SliTaz package receipt v2.
pascal@2249 2
pascal@2249 3 PACKAGE="squirrelmail-bookmarks"
pascal@2249 4 VERSION="2.0.3-1.4.1"
pascal@2249 5 CATEGORY="network"
al@21020 6 SHORT_DESC="Store and manage favorites lists within the Squirrelmail interface"
pascal@2249 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15200 8 LICENSE="GPL2"
al@21020 9 WEB_SITE="http://www.squirrelmail.org/"
al@21020 10
pascal@2249 11 SOURCE="bookmarks"
pascal@2249 12 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@2249 13 WGET_URL="${WEB_SITE}plugins/$TARBALL"
pascal@2249 14
al@21020 15 compile_rules() {
al@21020 16 mkdir -p $install
al@21020 17 cp -a $src $install/$SOURCE
pascal@9036 18 }
pascal@9036 19
al@21020 20 genpkg_rules() {
pascal@2249 21 mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail
pascal@15200 22 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
pascal@2249 23 rm -f $fs/usr/share/squirrelmail/plugins/$SOURCE/bookmarks_data.php
pascal@20264 24 ln -s ../../usr/share/squirrelmail/plugins/$SOURCE/bookmarks_data_text.php \
pascal@2249 25 $fs/etc/squirrelmail/bookmarks_data.php
pascal@20264 26 ln -s ../../../../../etc/squirrelmail/bookmarks_data.php \
pascal@2249 27 $fs/usr/share/squirrelmail/plugins/$SOURCE/bookmarks_data.php
al@21020 28 DEPENDS="squirrelmail"
al@21020 29 CONFIG_FILES="/etc/squirrelmail/bookmarks_data.php"
pascal@2249 30 }
pascal@2249 31
al@21020 32 post_install() {
pascal@18730 33 echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
pascal@2249 34 }
pascal@2249 35
al@21020 36 pre_remove() {
pascal@2249 37 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
pascal@2249 38 }