wok rev 24291

modified sshttp (0.35s2)
author Hans-G?nter Theisgen
date Fri Jan 14 14:01:18 2022 +0100 (2022-01-14)
parents a3e66646ebf7
children 93e0518b3d74
files sshttp/description.txt sshttp/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/sshttp/description.txt	Fri Jan 14 14:01:18 2022 +0100
     1.3 @@ -0,0 +1,11 @@
     1.4 +In case your FW policy forbids SSH access to the DMZ or internal
     1.5 +network from outside, but you still want to use ssh on machines
     1.6 +which only have one open port, e.g. HTTP, you can use sshttpd.
     1.7 +
     1.8 +Sshttpd can multiplex the following protocol pairs:
     1.9 +
    1.10 +* SSH/HTTP
    1.11 +* SSH/HTTPS
    1.12 +* SSH/SMTP (without SMTP multiline banners)
    1.13 +* HTTPS SNI multiplexing
    1.14 +* SSH/HTTPS with SNI multiplexing
     2.1 --- a/sshttp/receipt	Fri Jan 14 13:34:24 2022 +0100
     2.2 +++ b/sshttp/receipt	Fri Jan 14 14:01:18 2022 +0100
     2.3 @@ -26,21 +26,22 @@
     2.4  {
     2.5  	sed -i 's|CXX=c++|CXX=gcc-83|' Makefile
     2.6  
     2.7 -	make &&
     2.8 -	cp README* $WOK/$PACKAGE/description.txt
     2.9 +	make	LIBS="-lstdc++ -lcap"
    2.10 +#	cp README* $WOK/$PACKAGE/description.txt
    2.11  }
    2.12  
    2.13  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.14  genpkg_rules()
    2.15  {
    2.16  	mkdir -p $fs/usr/sbin
    2.17 -	cp -a $src/sshttpd $fs/usr/sbin
    2.18 +	cp -a $src/sshttpd	$fs/usr/sbin
    2.19  }
    2.20  
    2.21  # Pre and post install commands for Tazpkg.
    2.22  post_install()
    2.23  {
    2.24 -	[ "$1" ] || zcat /proc/config.gz | grep -q ^CONFIG_NETFILTER_TPROXY= || cat <<EOT
    2.25 +	[ "$1" ] ||
    2.26 +	zcat /proc/config.gz | grep -q ^CONFIG_NETFILTER_TPROXY= || cat <<EOT
    2.27  
    2.28  CONFIG_NETFILTER_TPROXY not found in /proc/config.gz
    2.29  sshttp needs Linux IP_TRANSPARENT feature to work.