wok-next rev 20880

sslh: up (1.19c)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Jul 09 04:41:27 2018 +0300 (2018-07-09)
parents 642c924029f7
children 31563c763422
files sslh/receipt sslh/stuff/sslh.conf
line diff
     1.1 --- a/sslh/receipt	Sat Jul 07 16:28:22 2018 +0300
     1.2 +++ b/sslh/receipt	Mon Jul 09 04:41:27 2018 +0300
     1.3 @@ -1,26 +1,35 @@
     1.4  # SliTaz package receipt v2.
     1.5  
     1.6  PACKAGE="sslh"
     1.7 -VERSION="1.17"
     1.8 +VERSION="1.19c"
     1.9  CATEGORY="network"
    1.10  SHORT_DESC="Accept HTTPS SSH OpenVPN Tinc & XMPP connections on the same port"
    1.11  MAINTAINER="pascal.bellard@slitaz.org"
    1.12  LICENSE="GPL2"
    1.13 -WEB_SITE="http://www.rutschle.net/tech/sslh.shtml"
    1.14 +WEB_SITE="http://www.rutschle.net/tech/sslh/README.html"
    1.15  
    1.16  TARBALL="$PACKAGE-v$VERSION.tar.gz"
    1.17 -WGET_URL="http://www.rutschle.net/tech/$TARBALL"
    1.18 +WGET_URL="http://www.rutschle.net/tech/sslh/$TARBALL"
    1.19  
    1.20 -BUILD_DEPENDS="libwrap-dev libwrap libconfig-dev"
    1.21 +BUILD_DEPENDS="libconfig-dev pcre-dev libwrap-dev libcap-dev perl"
    1.22  
    1.23  compile_rules() {
    1.24 -	make || return 1
    1.25 -	install -Dm755 sslh-fork   $install/usr/sbin/sslh-fork
    1.26 -	install -Dm755 sslh-select $install/usr/sbin/sslh-select
    1.27 +	export CFLAGS="$CFLAGS -std=gnu99"
    1.28 +	make ENABLE_REGEX=1 USELIBCONFIG=1 USELIBPCRE=1 USELIBWRAP=1 USELIBCAP=1 &&
    1.29 +	make install || return 1
    1.30 +
    1.31 +	install sslh-select -p $install/usr/sbin/sslh-select
    1.32 +	mv $install/usr/sbin/sslh $install/usr/sbin/sslh-fork
    1.33 +	ln -s sslh-fork $install/usr/sbin/sslh
    1.34 +
    1.35 +	install -Dm644 $stuff/sslh.conf $install/etc/sslh/sslh.conf
    1.36 +	cp -r scripts/fail2ban/ $install/etc/sslh/
    1.37 +
    1.38 +	cook_pick_docs README.md basic.cfg example.cfg
    1.39  }
    1.40  
    1.41  genpkg_rules() {
    1.42  	copy @std
    1.43 -	DEPENDS="libwrap libconfig"
    1.44 +	DEPENDS="libcap libconfig libpcreposix libwrap"
    1.45  	TAGS="ssh vpn tunnel"
    1.46  }
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/sslh/stuff/sslh.conf	Mon Jul 09 04:41:27 2018 +0300
     2.3 @@ -0,0 +1,24 @@
     2.4 +verbose: false;
     2.5 +foreground: true;
     2.6 +inetd: false;
     2.7 +numeric: false;
     2.8 +transparent: false;
     2.9 +timeout: 2;
    2.10 +user: "nobody";
    2.11 +pidfile: "/var/run/sslh.pid";
    2.12 +
    2.13 +
    2.14 +listen:
    2.15 +(
    2.16 +    { host: "::0"; port: "443"; }
    2.17 +);
    2.18 +
    2.19 +protocols:
    2.20 +(
    2.21 +     { name: "ssh"; service: "ssh"; host: "localhost"; port: "22"; probe: "builtin"; },
    2.22 +     { name: "openvpn"; host: "localhost"; port: "1194"; probe: "builtin"; },
    2.23 +     { name: "xmpp"; host: "localhost"; port: "5222"; probe: "builtin"; },
    2.24 +     { name: "http"; host: "localhost"; port: "80"; probe: "builtin"; },
    2.25 +     { name: "ssl"; host: "localhost"; port: "8443"; probe: "builtin"; },
    2.26 +     { name: "anyprot"; host: "localhost"; port: "8443"; probe: "builtin"; }
    2.27 +);