blob: 20f362ed5b5d1dcaf322a75b58c4c88961607771 (
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
|
# $NetBSD: options.mk,v 1.6 2014/07/10 13:44:22 adam Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.miniupnpd
PKG_OPTIONS_REQUIRED_GROUPS= miniupnpd-fw
PKG_OPTIONS_GROUP.miniupnpd-fw= ipfilter ipfw pf
.if ${OPSYS} == "NetBSD"
PKG_SUGGESTED_OPTIONS+= ipfilter
.else
. if exists(/usr/include/net/pfvar.h) || exists(/usr/include/net/pf/pfvar.h)
PKG_SUGGESTED_OPTIONS+= pf
. else
PKG_SUGGESTED_OPTIONS+= ipfilter
. endif
.endif
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mipfilter)
FWNAME= ipf
.endif
.if !empty(PKG_OPTIONS:Mipfw)
FWNAME= ipfw
.endif
.if !empty(PKG_OPTIONS:Mpf)
FWNAME= pf
.endif
MAKE_ENV+= FWNAME=${FWNAME}
|