aboutsummaryrefslogtreecommitdiff
path: root/sysutils/pftop
diff options
context:
space:
mode:
authorOliver Braun <obraun@FreeBSD.org>2004-03-09 00:06:49 +0000
committerOliver Braun <obraun@FreeBSD.org>2004-03-09 00:06:49 +0000
commit37383a75959a154195c4d1aea3bd2c046d260be4 (patch)
treed7367abc7fd2720c3933ff0e2b81d3df2b8246da /sysutils/pftop
parentc45b08e14765f05fc227c2cc18cad4404e18972b (diff)
downloadports-37383a75959a154195c4d1aea3bd2c046d260be4.tar.gz
ports-37383a75959a154195c4d1aea3bd2c046d260be4.zip
Notes
Diffstat (limited to 'sysutils/pftop')
-rw-r--r--sysutils/pftop/Makefile17
1 files changed, 10 insertions, 7 deletions
diff --git a/sysutils/pftop/Makefile b/sysutils/pftop/Makefile
index dd059a8effa4..953bc3b43a40 100644
--- a/sysutils/pftop/Makefile
+++ b/sysutils/pftop/Makefile
@@ -14,17 +14,10 @@ DISTNAME= ${PORTNAME}-${PORTVERSION}
MAINTAINER= max@love2party.net
COMMENT= Utility for real-time display of statistics for pf
-BUILD_DEPENDS= ${LOCALBASE}/include/pf/net/pfvar.h:${PORTSDIR}/security/pf
-.if defined(WITH_ALTQ) && (${WITH_ALTQ} == "yes")
-BUILD_DEPENDS+=${LOCALBASE}/include/pf/altq/altq.h:${PORTSDIR}/security/pf
-.endif
-RUN_DEPENDS= ${LOCALBASE}/modules/pf.ko:${PORTSDIR}/security/pf
-
MAN8= pftop.8
MANCOMPRESSED= no
-CFLAGS+= -I${LOCALBASE}/include/pf
MAKE_ARGS= LOCALBASE="${PREFIX}" OSLEVEL=34
.if defined(WITH_ALTQ) && (${WITH_ALTQ} == "yes")
CFLAGS+= -DHAVE_ALTQ=1
@@ -36,6 +29,16 @@ CFLAGS+= -DHAVE_ALTQ=1
IGNORE= "Only for 5.0 and above"
.endif
+.if ${OSVERSION} < 502106
+BUILD_DEPENDS= ${LOCALBASE}/include/pf/net/pfvar.h:${PORTSDIR}/security/pf
+.if defined(WITH_ALTQ) && (${WITH_ALTQ} == "yes")
+BUILD_DEPENDS+=${LOCALBASE}/include/pf/altq/altq.h:${PORTSDIR}/security/pf
+.endif
+RUN_DEPENDS= ${LOCALBASE}/modules/pf.ko:${PORTSDIR}/security/pf
+
+CFLAGS+= -I${LOCALBASE}/include/pf
+.endif
+
PLIST_FILES= sbin/pftop
do-install: