pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/ucspi-tools Initial import of ucspi-tools, a SOCKS...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5e5b65f79610
branches:  trunk
changeset: 442601:5e5b65f79610
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Thu Nov 26 15:52:58 2020 +0000

description:
Initial import of ucspi-tools, a SOCKS proxy and TLS support for UCSPI.

This package contains additional tools for UCSPI chains. It brings
support for using SOCKS proxies with clients and TLS with servers
and clients.

diffstat:

 net/ucspi-tools/DESCR                  |   3 +++
 net/ucspi-tools/Makefile               |  21 +++++++++++++++++++++
 net/ucspi-tools/PLIST                  |   9 +++++++++
 net/ucspi-tools/distinfo               |   8 ++++++++
 net/ucspi-tools/patches/patch-Makefile |  16 ++++++++++++++++
 net/ucspi-tools/patches/patch-tlsc.c   |  17 +++++++++++++++++
 6 files changed, 74 insertions(+), 0 deletions(-)

diffs (98 lines):

diff -r 6999d90b4b1a -r 5e5b65f79610 net/ucspi-tools/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/ucspi-tools/DESCR     Thu Nov 26 15:52:58 2020 +0000
@@ -0,0 +1,3 @@
+This package contains additional tools for UCSPI chains. It brings
+support for using SOCKS proxies with clients and TLS with servers
+and clients.
diff -r 6999d90b4b1a -r 5e5b65f79610 net/ucspi-tools/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/ucspi-tools/Makefile  Thu Nov 26 15:52:58 2020 +0000
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1 2020/11/26 15:52:58 schmonz Exp $
+
+DISTNAME=              ucspi-tools-1.6
+CATEGORIES=            net security
+MASTER_SITES=          ${MASTER_SITE_GITHUB:=younix/}
+GITHUB_PROJECT=                ucspi
+GITHUB_TAG=            1aa21e6bd85ec45a6bce9b570548b6f4a5b1a9ed
+
+MAINTAINER=            schmonz%NetBSD.org@localhost
+HOMEPAGE=              https://github.com/younix/ucspi/
+COMMENT=               SOCKS proxy and TLS support for UCSPI
+LICENSE=               isc
+
+USE_TOOLS+=            gmake pkg-config
+
+WRKSRC=                        ${WRKDIR}/ucspi-${GITHUB_TAG}
+
+INSTALL_MAKE_FLAGS+=   MANDIR=${DESTDIR:Q}${PREFIX:Q}/${PKGMANDIR}
+
+.include "../../security/libressl/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 6999d90b4b1a -r 5e5b65f79610 net/ucspi-tools/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/ucspi-tools/PLIST     Thu Nov 26 15:52:58 2020 +0000
@@ -0,0 +1,9 @@
+@comment $NetBSD: PLIST,v 1.1 2020/11/26 15:52:58 schmonz Exp $
+bin/httppc
+bin/sockc
+bin/tlsc
+bin/tlss
+man/man1/httppc.1
+man/man1/sockc.1
+man/man1/tlsc.1
+man/man1/tlss.1
diff -r 6999d90b4b1a -r 5e5b65f79610 net/ucspi-tools/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/ucspi-tools/distinfo  Thu Nov 26 15:52:58 2020 +0000
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2020/11/26 15:52:58 schmonz Exp $
+
+SHA1 (ucspi-tools-1.6-1aa21e6bd85ec45a6bce9b570548b6f4a5b1a9ed.tar.gz) = 9c090e9105e9211e89b033b11a804999c1de06c1
+RMD160 (ucspi-tools-1.6-1aa21e6bd85ec45a6bce9b570548b6f4a5b1a9ed.tar.gz) = 634ff34878c201bb9d8d72dca5ff544c717beb83
+SHA512 (ucspi-tools-1.6-1aa21e6bd85ec45a6bce9b570548b6f4a5b1a9ed.tar.gz) = 
f9d241dc63b2c8aa3f1b51a8c9f85c9408e6f888e1d02a7504c8654eb8fa2161842319683325c0a0f74c4ca0247584dd293aa07ffbcb1e4b81c02c63058c6dec
+Size (ucspi-tools-1.6-1aa21e6bd85ec45a6bce9b570548b6f4a5b1a9ed.tar.gz) = 21718 bytes
+SHA1 (patch-Makefile) = 229b9bf944ce88432c63e202c7c5f5898dd13a72
+SHA1 (patch-tlsc.c) = 3ae01739e614b2b8008e7bc4d5b01130edec2ff9
diff -r 6999d90b4b1a -r 5e5b65f79610 net/ucspi-tools/patches/patch-Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/ucspi-tools/patches/patch-Makefile    Thu Nov 26 15:52:58 2020 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-Makefile,v 1.1 2020/11/26 15:52:58 schmonz Exp $
+
+Make sure libressl headers get found.
+
+--- Makefile.orig      2016-09-21 22:05:29.000000000 +0000
++++ Makefile
+@@ -6,7 +6,8 @@ TARBALL := ${DISTNAME}.tar.gz
+ DEFINES += -D_XOPEN_SOURCE=700
+ DEFINES += -D_BSD_SOURCE
+ CFLAGS_SSL=`pkg-config --cflags libssl`
+-LIBS_TLS ?= -ltls `pkg-config --libs libssl`
++CFLAGS += $(CFLAGS_SSL)
++LIBS_TLS ?= -ltls `pkg-config --libs libssl openssl`
+ LIBS_SSL = `pkg-config --libs libssl openssl`
+ 
+ .PHONY: all test clean install
diff -r 6999d90b4b1a -r 5e5b65f79610 net/ucspi-tools/patches/patch-tlsc.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/ucspi-tools/patches/patch-tlsc.c      Thu Nov 26 15:52:58 2020 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-tlsc.c,v 1.1 2020/11/26 15:52:58 schmonz Exp $
+
+Avoid non-portable execvpe().
+
+--- tlsc.c.orig        2016-09-21 22:05:29.000000000 +0000
++++ tlsc.c
+@@ -252,8 +252,8 @@ main(int argc, char *argv[], char *envp[
+ 
+               if (close(pi[PIPE_WRITE]) < 0) err(EXIT_FAILURE, "close");
+               if (close(po_read) < 0) err(EXIT_FAILURE, "close");
+-              execvpe(prog, argv, environ);
+-              err(EXIT_FAILURE, "execvpe");
++              execvp(prog, argv);
++              err(EXIT_FAILURE, "execvp");
+       default: break; /* parent */
+       }
+ 



Home | Main Index | Thread Index | Old Index