mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-19 03:52:17 +00:00
fb3520254a
- Trim header Reviewed by: beat, bapt, kwm
39 lines
954 B
Makefile
39 lines
954 B
Makefile
# Created by: Maxim Ignatenko
|
|
# $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= BSD
|
|
|
|
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
|
|
|
|
.if ${PORT_OPTIONS:MPTABLE}
|
|
MAKE_ARGS+= NO_LINEAR_HOOK_LOOKUP=1
|
|
.endif
|
|
|
|
do-install:
|
|
@${INSTALL_KLD} ${WRKSRC}/${PORTNAME}.ko ${KMODDIR}
|
|
|
|
.include <bsd.port.mk>
|