Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Apr 2017 16:10:01 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r437939 - head/sysutils/pftop
Message-ID:  <201704071610.v37GA1j7031627@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Fri Apr  7 16:10:01 2017
New Revision: 437939
URL: https://svnweb.freebsd.org/changeset/ports/437939

Log:
  - Always check OPSYS along with OSVERSION
  
  Approved by:	portmgr blanket

Modified:
  head/sysutils/pftop/Makefile

Modified: head/sysutils/pftop/Makefile
==============================================================================
--- head/sysutils/pftop/Makefile	Fri Apr  7 16:06:12 2017	(r437938)
+++ head/sysutils/pftop/Makefile	Fri Apr  7 16:10:01 2017	(r437939)
@@ -18,7 +18,7 @@ ALTQ_DESC=	ALTQ support for queue statis
 
 .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-
 		${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}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201704071610.v37GA1j7031627>