From d86a91fc374b6d6d1445bdc5828237f34485b6a0 Mon Sep 17 00:00:00 2001 From: pi Date: Tue, 21 Oct 2014 05:25:33 +0000 Subject: New port: net/ng_mikrotik_eoip Netgraph node for Mikrotik Ethernet-over-IP tunneling support WWW: http://imax.in.ua/ng_mikrotik_eoip/ PR: 193420 Submitted by: gelraen.ua@gmail.com --- net/Makefile | 1 + net/ng_mikrotik_eoip/Makefile | 38 ++++++++++++++++++++++++++++++++++++++ net/ng_mikrotik_eoip/distinfo | 2 ++ net/ng_mikrotik_eoip/pkg-descr | 3 +++ net/ng_mikrotik_eoip/pkg-plist | 2 ++ 5 files changed, 46 insertions(+) create mode 100644 net/ng_mikrotik_eoip/Makefile create mode 100644 net/ng_mikrotik_eoip/distinfo create mode 100644 net/ng_mikrotik_eoip/pkg-descr create mode 100644 net/ng_mikrotik_eoip/pkg-plist (limited to 'net') diff --git a/net/Makefile b/net/Makefile index 6c506ee96325..95e07467229b 100644 --- a/net/Makefile +++ b/net/Makefile @@ -392,6 +392,7 @@ SUBDIR += netwib SUBDIR += neubot SUBDIR += nfsshell + SUBDIR += ng_mikrotik_eoip SUBDIR += ngrep SUBDIR += nifmon SUBDIR += nload diff --git a/net/ng_mikrotik_eoip/Makefile b/net/ng_mikrotik_eoip/Makefile new file mode 100644 index 000000000000..14a3025cc26f --- /dev/null +++ b/net/ng_mikrotik_eoip/Makefile @@ -0,0 +1,38 @@ +# $FreeBSD$ + +PORTNAME= ng_mikrotik_eoip +PORTVERSION= 1.0 +CATEGORIES= net kld +MASTER_SITES= http://projects.ukrweb.net/files/ \ + http://imax.in.ua/files/ + +MAINTAINER= gelraen.ua@gmail.com +COMMENT= Netgraph node for Mikrotik EoIP tunneling + +LICENSE= BSD2CLAUSE + +SSP_UNSAFE= kernel module does not support ssp + +OPTIONS_DEFINE= PTABLE +PTABLE_DESC= Use O(1) lookup for tunnel hooks +# This option enables usage of static pointer table to find needed decimal-named hook, +# which increases memory usage for each node by 65536*sizeof(hook_p). You probably want +# this option if you have many tunnels with single remote IP. + +KMODDIR?= /boot/modules +PLIST_SUB+= KMODDIR=${KMODDIR} \ + PORTNAME=${PORTNAME} + +.include + +.if !exists(${SRC_BASE}/sys/sys/module.h) +IGNORE= requires kernel source files +.endif + +PTABLE_MAKE_ARGS= NO_LINEAR_HOOK_LOOKUP=1 + +do-install: + ${MKDIR} "${STAGEDIR}${KMODDIR}" + ${INSTALL_KLD} ${WRKSRC}/${PORTNAME}.ko "${STAGEDIR}${KMODDIR}" + +.include diff --git a/net/ng_mikrotik_eoip/distinfo b/net/ng_mikrotik_eoip/distinfo new file mode 100644 index 000000000000..32049025b929 --- /dev/null +++ b/net/ng_mikrotik_eoip/distinfo @@ -0,0 +1,2 @@ +SHA256 (ng_mikrotik_eoip-1.0.tar.gz) = 3180b68660d110fc217e3b5b5e4cc94bee69dee2933a811b5c0349ea644952c8 +SIZE (ng_mikrotik_eoip-1.0.tar.gz) = 4154 diff --git a/net/ng_mikrotik_eoip/pkg-descr b/net/ng_mikrotik_eoip/pkg-descr new file mode 100644 index 000000000000..244376af3903 --- /dev/null +++ b/net/ng_mikrotik_eoip/pkg-descr @@ -0,0 +1,3 @@ +Netgraph node for Mikrotik Ethernet-over-IP tunneling support + +WWW: http://imax.in.ua/ng_mikrotik_eoip/ diff --git a/net/ng_mikrotik_eoip/pkg-plist b/net/ng_mikrotik_eoip/pkg-plist new file mode 100644 index 000000000000..93eedc024fe9 --- /dev/null +++ b/net/ng_mikrotik_eoip/pkg-plist @@ -0,0 +1,2 @@ +@cwd / +%%KMODDIR%%/ng_mikrotik_eoip.ko -- cgit