aboutsummaryrefslogtreecommitdiff
path: root/sysutils/pftop
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2017-04-07 16:10:01 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2017-04-07 16:10:01 +0000
commit7aba966cef7db9df59ec405e8ff8126d6aeb5d51 (patch)
treeb7a71cd26e11cd987fb4febd221c5bbd0f6e2bb5 /sysutils/pftop
parenta0698296ac9b4ed78b230a2ca728692dcad4a219 (diff)
downloadports-7aba966cef7db9df59ec405e8ff8126d6aeb5d51.tar.gz
ports-7aba966cef7db9df59ec405e8ff8126d6aeb5d51.zip
Notes
Diffstat (limited to 'sysutils/pftop')
-rw-r--r--sysutils/pftop/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysutils/pftop/Makefile b/sysutils/pftop/Makefile
index da004afd5397..ff15b63cd171 100644
--- a/sysutils/pftop/Makefile
+++ b/sysutils/pftop/Makefile
@@ -18,7 +18,7 @@ ALTQ_DESC= ALTQ support for queue statistics
.include <bsd.port.pre.mk>
-.if ${OSVERSION} >= 1100080
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1100080
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-bpf_dump.c \
${FILESDIR}/extra-patch-sf-gencode.h
.endif
@@ -33,7 +33,7 @@ EXTRA_PATCHES+= ${FILESDIR}/extra-patch-cache.c \
${FILESDIR}/extra-patch-config.h \
${FILESDIR}/extra-patch-pftop.c \
${FILESDIR}/extra-patch-sf-gencode.c
-.if ${OSVERSION} > 1000017
+.if ${OPSYS} == FreeBSD && ${OSVERSION} > 1000017
CFLAGS+= -DHAVE_FINE_GRAINED_LOCKING=1
.endif
@@ -45,7 +45,7 @@ MAKE_ENV+= __MAKE_CONF=/dev/null
PLIST_FILES= sbin/pftop man/man8/pftop.8.gz
post-patch:
-.if ${OSVERSION} >= 1100000
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1100000
@${ECHO_MSG} "===> Applying FairQ/Codel patches to ${PORTNAME}."
@${CAT} ${FILESDIR}/extra-patch-fairq_codel.diff | \
${PATCH} -d ${PATCH_WRKSRC} ${PATCH_ARGS}