wok-next diff squirrelmail-calendard-sql-backend/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 diff
     1.1 --- a/squirrelmail-calendard-sql-backend/receipt	Fri Mar 02 12:12:14 2018 +0200
     1.2 +++ b/squirrelmail-calendard-sql-backend/receipt	Fri Nov 02 14:15:08 2018 +0200
     1.3 @@ -3,42 +3,36 @@
     1.4  PACKAGE="squirrelmail-calendard-sql-backend"
     1.5  VERSION="1.1-2.0"
     1.6  CATEGORY="network"
     1.7 -SHORT_DESC="SQL-based backend for calendar data for Web mail."
     1.8 +SHORT_DESC="SQL-based backend for calendar data for Web mail"
     1.9  MAINTAINER="pascal.bellard@slitaz.org"
    1.10  LICENSE="GPL2"
    1.11 +WEB_SITE="http://www.squirrelmail.org/"
    1.12 +
    1.13  SOURCE="calendar_sql_backend"
    1.14  TARBALL="$SOURCE-$VERSION.tar.gz"
    1.15 -WEB_SITE="http://www.squirrelmail.org/"
    1.16  WGET_URL="${WEB_SITE}plugins/$TARBALL"
    1.17 -CONFIG_FILES="/etc/squirrelmail/config-$SOURCE.php"
    1.18 -PROVIDE="squirrelmail-calendard-backend"
    1.19  
    1.20 -DEPENDS="squirrelmail php-mysql"
    1.21 -
    1.22 -# Rules to configure and make the package.
    1.23 -compile_rules()
    1.24 -{
    1.25 -	mkdir -p $DESTDIR
    1.26 -	cp -a $src $DESTDIR/$SOURCE
    1.27 +compile_rules() {
    1.28 +	mkdir -p $install
    1.29 +	cp -a $src $install/$SOURCE
    1.30  }
    1.31  
    1.32 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.33 -genpkg_rules()
    1.34 -{
    1.35 +genpkg_rules() {
    1.36  	mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail
    1.37  	cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins
    1.38  	mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php.sample \
    1.39  		$fs/etc/squirrelmail/config-$SOURCE.php
    1.40  	ln -s /etc/squirrelmail/config-$SOURCE.php \
    1.41  		$fs/usr/share/squirrelmail/plugins/$SOURCE/config.php
    1.42 +	DEPENDS="squirrelmail php-mysql"
    1.43 +	PROVIDE="squirrelmail-calendard-backend"
    1.44 +	CONFIG_FILES="/etc/squirrelmail/config-$SOURCE.php"
    1.45  }
    1.46  
    1.47 -post_install()
    1.48 -{
    1.49 +post_install() {
    1.50  	echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php"
    1.51  }
    1.52  
    1.53 -pre_remove()
    1.54 -{
    1.55 +pre_remove() {
    1.56  	sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
    1.57  }