pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/sslh Support documented command line options. Bum...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b776612869be
branches:  trunk
changeset: 366552:b776612869be
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Tue Aug 15 14:23:50 2017 +0000

description:
Support documented command line options.  Bump PKGREVISION.

diffstat:

 net/sslh/Makefile                  |   3 ++-
 net/sslh/distinfo                  |   4 ++--
 net/sslh/patches/patch-sslh-main.c |  31 ++++++++++++++++++++++++++++++-
 3 files changed, 34 insertions(+), 4 deletions(-)

diffs (75 lines):

diff -r 2c29ed27ec25 -r b776612869be net/sslh/Makefile
--- a/net/sslh/Makefile Tue Aug 15 13:55:48 2017 +0000
+++ b/net/sslh/Makefile Tue Aug 15 14:23:50 2017 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.10 2016/08/07 13:19:24 nils Exp $
+# $NetBSD: Makefile,v 1.11 2017/08/15 14:23:50 jperkin Exp $
 
 DISTNAME=      sslh-1.18
+PKGREVISION=   1
 CATEGORIES=    net
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=yrutschle/}
 GITHUB_TAG=    v${PKGVERSION_NOREV}
diff -r 2c29ed27ec25 -r b776612869be net/sslh/distinfo
--- a/net/sslh/distinfo Tue Aug 15 13:55:48 2017 +0000
+++ b/net/sslh/distinfo Tue Aug 15 14:23:50 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.7 2017/08/15 13:13:36 jperkin Exp $
+$NetBSD: distinfo,v 1.8 2017/08/15 14:23:50 jperkin Exp $
 
 SHA1 (sslh-1.18.tar.gz) = dacf6250e26250513deeaa310c78591d5b3e77f4
 RMD160 (sslh-1.18.tar.gz) = 49e83f975f7e8df8358bdd1d7afeabdbe6269a82
@@ -7,5 +7,5 @@
 SHA1 (patch-common.c) = fb812e7aca2216c6b6577c9d33e37dd837e26fe7
 SHA1 (patch-common.h) = 376a7d4d9ef28707d3dfc3df763a2a577f020772
 SHA1 (patch-echosrv.c) = 611044fd7ed1fd52c44e2d8ff393091c35478e17
-SHA1 (patch-sslh-main.c) = a74502a087b11c4d8f32791ac86c45c7a38923d9
+SHA1 (patch-sslh-main.c) = 3345b4477b4f927deebc485bcf7d656fe0f584d8
 SHA1 (patch-sslh-select.c) = d470e6dc803164fbdfa77ddc189cdb4dd7672bd4
diff -r 2c29ed27ec25 -r b776612869be net/sslh/patches/patch-sslh-main.c
--- a/net/sslh/patches/patch-sslh-main.c        Tue Aug 15 13:55:48 2017 +0000
+++ b/net/sslh/patches/patch-sslh-main.c        Tue Aug 15 14:23:50 2017 +0000
@@ -1,9 +1,19 @@
-$NetBSD: patch-sslh-main.c,v 1.4 2016/08/07 13:19:24 nils Exp $
+$NetBSD: patch-sslh-main.c,v 1.5 2017/08/15 14:23:50 jperkin Exp $
 
 * getopt_long_only does not exist on NetBSD getopt.
+* Support documented command line options.
 
 --- sslh-main.c.orig   2016-03-29 19:19:05.000000000 +0000
 +++ sslh-main.c
+@@ -78,7 +78,7 @@ static struct option const_options[] = {
+ };
+ static struct option* all_options;
+ static struct proto* builtins;
+-static const char *optstr = "vt:T:p:VP:F::";
++static const char *optstr = "finvt:T:p:VP:F::";
+ 
+ 
+ 
 @@ -443,7 +443,7 @@ static void cmdline_config(int argc, cha
  #ifdef LIBCONFIG
      optind = 1;
@@ -22,3 +32,22 @@
          if (c == 0) continue;
  
          if (c >= PROT_SHIFT) {
+@@ -510,6 +510,18 @@ next_arg:
+ 
+         switch (c) {
+ 
++        case 'f':
++            foreground = 1;
++            break;
++
++        case 'i':
++            inetd = 1;
++            break;
++
++        case 'n':
++            numeric = 1;
++            break;
++
+         case 'F':
+             /* Legal option, but do nothing, it was already processed in
+              * cmdline_config() */



Home | Main Index | Thread Index | Old Index