wok annotate squirrelmail-calendard-sql-backend/receipt @ rev 12007

arora: add desktop and icon from src tarball. add description file
author Samuel Trassare <samuel_trassare@yahoo.com>
date Mon Mar 05 13:59:52 2012 -0800 (2012-03-05)
parents f81e47267992
children b13ed9740841
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"
pascal@2251 6 SHORT_DESC="SQL-based backend for calendar data for Web mail."
pascal@2251 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@2251 8 SOURCE="calendar_sql_backend"
pascal@2251 9 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@2251 10 WEB_SITE="http://www.squirrelmail.org/"
pascal@2251 11 DEPENDS="squirrelmail php-mysql"
pascal@2251 12 WGET_URL="${WEB_SITE}plugins/$TARBALL"
pascal@2251 13 CONFIG_FILES="/etc/squirrelmail/config-$SOURCE.php"
pascal@2251 14 PROVIDE="squirrelmail-calendard-backend"
pascal@2251 15
pascal@9036 16 # Rules to configure and make the package.
pascal@9036 17 compile_rules()
pascal@9036 18 {
pascal@9037 19 mkdir -p $DESTDIR
pascal@9036 20 cp -a $src $DESTDIR/$SOURCE
pascal@9036 21 }
pascal@9036 22
pascal@2251 23 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@2251 24 genpkg_rules()
pascal@2251 25 {
pascal@2251 26 mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail
pascal@9036 27 cp -a $_pkg/$SOURCE $fs/usr/share/squirrelmail/plugins
pascal@2251 28 mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php.sample \
pascal@2251 29 $fs/etc/squirrelmail/config-$SOURCE.php
pascal@2251 30 ln -s /etc/squirrelmail/config-$SOURCE.php \
pascal@2251 31 $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php
pascal@2251 32 }
pascal@2251 33
pascal@2251 34 post_install()
pascal@2251 35 {
pascal@2251 36 echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php
pascal@2251 37 }
pascal@2251 38
pascal@2260 39 pre_remove()
pascal@2251 40 {
pascal@2251 41 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php
pascal@2251 42 }