diff options
author | pi <pi@FreeBSD.org> | 2017-01-17 02:14:26 +0800 |
---|---|---|
committer | pi <pi@FreeBSD.org> | 2017-01-17 02:14:26 +0800 |
commit | f04f51447ec2d8968fcdecc968e480e0d3eeebf5 (patch) | |
tree | 0903bcd3179b58c56a5a00bec7cadd918b984717 /sysutils/pftop/Makefile | |
parent | 594e8085963079396985604200f48ef68037aa82 (diff) | |
download | freebsd-ports-gnome-f04f51447ec2d8968fcdecc968e480e0d3eeebf5.tar.gz freebsd-ports-gnome-f04f51447ec2d8968fcdecc968e480e0d3eeebf5.tar.zst freebsd-ports-gnome-f04f51447ec2d8968fcdecc968e480e0d3eeebf5.zip |
sysutils/pftop: add ALTQ option, disable by default
- ALTQ is not in GENERIC and thus browsing through pftop modes the
queue view gives an error.
- While there, modernise the ATLQ disable patch, it is not a unified diff.
- Add LICENSE
PR: 215313
Submitted by: Franco Fichtner <franco@opnsense.org>
Approved by: araujo (maintainer)
Diffstat (limited to 'sysutils/pftop/Makefile')
-rw-r--r-- | sysutils/pftop/Makefile | 13 |
1 files changed, 11 insertions, 2 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 \ |