# HG changeset patch # User Aleksej Bobylev # Date 1531100487 -10800 # Node ID e99bd65b617a619943e5777b392229012d5564b1 # Parent 642c924029f7823aa3179eb6b1f2c79b067886b5 sslh: up (1.19c) diff -r 642c924029f7 -r e99bd65b617a sslh/receipt --- a/sslh/receipt Sat Jul 07 16:28:22 2018 +0300 +++ b/sslh/receipt Mon Jul 09 04:41:27 2018 +0300 @@ -1,26 +1,35 @@ # SliTaz package receipt v2. PACKAGE="sslh" -VERSION="1.17" +VERSION="1.19c" CATEGORY="network" SHORT_DESC="Accept HTTPS SSH OpenVPN Tinc & XMPP connections on the same port" MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" -WEB_SITE="http://www.rutschle.net/tech/sslh.shtml" +WEB_SITE="http://www.rutschle.net/tech/sslh/README.html" TARBALL="$PACKAGE-v$VERSION.tar.gz" -WGET_URL="http://www.rutschle.net/tech/$TARBALL" +WGET_URL="http://www.rutschle.net/tech/sslh/$TARBALL" -BUILD_DEPENDS="libwrap-dev libwrap libconfig-dev" +BUILD_DEPENDS="libconfig-dev pcre-dev libwrap-dev libcap-dev perl" compile_rules() { - make || return 1 - install -Dm755 sslh-fork $install/usr/sbin/sslh-fork - install -Dm755 sslh-select $install/usr/sbin/sslh-select + export CFLAGS="$CFLAGS -std=gnu99" + make ENABLE_REGEX=1 USELIBCONFIG=1 USELIBPCRE=1 USELIBWRAP=1 USELIBCAP=1 && + make install || return 1 + + install sslh-select -p $install/usr/sbin/sslh-select + mv $install/usr/sbin/sslh $install/usr/sbin/sslh-fork + ln -s sslh-fork $install/usr/sbin/sslh + + install -Dm644 $stuff/sslh.conf $install/etc/sslh/sslh.conf + cp -r scripts/fail2ban/ $install/etc/sslh/ + + cook_pick_docs README.md basic.cfg example.cfg } genpkg_rules() { copy @std - DEPENDS="libwrap libconfig" + DEPENDS="libcap libconfig libpcreposix libwrap" TAGS="ssh vpn tunnel" } diff -r 642c924029f7 -r e99bd65b617a sslh/stuff/sslh.conf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sslh/stuff/sslh.conf Mon Jul 09 04:41:27 2018 +0300 @@ -0,0 +1,24 @@ +verbose: false; +foreground: true; +inetd: false; +numeric: false; +transparent: false; +timeout: 2; +user: "nobody"; +pidfile: "/var/run/sslh.pid"; + + +listen: +( + { host: "::0"; port: "443"; } +); + +protocols: +( + { name: "ssh"; service: "ssh"; host: "localhost"; port: "22"; probe: "builtin"; }, + { name: "openvpn"; host: "localhost"; port: "1194"; probe: "builtin"; }, + { name: "xmpp"; host: "localhost"; port: "5222"; probe: "builtin"; }, + { name: "http"; host: "localhost"; port: "80"; probe: "builtin"; }, + { name: "ssl"; host: "localhost"; port: "8443"; probe: "builtin"; }, + { name: "anyprot"; host: "localhost"; port: "8443"; probe: "builtin"; } +);