1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

security/n2n: Update to 2.6

- Update to 2.6
- Pet portlint

Relnotes:	https://github.com/ntop/n2n/releases/tag/2.6
This commit is contained in:
Babak Farrokhi 2020-04-09 20:23:25 +00:00
parent da0b662a50
commit efd7d88a62
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=531269
6 changed files with 35 additions and 45 deletions

View File

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= n2n
PORTVERSION= 2.4
PORTVERSION= ${PORT_V_MAJOR}.${PORT_V_MINOR}
CATEGORIES= security net net-vpn
MAINTAINER= farrokhi@FreeBSD.org
@ -11,7 +11,12 @@ COMMENT= Layer Two Peer-to-peer VPN
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= gmake ssl
GNU_CONFIGURE= yes
USES= autoreconf gmake ssl
PORT_V_MAJOR= 2
PORT_V_MINOR= 6
PORT_V_PATCH= 0
USE_GITHUB= yes
GH_ACCOUNT= ntop
@ -22,6 +27,13 @@ PLIST_FILES= sbin/edge \
man/man7/n2n.7.gz \
man/man8/edge.8.gz
post-patch:
@${SED} -e "s/@N2N_MAJOR@/${PORT_V_MAJOR}/g" \
-e "s/@N2N_MINOR@/${PORT_V_MINOR}/g" \
-e "s/@N2N_PATCH@/${PORT_V_PATCH}/g" \
-e "s/@N2N_VERSION_SHORT@/${PORT_V_MAJOR}.${PORT_V_MINOR}.${PORT_V_PATCH}/g" \
${WRKSRC}/configure.seed >${WRKSRC}/configure.ac
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/edge ${STAGEDIR}${PREFIX}/sbin
${INSTALL_PROGRAM} ${WRKSRC}/supernode ${STAGEDIR}${PREFIX}/sbin

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1534574950
SHA256 (ntop-n2n-2.4_GH0.tar.gz) = acbf5792935b84fb6516b9a2133a0f6f70023ee6ee4ca0d2d4248cab187f3c04
SIZE (ntop-n2n-2.4_GH0.tar.gz) = 501614
TIMESTAMP = 1586460913
SHA256 (ntop-n2n-2.6_GH0.tar.gz) = d08a75cba32394e7077d8b3afdef913d61cdf5911141effb5cd3ee2d79c66bc2
SIZE (ntop-n2n-2.6_GH0.tar.gz) = 559529

View File

@ -1,13 +0,0 @@
--- 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

View File

@ -0,0 +1,11 @@
--- Makefile.in.orig 2020-04-09 19:38:26 UTC
+++ Makefile.in
@@ -6,7 +6,7 @@ GIT_COMMITS=@GIT_COMMITS@
########
CC?=gcc
-DEBUG?=-g3
+#DEBUG?=-g3
#OPTIMIZATION?=-O2
WARN?=-Wall

View File

@ -1,20 +0,0 @@
--- 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;

View File

@ -1,10 +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
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/