wok annotate sshttp/receipt @ rev 25496

Up expat (2.5.0), CVE-2022-43680. Again.
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Dec 02 10:26:08 2022 +0000 (18 months ago)
parents 737f4f020b9e
children
rev   line source
pascal@13031 1 # SliTaz package receipt.
pascal@13031 2
pascal@13031 3 PACKAGE="sshttp"
Hans-G?nter@21970 4 VERSION="0.35s2"
pascal@13031 5 CATEGORY="network"
Hans-G?nter@21970 6 TAGS="ssh"
Hans-G?nter@21970 7 SHORT_DESC="Hiding a SSH server behind a HTTP server."
pascal@13031 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15593 9 LICENSE="BSD"
pascal@13031 10 WEB_SITE="https://github.com/stealth/$PACKAGE"
pascal@15593 11
Hans-G?nter@21970 12 TARBALL="$PACKAGE-${VERSION/./-}.tar.gz"
Hans-G?nter@21970 13 WGET_URL="$WEB_SITE/archive/$TARBALL"
Hans-G?nter@21970 14
Hans-G?nter@21970 15 DEPENDS="gcc83-lib-base libcap"
Hans-G?nter@21973 16 BUILD_DEPENDS="gcc83 libcap-dev libidn"
pascal@13031 17
pascal@24055 18 current_version()
pascal@24055 19 {
pascal@24295 20 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
pascal@24055 21 sed '/archive.*tar/!d;s|.*/sshttp-splice-\(.*\).tar.*|\1|;s|-|.|g;q'
pascal@24055 22 }
pascal@24055 23
pascal@13031 24 # Rules to configure and make the package.
pascal@13031 25 compile_rules()
pascal@13031 26 {
Hans-G?nter@21970 27 sed -i 's|CXX=c++|CXX=gcc-83|' Makefile
Hans-G?nter@21970 28
Hans-G?nter@24291 29 make LIBS="-lstdc++ -lcap"
Hans-G?nter@24291 30 # cp README* $WOK/$PACKAGE/description.txt
pascal@13031 31 }
pascal@13031 32
pascal@13031 33 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@13031 34 genpkg_rules()
pascal@13031 35 {
pascal@13031 36 mkdir -p $fs/usr/sbin
Hans-G?nter@24291 37 cp -a $src/sshttpd $fs/usr/sbin
pascal@13031 38 }
pascal@13031 39
pascal@13040 40 # Pre and post install commands for Tazpkg.
pascal@13040 41 post_install()
pascal@13040 42 {
Hans-G?nter@24291 43 [ "$1" ] ||
Hans-G?nter@24291 44 zcat /proc/config.gz | grep -q ^CONFIG_NETFILTER_TPROXY= || cat <<EOT
pascal@13040 45
pascal@13040 46 CONFIG_NETFILTER_TPROXY not found in /proc/config.gz
pascal@13040 47 sshttp needs Linux IP_TRANSPARENT feature to work.
pascal@13040 48 You should rebuild your kernel with a new configuration.
pascal@13040 49
pascal@13040 50 EOT
pascal@13040 51 }
pascal@13040 52
pascal@13040 53 # http://blog.stalkr.net/2012/02/sshhttps-multiplexing-with-sshttp.html