Author: kp
Date: Tue Apr 10 12:45:34 2018
New Revision: 332358
URL: https://svnweb.freebsd.org/changeset/base/332358

Log:
  pf tests: Do not build or install if pf is not enabled
  
  Do not build or install pf tests if WITHOUT_PF is set. This fixes the build
  failure with WITHOUT_PF=yes.
  
  Reported by:  Vladimir Zakharov <zakharov...@gmail.com>

Modified:
  head/tests/sys/netpfil/Makefile

Modified: head/tests/sys/netpfil/Makefile
==============================================================================
--- head/tests/sys/netpfil/Makefile     Tue Apr 10 10:27:55 2018        
(r332357)
+++ head/tests/sys/netpfil/Makefile     Tue Apr 10 12:45:34 2018        
(r332358)
@@ -1,7 +1,11 @@
 # $FreeBSD$
 
+.include <src.opts.mk>
+
 TESTSDIR=              ${TESTSBASE}/sys/netpfil
 
+.if ${MK_PF} != "no"
 TESTS_SUBDIRS+=                pf
+.endif
 
 .include <bsd.test.mk>
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to