Update to 1.17, switch to github framework: v1.17: 09MAR2015 Support RFC5952-style IPv6 addresses, e.g. [::]:443. Transparant proxy support for FreeBSD. (Ruben van Staveren) Using -F with no argument will try /etc/sslh/sslh.cfg and then /etc/sslh.cfg as configuration files. (argument to -F can no longer be separated from the option by a space, e.g. must be -Ffoo.cfg) Call setgroups() before setgid() (fixes potential privilege escalation). (Lars Vogdt) Use portable way of getting modified time for OSX support. (Aaron Madlon-Kay) Example configuration for fail2ban. (Every Mouw)diff -r1.6 -r1.7 pkgsrc/net/sslh/Makefile
(wiz)
@@ -1,22 +1,19 @@ | @@ -1,22 +1,19 @@ | |||
1 | # $NetBSD: Makefile,v 1.6 2015/01/09 14:34:20 joerg Exp $ | 1 | # $NetBSD: Makefile,v 1.7 2015/04/19 19:02:35 wiz Exp $ | |
2 | # | |||
3 | 2 | |||
4 | DISTNAME= v1.16 | 3 | DISTNAME= sslh-1.17 | |
5 | PKGNAME= sslh-1.16 | |||
6 | CATEGORIES= net | 4 | CATEGORIES= net | |
7 | MASTER_SITES= https://github.com/yrutschle/sslh/archive/ | 5 | MASTER_SITES= ${MASTER_SITE_GITHUB:=yrutschle/} | |
8 | EXTRACT_SUFX= .zip | 6 | GITHUB_TAG= v${PKGVERSION} | |
9 | WRKSRC= ${WRKDIR}/${PKGNAME_NOREV} | |||
10 | 7 | |||
11 | MAINTAINER= pkgsrc-users@NetBSD.org | 8 | MAINTAINER= pkgsrc-users@NetBSD.org | |
12 | HOMEPAGE= http://www.rutschle.net/tech/sslh.shtml | 9 | HOMEPAGE= http://www.rutschle.net/tech/sslh.shtml | |
13 | COMMENT= Multiplex ssl, ssh, and other connections on the same port | 10 | COMMENT= Multiplex ssl, ssh, and other connections on the same port | |
14 | LICENSE= gnu-gpl-v2 | 11 | LICENSE= gnu-gpl-v2 | |
15 | 12 | |||
16 | # version.h created too late | 13 | # version.h created too late | |
17 | MAKE_JOBS_SAFE= no | 14 | MAKE_JOBS_SAFE= no | |
18 | 15 | |||
19 | USE_TOOLS+= gmake gzip pod2man | 16 | USE_TOOLS+= gmake gzip pod2man | |
20 | USE_LANGUAGES= c | 17 | USE_LANGUAGES= c | |
21 | 18 | |||
22 | MAKE_FLAGS+= USELIBWRAP=1 | 19 | MAKE_FLAGS+= USELIBWRAP=1 |
@@ -1,7 +1,7 @@ | @@ -1,7 +1,7 @@ | |||
1 | $NetBSD: distinfo,v 1.3 2014/11/28 10:45:27 bsiegert Exp $ | 1 | $NetBSD: distinfo,v 1.4 2015/04/19 19:02:35 wiz Exp $ | |
2 | 2 | |||
3 | SHA1 (v1.16.zip) = 19f3931ce8d98895e85b2da2d6995b489f123bd2 | 3 | SHA1 (sslh-1.17.tar.gz) = d892e26204ec5b26f0f2a87eb388bbbf3f2bf91e | |
4 | RMD160 (v1.16.zip) = 29da00f88db489c88f8ec76e14ce1131f0766ee7 | 4 | RMD160 (sslh-1.17.tar.gz) = dec321368951b0c93d28595df806300adce07459 | |
5 | Size (v1.16.zip) = 46395 bytes | 5 | Size (sslh-1.17.tar.gz) = 45451 bytes | |
6 | SHA1 (patch-echosrv.c) = 611044fd7ed1fd52c44e2d8ff393091c35478e17 | 6 | SHA1 (patch-echosrv.c) = 611044fd7ed1fd52c44e2d8ff393091c35478e17 | |
7 | SHA1 (patch-sslh-main.c) = 996bbec53dbb3c92c3485b1f210853c7ed368519 | 7 | SHA1 (patch-sslh-main.c) = 43c88799534a6562a92aa174eb6aff6de53865a2 |
@@ -1,24 +1,24 @@ | @@ -1,24 +1,24 @@ | |||
1 | $NetBSD: patch-sslh-main.c,v 1.2 2014/11/28 10:45:28 bsiegert Exp $ | 1 | $NetBSD: patch-sslh-main.c,v 1.3 2015/04/19 19:02:35 wiz Exp $ | |
2 | 2 | |||
3 | * getopt_long_only does not exist on NetBSD getopt. | 3 | * getopt_long_only does not exist on NetBSD getopt. | |
4 | 4 | |||
5 | --- sslh-main.c.orig 2014-02-11 21:06:01.000000000 +0000 | 5 | --- sslh-main.c.orig 2015-03-09 20:51:39.000000000 +0000 | |
6 | +++ sslh-main.c | 6 | +++ sslh-main.c | |
7 | @@ -358,7 +358,7 @@ static void cmdline_config(int argc, cha | 7 | @@ -362,7 +362,7 @@ static void cmdline_config(int argc, cha | |
8 | #ifdef LIBCONFIG | 8 | #ifdef LIBCONFIG | |
9 | optind = 1; | 9 | optind = 1; | |
10 | opterr = 0; /* we're missing protocol options at this stage so don't output errors */ | 10 | opterr = 0; /* we're missing protocol options at this stage so don't output errors */ | |
11 | - while ((c = getopt_long_only(argc, argv, optstr, all_options, NULL)) != -1) { | 11 | - while ((c = getopt_long_only(argc, argv, optstr, all_options, NULL)) != -1) { | |
12 | + while ((c = getopt_long(argc, argv, optstr, all_options, NULL)) != -1) { | 12 | + while ((c = getopt_long(argc, argv, optstr, all_options, NULL)) != -1) { | |
13 | if (c == 'F') { | 13 | if (c == 'F') { | |
14 | config_filename = optarg; | 14 | config_filename = optarg; | |
15 | /* find the end of the listen list */ | 15 | if (config_filename) { | |
16 | @@ -383,7 +383,7 @@ static void parse_cmdline(int argc, char | 16 | @@ -397,7 +397,7 @@ static void parse_cmdline(int argc, char | |
17 | optind = 1; | 17 | optind = 1; | |
18 | opterr = 1; | 18 | opterr = 1; | |
19 | next_arg: | 19 | next_arg: | |
20 | - while ((c = getopt_long_only(argc, argv, optstr, all_options, NULL)) != -1) { | 20 | - while ((c = getopt_long_only(argc, argv, optstr, all_options, NULL)) != -1) { | |
21 | + while ((c = getopt_long(argc, argv, optstr, all_options, NULL)) != -1) { | 21 | + while ((c = getopt_long(argc, argv, optstr, all_options, NULL)) != -1) { | |
22 | if (c == 0) continue; | 22 | if (c == 0) continue; | |
23 | 23 | |||
24 | if (c >= PROT_SHIFT) { | 24 | if (c >= PROT_SHIFT) { |