Date: Sat, 18 Aug 2018 09:06:53 +0000 (UTC) From: Babak Farrokhi <farrokhi@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r477487 - in head/security: . n2n n2n/files Message-ID: <201808180906.w7I96r7E037516@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: farrokhi Date: Sat Aug 18 09:06:53 2018 New Revision: 477487 URL: https://svnweb.freebsd.org/changeset/ports/477487 Log: New Port: security/n2n: Layer Two Peer-to-peer VPN Added: head/security/n2n/ head/security/n2n/Makefile (contents, props changed) head/security/n2n/distinfo (contents, props changed) head/security/n2n/files/ head/security/n2n/files/patch-Makefile (contents, props changed) head/security/n2n/files/patch-tuntap__freebsd.c (contents, props changed) head/security/n2n/pkg-descr (contents, props changed) Modified: head/security/Makefile Modified: head/security/Makefile ============================================================================== --- head/security/Makefile Sat Aug 18 08:52:24 2018 (r477486) +++ head/security/Makefile Sat Aug 18 09:06:53 2018 (r477487) @@ -423,6 +423,7 @@ SUBDIR += morphis SUBDIR += munge SUBDIR += mussh + SUBDIR += n2n SUBDIR += nacl SUBDIR += ncrack SUBDIR += ncrypt Added: head/security/n2n/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/n2n/Makefile Sat Aug 18 09:06:53 2018 (r477487) @@ -0,0 +1,33 @@ +# Created by: Babak Farrokhi <farrokhi@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= n2n +PORTVERSION= 2.4 +CATEGORIES= security net + +MAINTAINER= farrokhi@FreeBSD.org +COMMENT= Layer Two Peer-to-peer VPN + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= gmake ssl + +USE_GITHUB= yes +GH_ACCOUNT= ntop +GH_PROJECT= ${PORTNAME} + +PLIST_FILES= sbin/edge \ + sbin/supernode \ + man/man1/supernode.1.gz \ + man/man7/n2n.7.gz \ + man/man8/edge.8.gz + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/edge ${STAGEDIR}${PREFIX}/sbin + ${INSTALL_PROGRAM} ${WRKSRC}/supernode ${STAGEDIR}${PREFIX}/sbin + ${INSTALL_MAN} ${WRKSRC}/edge.8 ${STAGEDIR}${MANPREFIX}/man/man8 + ${INSTALL_MAN} ${WRKSRC}/supernode.1 ${STAGEDIR}${MANPREFIX}/man/man1 + ${INSTALL_MAN} ${WRKSRC}/n2n.7 ${STAGEDIR}${MANPREFIX}/man/man7 + +.include <bsd.port.mk> Added: head/security/n2n/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/n2n/distinfo Sat Aug 18 09:06:53 2018 (r477487) @@ -0,0 +1,3 @@ +TIMESTAMP = 1534574950 +SHA256 (ntop-n2n-2.4_GH0.tar.gz) = acbf5792935b84fb6516b9a2133a0f6f70023ee6ee4ca0d2d4248cab187f3c04 +SIZE (ntop-n2n-2.4_GH0.tar.gz) = 501614 Added: head/security/n2n/files/patch-Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/n2n/files/patch-Makefile Sat Aug 18 09:06:53 2018 (r477487) @@ -0,0 +1,13 @@ +--- Makefile.orig 2018-08-17 12:16:07 UTC ++++ Makefile +@@ -4,8 +4,8 @@ N2N_OSNAME=$(shell uname -p) + + ######## + +-CC=gcc +-DEBUG?=-g3 ++CC?=gcc ++#DEBUG?=-g3 + #OPTIMIZATION?=-O2 + WARN?=-Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs + Added: head/security/n2n/files/patch-tuntap__freebsd.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/n2n/files/patch-tuntap__freebsd.c Sat Aug 18 09:06:53 2018 (r477487) @@ -0,0 +1,20 @@ +--- tuntap_freebsd.c.orig 2018-08-18 08:16:29 UTC ++++ tuntap_freebsd.c +@@ -20,7 +20,7 @@ + + #ifdef __FreeBSD__ + +-void tun_close(tuntap_dev *device); ++void tuntap_close(tuntap_dev *device); + + /* ********************************** */ + +@@ -78,7 +78,7 @@ int tuntap_open(tuntap_dev *device /* ignored */, + + fd = popen(buf, "r"); + if(fd < 0) { +- tun_close(device); ++ tuntap_close(device); + return(-1); + } else { + int a, b, c, d, e, f; Added: head/security/n2n/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/n2n/pkg-descr Sat Aug 18 09:06:53 2018 (r477487) @@ -0,0 +1,10 @@ +n2n is a layer-two peer-to-peer virtual private network (VPN) which allows +users to exploit features typical of P2P applications at network instead of +application level. This means that users can gain native IP visibility +(e.g. two PCs belonging to the same n2n network can ping each other) and be +reachable with the same network IP address regardless of the network where +they currently belong. In a nutshell, as OpenVPN moved SSL from application +(e.g. used to implement the https protocol) to network protocol, n2n moves +P2P from application to network level. + +WWW: https://www.ntop.org/products/n2n/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808180906.w7I96r7E037516>