summaryrefslogtreecommitdiff
path: root/net/ng_mikrotik_eoip/Makefile
blob: ca78c62b35d72170e8c826898f93acbf5fed059b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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.

PTABLE_MAKE_ARGS=	NO_LINEAR_HOOK_LOOKUP=1

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

do-install:
	${MKDIR} "${STAGEDIR}${KMODDIR}"
	${INSTALL_KLD} ${WRKSRC}/${PORTNAME}.ko "${STAGEDIR}${KMODDIR}"

.include <bsd.port.mk>