wok-next annotate squirrelmail-calendard-sql-backend/receipt @ rev 21724

busybox: update configs
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 01 11:04:25 2020 +0000 (2020-09-01)
parents c4e53a39395a
children
rev   line source
pascal@2251 1 # SliTaz package receipt.
pascal@2251 2
pascal@2251 3 PACKAGE="squirrelmail-calendard-sql-backend"
pascal@2251 4 VERSION="1.1-2.0"
pascal@2251 5 CATEGORY="network"
al@21020 6 SHORT_DESC="SQL-based backend for calendar data for Web mail"
pascal@2251 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15200 8 LICENSE="GPL2"
al@21020 9 WEB_SITE="http://www.squirrelmail.org/"
al@21020 10
pascal@2251 11 SOURCE="calendar_sql_backend"
pascal@2251 12 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@2251 13 WGET_URL="${WEB_SITE}plugins/$TARBALL"
pascal@2251 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@2251 21 mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail
pascal@15200 22 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
pascal@2251 23 mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php.sample \
pascal@2251 24 $fs/etc/squirrelmail/config-$SOURCE.php
pascal@2251 25 ln -s /etc/squirrelmail/config-$SOURCE.php \
pascal@2251 26 $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php
al@21020 27 DEPENDS="squirrelmail php-mysql"
al@21020 28 PROVIDE="squirrelmail-calendard-backend"
al@21020 29 CONFIG_FILES="/etc/squirrelmail/config-$SOURCE.php"
pascal@2251 30 }
pascal@2251 31
al@21020 32 post_install() {
pascal@18730 33 echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
pascal@2251 34 }
pascal@2251 35
al@21020 36 pre_remove() {
pascal@2251 37 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
pascal@2251 38 }