summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorKurt Jaeger <pi@FreeBSD.org>2014-10-21 05:25:33 +0000
committerKurt Jaeger <pi@FreeBSD.org>2014-10-21 05:25:33 +0000
commita89add406ac0be90a9e28283f8de64cceb9e0829 (patch)
tree0274cecfb4e54294b01504544f73d80ff1f4cc7e /net
parent- Chase dovecot update in r371306 (diff)
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
Notes
Notes: svn path=/head/; revision=371308
Diffstat (limited to 'net')
-rw-r--r--net/Makefile1
-rw-r--r--net/ng_mikrotik_eoip/Makefile38
-rw-r--r--net/ng_mikrotik_eoip/distinfo2
-rw-r--r--net/ng_mikrotik_eoip/pkg-descr3
-rw-r--r--net/ng_mikrotik_eoip/pkg-plist2
5 files changed, 46 insertions, 0 deletions
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 <bsd.port.options.mk>
+
+.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 <bsd.port.mk>
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