diff options
author | jlam <jlam@pkgsrc.org> | 2006-03-30 16:58:16 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2006-03-30 16:58:16 +0000 |
commit | 9620b76fd21c1002a76f62a29f614ff5579a65de (patch) | |
tree | 91b38f438386adb45c726194ac8e144a729b9867 /security | |
parent | 9616a712c1575493079497f94a8c716dd1e268c5 (diff) | |
download | pkgsrc-9620b76fd21c1002a76f62a29f614ff5579a65de.tar.gz |
Export a publicly readable variable PFCTL that contains the path to the
"pfctl" binary.
Diffstat (limited to 'security')
-rw-r--r-- | security/pflkm/builtin.mk | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/security/pflkm/builtin.mk b/security/pflkm/builtin.mk index ac210903354..a162d1402a2 100644 --- a/security/pflkm/builtin.mk +++ b/security/pflkm/builtin.mk @@ -1,10 +1,11 @@ -# $NetBSD: builtin.mk,v 1.7 2005/12/07 12:06:26 peter Exp $ +# $NetBSD: builtin.mk,v 1.8 2006/03/30 16:58:16 jlam Exp $ BUILTIN_PKG:= pflkm -BUILTIN_FIND_FILES_VAR:= H_PFLKM +BUILTIN_FIND_FILES_VAR:= H_PFLKM EXE_PFCTL BUILTIN_FIND_FILES.H_PFLKM= /usr/include/net/pfvar.h BUILTIN_FIND_FILES.H_PFLKM+= /usr/include/net/pf/pfvar.h +BUILTIN_FIND_FILES.EXE_PFCTL+= /sbin/pfctl .include "../../mk/buildlink3/bsd.builtin.mk" @@ -92,3 +93,18 @@ USE_BUILTIN.pflkm!= \ . endif # PREFER.pflkm .endif MAKEVARS+= USE_BUILTIN.pflkm + +### +### The section below only applies if we are not including this file +### solely to determine whether a built-in implementation exists. +### +CHECK_BUILTIN.pflkm?= no +.if !empty(CHECK_BUILTIN.pflkm:M[nN][oO]) + +. if !empty(USE_BUILTIN.pflkm:M[nN][oO]) +PFCTL?= ${BUILDLINK_PREFIX.pflkm}/bin/pfctl +. else +PFCTL?= ${EXE_PFCTL} +. endif + +.endif # CHECK_BUILTIN.pflkm |