# Created by: Maxim Ignatenko
# $FreeBSD: tags/RELEASE_10_2_0/net/userfw/Makefile 363323 2014-07-29 14:07:41Z wg $

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=	BSD2CLAUSE

SSP_UNSAFE=	kernel module does not support ssp
USES=		cmake:outsource kmod tar:xz
USE_LDCONFIG=	yes

.include <bsd.port.pre.mk>

.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
CMAKE_ARGS+=	-DKMODDIR="${KMODDIR}"

.include <bsd.port.post.mk>
