1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-09 06:51:44 +00:00

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)
This commit is contained in:
Kurt Jaeger 2017-01-16 18:14:26 +00:00
parent 4f197cf3f8
commit 6863144244
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=431685
2 changed files with 22 additions and 25 deletions

View File

@ -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 \

View File

@ -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