wok-current annotate squirrelmail-calendard-sql-backend/receipt @ rev 16291
Fix pathon version from last commit
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Apr 07 00:16:55 2014 +0200 (2014-04-07) |
parents | b13ed9740841 |
children | 9e01bc6321ea |
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@15200 | 8 LICENSE="GPL2" |
pascal@2251 | 9 SOURCE="calendar_sql_backend" |
pascal@2251 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@2251 | 11 WEB_SITE="http://www.squirrelmail.org/" |
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@16264 | 15 HOST_ARCH="any" |
pascal@2251 | 16 |
pascal@15200 | 17 DEPENDS="squirrelmail php-mysql" |
pascal@15200 | 18 |
pascal@9036 | 19 # Rules to configure and make the package. |
pascal@9036 | 20 compile_rules() |
pascal@9036 | 21 { |
pascal@9037 | 22 mkdir -p $DESTDIR |
pascal@9036 | 23 cp -a $src $DESTDIR/$SOURCE |
pascal@9036 | 24 } |
pascal@9036 | 25 |
pascal@2251 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2251 | 27 genpkg_rules() |
pascal@2251 | 28 { |
pascal@2251 | 29 mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail |
pascal@15200 | 30 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins |
pascal@2251 | 31 mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php.sample \ |
pascal@2251 | 32 $fs/etc/squirrelmail/config-$SOURCE.php |
pascal@2251 | 33 ln -s /etc/squirrelmail/config-$SOURCE.php \ |
pascal@2251 | 34 $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php |
pascal@2251 | 35 } |
pascal@2251 | 36 |
pascal@2251 | 37 post_install() |
pascal@2251 | 38 { |
pascal@2251 | 39 echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php |
pascal@2251 | 40 } |
pascal@2251 | 41 |
pascal@2260 | 42 pre_remove() |
pascal@2251 | 43 { |
pascal@2251 | 44 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php |
pascal@2251 | 45 } |