# Created by: Maxim Ignatenko
# $FreeBSD: net/userfw/Makefile 327755 2013-09-20 22:10:23Z bapt $

PORTNAME=	userfw
PORTVERSION=	0.1.3
CATEGORIES=	net kld
MASTER_SITES=	http://userfw.net/files/release/ \
		http://imax.in.ua/files/ \
		http://projects.ukrweb.net/files/

MAINTAINER=	gelraen.ua@gmail.com
COMMENT=	Modular packet filter

LICENSE=	BSD

SSP_UNSAFE=	kernel module does not support ssp
USE_XZ=		yes
USES=		cmake:outsource
USE_LDCONFIG=	yes

KMODDIR?=	/boot/modules
PLIST_SUB+=	KMODDIR=${KMODDIR}

NO_STAGE=	yes
.include <bsd.port.pre.mk>

.if ${OSVERSION} < 800000
BROKEN=		does not compile on FreeBSD 7.x
.endif

.if !exists(${SRC_BASE}/sys/sys/module.h)
IGNORE=		requires kernel source files
.endif

.if ${ARCH} == "powerpc"
BROKEN=		Does not compile on powerpc
.endif

CMAKE_ARGS+=	-DDOMAIN_STUB:BOOL=OFF
CMAKE_ARGS+=	-DOPCODE_VERIFICATION:BOOL=OFF

.include <bsd.port.post.mk>
