From abae4e8ac6913580650c069cc0e3c6dcf164d676 Mon Sep 17 00:00:00 2001 From: Antoine Brodin Date: Sat, 16 Jan 2010 17:08:22 +0000 Subject: [PATCH] Do not build netgraph kernel modules if WITHOUT_NETGRAPH is set in src.conf Submitted by: bf MFC after: 2 weeks --- sys/modules/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/modules/Makefile b/sys/modules/Makefile index c69356971ff4..fbd4941cf236 100644 --- a/sys/modules/Makefile +++ b/sys/modules/Makefile @@ -192,7 +192,7 @@ SUBDIR= ${_3dfx} \ ${_ncp} \ ${_ncv} \ ${_ndis} \ - netgraph \ + ${_netgraph} \ ${_nfe} \ nfscl \ nfsclient \ @@ -327,6 +327,10 @@ _random= random _ipfilter= ipfilter .endif +.if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES) +_netgraph= netgraph +.endif + .if ${MK_PF} != "no" || defined(ALL_MODULES) _pf= pf _pflog= pflog