summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorpeter <peter>2008-06-15 14:03:22 +0000
committerpeter <peter>2008-06-15 14:03:22 +0000
commit0d44596eeac81b6990d31f4826d967731ec7ff4f (patch)
treeafac307b03c8d502f923fc4029888dc144048169 /security
parentaa02911829f6ea68ecbb7407298037a8f0ff6026 (diff)
downloadpkgsrc-0d44596eeac81b6990d31f4826d967731ec7ff4f.tar.gz
Add detection for pf 4.1 and 4.2.
Diffstat (limited to 'security')
-rw-r--r--security/pflkm/builtin.mk12
1 files changed, 10 insertions, 2 deletions
diff --git a/security/pflkm/builtin.mk b/security/pflkm/builtin.mk
index cb65df32e94..d9c4f4d99b2 100644
--- a/security/pflkm/builtin.mk
+++ b/security/pflkm/builtin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: builtin.mk,v 1.11 2007/02/22 19:27:08 wiz Exp $
+# $NetBSD: builtin.mk,v 1.12 2008/06/15 14:03:22 peter Exp $
BUILTIN_PKG:= pflkm
@@ -15,6 +15,10 @@ BUILTIN_FIND_FILES.EXE_PFCTL+= /sbin/pfctl
.if !defined(PF_VERSION)
PF_VERSION= 3.7 # package default
. if empty(H_PFLKM:M__nonexistent__)
+# OpenBSD 4.2: pf_statelist added
+_BLTN_PF_4_2!= ${GREP} -c pf_statelist ${H_PFLKM} || ${TRUE}
+# OpenBSD 4.1: PF_OSFP_INET6 added
+_BLTN_PF_4_1!= ${GREP} -c PF_OSFP_INET6 ${H_PFLKM} || ${TRUE}
# OpenBSD 3.8: pf_socket_lookup added
_BLTN_PF_3_8!= ${GREP} -c pf_socket_lookup ${H_PFLKM} || ${TRUE}
# OpenBSD 3.7: pf_threshold added
@@ -22,7 +26,11 @@ _BLTN_PF_3_7!= ${GREP} -c pf_threshold ${H_PFLKM} || ${TRUE}
# OpenBSD 3.6: pf_cksum_fixup added
_BLTN_PF_3_6!= ${GREP} -c pf_cksum_fixup ${H_PFLKM} || ${TRUE}
-. if ${_BLTN_PF_3_8} != "0"
+. if ${_BLTN_PF_4_2} != "0"
+PF_VERSION= 4.2
+. elif ${_BLTN_PF_4_1} != "0"
+PF_VERSION= 4.1
+. elif ${_BLTN_PF_3_8} != "0"
PF_VERSION= 3.8
. elif ${_BLTN_PF_3_7} != "0"
PF_VERSION= 3.7