From owner-svn-ports-head@freebsd.org Sat Aug 18 09:06:55 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4C616108A585; Sat, 18 Aug 2018 09:06:55 +0000 (UTC) (envelope-from farrokhi@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 020BE89E40; Sat, 18 Aug 2018 09:06:55 +0000 (UTC) (envelope-from farrokhi@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D5D5B15615; Sat, 18 Aug 2018 09:06:54 +0000 (UTC) (envelope-from farrokhi@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w7I96sUb037522; Sat, 18 Aug 2018 09:06:54 GMT (envelope-from farrokhi@FreeBSD.org) Received: (from farrokhi@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w7I96r7E037516; Sat, 18 Aug 2018 09:06:53 GMT (envelope-from farrokhi@FreeBSD.org) Message-Id: <201808180906.w7I96r7E037516@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: farrokhi set sender to farrokhi@FreeBSD.org using -f From: Babak Farrokhi Date: Sat, 18 Aug 2018 09:06:53 +0000 (UTC) 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 X-SVN-Group: ports-head X-SVN-Commit-Author: farrokhi X-SVN-Commit-Paths: in head/security: . n2n n2n/files X-SVN-Commit-Revision: 477487 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Aug 2018 09:06:55 -0000 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 +# $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 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/