wok-next annotate squirrelmail-calendard-sql-backend/receipt @ rev 15601
Add some licenses
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Dec 05 20:23:08 2013 +0000 (2013-12-05) |
parents | 91a615759636 |
children | d51b2411e55e |
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@2251 | 15 |
pascal@15200 | 16 DEPENDS="squirrelmail php-mysql" |
pascal@15200 | 17 |
pascal@9036 | 18 # Rules to configure and make the package. |
pascal@9036 | 19 compile_rules() |
pascal@9036 | 20 { |
pascal@9037 | 21 mkdir -p $DESTDIR |
pascal@9036 | 22 cp -a $src $DESTDIR/$SOURCE |
pascal@9036 | 23 } |
pascal@9036 | 24 |
pascal@2251 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2251 | 26 genpkg_rules() |
pascal@2251 | 27 { |
pascal@2251 | 28 mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail |
pascal@15200 | 29 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins |
pascal@2251 | 30 mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php.sample \ |
pascal@2251 | 31 $fs/etc/squirrelmail/config-$SOURCE.php |
pascal@2251 | 32 ln -s /etc/squirrelmail/config-$SOURCE.php \ |
pascal@2251 | 33 $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php |
pascal@2251 | 34 } |
pascal@2251 | 35 |
pascal@2251 | 36 post_install() |
pascal@2251 | 37 { |
pascal@2251 | 38 echo "\$plugins[] = '$SOURCE';" >> $1/etc/squirrelmail/config_local.php |
pascal@2251 | 39 } |
pascal@2251 | 40 |
pascal@2260 | 41 pre_remove() |
pascal@2251 | 42 { |
pascal@2251 | 43 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php |
pascal@2251 | 44 } |