Index: head/sysutils/pftop/Makefile =================================================================== --- head/sysutils/pftop/Makefile (revision 520216) +++ head/sysutils/pftop/Makefile (revision 520217) @@ -1,69 +1,77 @@ # Created by: Max Laier # $FreeBSD$ PORTNAME= pftop PORTVERSION= 0.7 -PORTREVISION= 8 +PORTREVISION= 9 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 -BROKEN= unfetchable - LICENSE= BSD2CLAUSE +USE_GITHUB= yes +GH_ACCOUNT= araujobsd + OPTIONS_DEFINE= ALTQ ALTQ_DESC= ALTQ support for queue statistics .include EXTRA_PATCHES+= ${FILESDIR}/extra-patch-bpf_dump.c \ ${FILESDIR}/extra-patch-sf-gencode.h -MAKE_ARGS= LOCALBASE="${PREFIX}" OSLEVEL=45 +MAKE_ARGS= LOCALBASE="${PREFIX}" \ + OSLEVEL=45 CFLAGS+= -DHAVE_SNPRINTF=1 -DHAVE_VSNPRINTF=1 \ -DHAVE_FINE_GRAINED_LOCKING=1 + .if ${PORT_OPTIONS:MALTQ} CFLAGS+= -DHAVE_ALTQ=1 .endif -EXTRA_PATCHES+= ${FILESDIR}/extra-patch-cache.c \ - ${FILESDIR}/extra-patch-cache.h \ + +EXTRA_PATCHES+= ${FILESDIR}/extra-patch-cache.c ${FILESDIR}/extra-patch-cache.h \ ${FILESDIR}/extra-patch-config.h \ ${FILESDIR}/extra-patch-pftop.c \ ${FILESDIR}/extra-patch-sf-gencode.c EXTRA_PATCHES+= ${FILESDIR}/extra-patch-engine.c MAKE_ARGS+= CSTD=gnu89 MAKE_ENV+= __MAKE_CONF=/dev/null -PLIST_FILES= sbin/pftop man/man8/pftop.8.gz +PLIST_FILES= sbin/pftop \ + man/man8/pftop.8.gz post-patch: @${ECHO_MSG} "===> Applying FairQ/Codel patches to ${PORTNAME}." @${CAT} ${FILESDIR}/extra-patch-fairq_codel.diff | \ ${PATCH} -d ${PATCH_WRKSRC} ${PATCH_ARGS} @${REINPLACE_CMD} -e 's||"${FILESDIR}/queue.h"|g' \ - ${WRKSRC}/engine.c - @${REINPLACE_CMD} -e 's|__dead|__dead2|g' ${WRKSRC}/sf-gencode.h - @${REINPLACE_CMD} -e 's|__dead|__dead2|g' ${WRKSRC}/sf-gencode.c + ${WRKSRC}/engine.c + @${REINPLACE_CMD} -e 's|__dead|__dead2|g' \ + ${WRKSRC}/sf-gencode.h + @${REINPLACE_CMD} -e 's|__dead|__dead2|g' \ + ${WRKSRC}/sf-gencode.c @${REINPLACE_CMD} -e 's|#include ||g' \ - ${WRKSRC}/sf-gencode.c - @${REINPLACE_CMD} -e 's|altq/|net/&|' ${WRKSRC}/pftop.c + ${WRKSRC}/sf-gencode.c + @${REINPLACE_CMD} -e 's|altq/|net/&|' \ + ${WRKSRC}/pftop.c @${REINPLACE_CMD} -e 's|#include .pcap-int.h.|#include |g' \ ${WRKSRC}/bpf_image.c \ ${WRKSRC}/bpf_optimize.c \ ${WRKSRC}/pcap-nametoaddr.c \ ${WRKSRC}/sf-gencode.c \ ${WRKSRC}/sf-gencode.h \ ${WRKSRC}/sf-grammer.y \ ${WRKSRC}/sf-scanner.l do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/pftop ${STAGEDIR}${PREFIX}/sbin - ${INSTALL_MAN} ${WRKSRC}/pftop.8 ${STAGEDIR}${MANPREFIX}/man/man8 + ${INSTALL_PROGRAM} ${WRKSRC}/pftop \ + ${STAGEDIR}${PREFIX}/sbin + ${INSTALL_MAN} ${WRKSRC}/pftop.8 \ + ${STAGEDIR}${MANPREFIX}/man/man8 .include Index: head/sysutils/pftop/distinfo =================================================================== --- head/sysutils/pftop/distinfo (revision 520216) +++ head/sysutils/pftop/distinfo (revision 520217) @@ -1,2 +1,3 @@ -SHA256 (pftop-0.7.tar.gz) = afde859fab77597e4aae1ef6b87f1bb26a5ad8cb2b1d7316a12e5098153492af -SIZE (pftop-0.7.tar.gz) = 59765 +TIMESTAMP = 1576472707 +SHA256 (araujobsd-pftop-0.7_GH0.tar.gz) = 965cda963082746d7c14bf062f0200baf5b365bebdbc11b0642715f905701e9c +SIZE (araujobsd-pftop-0.7_GH0.tar.gz) = 59594 Index: head/sysutils/pftop/pkg-descr =================================================================== --- head/sysutils/pftop/pkg-descr (revision 520216) +++ head/sysutils/pftop/pkg-descr (revision 520217) @@ -1,4 +1,4 @@ Pftop is a small, curses-based utility for real-time display of active states and rule statistics for pf, the packet filter (for OpenBSD) -WWW: http://www.eee.metu.edu.tr/~canacar/pftop/ +WWW: https://github.com/araujobsd/pftop/