freebsd-ports/sysutils/pftop/Makefile

36 lines
727 B
Makefile

PORTNAME= pftop
PORTVERSION= 0.13
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
WWW= https://github.com/grembo/pftop/
LICENSE= BSD2CLAUSE
LIB_DEPENDS= libpfctl.so:net/libpfctl
USES= localbase uidfix
OPTIONS_DEFINE= ALTQ
ALTQ_DESC= ALTQ support for queue statistics
.include <bsd.port.options.mk>
MAKE_ARGS= LOCALBASE="${PREFIX}" MANDIR=${PREFIX}/share/man/man
CFLAGS+= -DHAVE_SNPRINTF=1 -DHAVE_VSNPRINTF=1
.if ${PORT_OPTIONS:MALTQ}
CFLAGS+= -DHAVE_ALTQ=1
.endif
MAKE_ARGS+= CSTD=gnu89
PLIST_FILES= sbin/pftop \
share/man/man8/pftop.8.gz
.include <bsd.port.mk>