wok rev 2251
Add squirrelmail-calendard-sql-backend
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 15 22:49:16 2009 +0000 (2009-02-15) |
parents | bbffc3ca182b |
children | 2fb5e163880f |
files | squirrelmail-calendard-sql-backend/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/squirrelmail-calendard-sql-backend/receipt Sun Feb 15 22:49:16 2009 +0000 1.3 @@ -0,0 +1,35 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="squirrelmail-calendard-sql-backend" 1.7 +VERSION="1.1-2.0" 1.8 +CATEGORY="network" 1.9 +SHORT_DESC="SQL-based backend for calendar data for Web mail." 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +SOURCE="calendar_sql_backend" 1.12 +TARBALL="$SOURCE-$VERSION.tar.gz" 1.13 +WEB_SITE="http://www.squirrelmail.org/" 1.14 +DEPENDS="squirrelmail php-mysql" 1.15 +WGET_URL="${WEB_SITE}plugins/$TARBALL" 1.16 +CONFIG_FILES="/etc/squirrelmail/config-$SOURCE.php" 1.17 +PROVIDE="squirrelmail-calendard-backend" 1.18 + 1.19 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.20 +genpkg_rules() 1.21 +{ 1.22 + mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail 1.23 + cp -a $SOURCE $fs/usr/share/squirrelmail/plugins 1.24 + mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php.sample \ 1.25 + $fs/etc/squirrelmail/config-$SOURCE.php 1.26 + ln -s /etc/squirrelmail/config-$SOURCE.php \ 1.27 + $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php 1.28 +} 1.29 + 1.30 +post_install() 1.31 +{ 1.32 + echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php 1.33 +} 1.34 + 1.35 +post_remove() 1.36 +{ 1.37 + sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php 1.38 +}