sysutils/pftop: create a debug subpackage

This commit is contained in:
Kristof Provost
2025-05-08 09:45:19 +02:00
parent 5d33e9c4bd
commit 082bdf82b6
+9 -2
View File
@@ -1,14 +1,19 @@
PORTNAME= pftop
PORTVERSION= 0.12
PORTREVISION= 1
CATEGORIES= sysutils net
MASTER_SITES= https://github.com/grembo/pftop/releases/download/${DISTVERSION}/
MAINTAINER= grembo@FreeBSD.org
COMMENT= Utility for real-time display of statistics for pf
COMMENT.debug= Debug files for pftop
WWW= https://github.com/grembo/pftop/
LICENSE= BSD2CLAUSE
SUBPACKAGES= debug
SELF_DEPENDS.debug= main
LIB_DEPENDS= libpfctl.so:net/libpfctl
USES= localbase uidfix
@@ -19,9 +24,9 @@ ALTQ_DESC= ALTQ support for queue statistics
.include <bsd.port.options.mk>
MAKE_ARGS= LOCALBASE="${PREFIX}" MANDIR=${PREFIX}/share/man/man
MAKE_ARGS= LOCALBASE="${PREFIX}" MANDIR=${PREFIX}/share/man/man MK_DEBUG_FILES=yes
CFLAGS+= -DHAVE_SNPRINTF=1 -DHAVE_VSNPRINTF=1
CFLAGS+= -g -DHAVE_SNPRINTF=1 -DHAVE_VSNPRINTF=1
.if ${PORT_OPTIONS:MALTQ}
CFLAGS+= -DHAVE_ALTQ=1
@@ -31,5 +36,7 @@ MAKE_ARGS+= CSTD=gnu89
PLIST_FILES= sbin/pftop \
share/man/man8/pftop.8.gz
PLIST_FILES.debug= \
sbin/.debug/pftop.debug
.include <bsd.port.mk>