diff options
author | Kurt Jaeger <pi@FreeBSD.org> | 2017-01-16 18:14:26 +0000 |
---|---|---|
committer | Kurt Jaeger <pi@FreeBSD.org> | 2017-01-16 18:14:26 +0000 |
commit | 6863144244f782af73e8108f581322dbd862620b (patch) | |
tree | 0903bcd3179b58c56a5a00bec7cadd918b984717 /sysutils/pftop | |
parent | 4f197cf3f83da4960177b7fa914703d75b43e5e9 (diff) | |
download | ports-6863144244f782af73e8108f581322dbd862620b.tar.gz ports-6863144244f782af73e8108f581322dbd862620b.zip |
Notes
Diffstat (limited to 'sysutils/pftop')
-rw-r--r-- | sysutils/pftop/Makefile | 13 | ||||
-rw-r--r-- | sysutils/pftop/files/patch-config.h | 34 |
2 files changed, 22 insertions, 25 deletions
diff --git a/sysutils/pftop/Makefile b/sysutils/pftop/Makefile index 6b11205811e7..da004afd5397 100644 --- a/sysutils/pftop/Makefile +++ b/sysutils/pftop/Makefile @@ -3,13 +3,19 @@ PORTNAME= pftop PORTVERSION= 0.7 -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES= sysutils net MASTER_SITES= http://www.eee.metu.edu.tr/~canacar/ MAINTAINER= araujo@FreeBSD.org COMMENT= Utility for real-time display of statistics for pf +LICENSE= BSD2CLAUSE + +OPTIONS_DEFINE= ALTQ + +ALTQ_DESC= ALTQ support for queue statistics + .include <bsd.port.pre.mk> .if ${OSVERSION} >= 1100080 @@ -18,7 +24,10 @@ EXTRA_PATCHES+= ${FILESDIR}/extra-patch-bpf_dump.c \ .endif MAKE_ARGS= LOCALBASE="${PREFIX}" OSLEVEL=45 -CFLAGS+= -DHAVE_ALTQ=1 -DHAVE_SNPRINTF=1 -DHAVE_VSNPRINTF=1 +CFLAGS+= -DHAVE_SNPRINTF=1 -DHAVE_VSNPRINTF=1 +.if ${PORT_OPTIONS:MALTQ} +CFLAGS+= -DHAVE_ALTQ=1 +.endif EXTRA_PATCHES+= ${FILESDIR}/extra-patch-cache.c \ ${FILESDIR}/extra-patch-cache.h \ ${FILESDIR}/extra-patch-config.h \ diff --git a/sysutils/pftop/files/patch-config.h b/sysutils/pftop/files/patch-config.h index c6dda1ccc16d..8916971c854d 100644 --- a/sysutils/pftop/files/patch-config.h +++ b/sysutils/pftop/files/patch-config.h @@ -1,23 +1,11 @@ -*** config.h.orig Sat Jan 21 04:39:55 2006 ---- config.h Sat Jan 21 04:40:15 2006 -*************** -*** 23,31 **** - - #if OS_LEVEL > 32 - #define HAVE_ADDR_MASK - #define HAVE_ADDR_TYPE -! #define HAVE_ALTQ - #define HAVE_RULE_TOS - #define HAVE_OP_RRG - #endif - ---- 23,31 ---- - - #if OS_LEVEL > 32 - #define HAVE_ADDR_MASK - #define HAVE_ADDR_TYPE -! /* #define HAVE_ALTQ */ - #define HAVE_RULE_TOS - #define HAVE_OP_RRG - #endif - +--- config.h.orig 2016-11-02 12:16:30 UTC ++++ config.h +@@ -42,7 +42,7 @@ + #if OS_LEVEL > 32 + #define HAVE_ADDR_MASK + #define HAVE_ADDR_TYPE +-#define HAVE_ALTQ ++/* #define HAVE_ALTQ */ + #define HAVE_RULE_TOS + #define HAVE_OP_RRG + #endif |