wok annotate squirrelmail-calendard-sql-backend/receipt @ rev 25317
updated soundtouch and soundtouch-dev (2.1.2 -> 2.3.1)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jul 21 07:14:01 2022 +0100 (2022-07-21) |
parents | 46dcc80bef41 |
children |
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@24746 | 11 WEB_SITE="https://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@24094 | 19 current_version() |
pascal@24094 | 20 { |
pascal@24094 | 21 wget -O - "$WEB_SITE/plugin_view.php?id=247" 2>/dev/null | \ |
pascal@24094 | 22 sed "/tarball/!d;s|.*$SOURCE.||;s|.tar.*||;q" |
pascal@24094 | 23 } |
pascal@24094 | 24 |
pascal@9036 | 25 # Rules to configure and make the package. |
pascal@9036 | 26 compile_rules() |
pascal@9036 | 27 { |
pascal@9037 | 28 mkdir -p $DESTDIR |
pascal@9036 | 29 cp -a $src $DESTDIR/$SOURCE |
pascal@9036 | 30 } |
pascal@9036 | 31 |
pascal@2251 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2251 | 33 genpkg_rules() |
pascal@2251 | 34 { |
pascal@2251 | 35 mkdir -p $fs/usr/share/squirrelmail/plugins $fs/etc/squirrelmail |
pascal@15200 | 36 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins |
pascal@2251 | 37 mv $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php.sample \ |
pascal@2251 | 38 $fs/etc/squirrelmail/config-$SOURCE.php |
pascal@2251 | 39 ln -s /etc/squirrelmail/config-$SOURCE.php \ |
pascal@2251 | 40 $fs/usr/share/squirrelmail/plugins/$SOURCE/config.php |
pascal@2251 | 41 } |
pascal@2251 | 42 |
pascal@2251 | 43 post_install() |
pascal@2251 | 44 { |
pascal@18730 | 45 echo "\$plugins[] = '$SOURCE';" >> "$1/etc/squirrelmail/config_local.php" |
pascal@2251 | 46 } |
pascal@2251 | 47 |
pascal@2260 | 48 pre_remove() |
pascal@2251 | 49 { |
pascal@2251 | 50 sed -i "/\$plugins.. = '$SOURCE';/d" /etc/squirrelmail/config_local.php |
pascal@2251 | 51 } |