wok-current annotate squirrelmail-compatibility-plugin/receipt @ rev 25681
Up openssl, add openssl-compat, openssl11, patch dropbear CVE-2023-48795
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Tue Mar 12 19:49:16 2024 +0000 (8 months ago) |
parents | 46dcc80bef41 |
children |
rev | line source |
---|---|
pascal@1220 | 1 # SliTaz package receipt. |
pascal@1220 | 2 |
pascal@1220 | 3 PACKAGE="squirrelmail-compatibility-plugin" |
Hans-G?nter@21963 | 4 VERSION="2.0.16-1.0" |
pascal@1220 | 5 CATEGORY="network" |
Hans-G?nter@21963 | 6 SHORT_DESC="Compatibility plugin for Web mail, needed by many plugins." |
pascal@1220 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
pascal@24746 | 9 WEB_SITE="https://www.squirrelmail.org/" |
Hans-G?nter@21963 | 10 |
pascal@1220 | 11 SOURCE="compatibility" |
pascal@1220 | 12 TARBALL="$SOURCE-$VERSION.tar.gz" |
pascal@15000 | 13 WGET_URL="${WEB_SITE}plugins/$TARBALL" |
pascal@15000 | 14 |
pascal@1220 | 15 DEPENDS="squirrelmail" |
pascal@1220 | 16 |
Hans-G?nter@21963 | 17 HOST_ARCH="any" |
Hans-G?nter@21963 | 18 |
pascal@24094 | 19 current_version() |
pascal@24094 | 20 { |
pascal@24094 | 21 wget -O - "$WEB_SITE/plugin_view.php?id=152" 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@1220 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1220 | 33 genpkg_rules() |
pascal@1220 | 34 { |
pascal@1220 | 35 mkdir -p $fs/usr/share/squirrelmail/plugins |
pascal@15000 | 36 cp -a $install/$SOURCE $fs/usr/share/squirrelmail/plugins |
pascal@1220 | 37 } |
pascal@13526 | 38 |
pascal@13526 | 39 post_install() |
pascal@13526 | 40 { |
pascal@13526 | 41 local file |
pascal@13526 | 42 local line |
pascal@18730 | 43 file="$1/usr/share/squirrelmail/functions/strings.php" |
pascal@13526 | 44 line="include_once(SM_PATH . 'plugins/compatibility/functions.php');" |
pascal@18730 | 45 grep -qs "$line" "$file" || sed -i "s|.*global.php.*|&\n$line|" "$file" |
pascal@13526 | 46 } |