diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-05-26 20:01:01 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-05-26 20:01:01 +0000 |
commit | d63a4cfa1b0415955ee62a38577f5e43886852d0 (patch) | |
tree | 12f5edaa9aa810c10c7b94c628a3c4a346ceb569 /sysutils/pftop | |
parent | 6f2d2ee5e4fadc58e5f1ddb58f063d7e6d72108e (diff) | |
download | ports-d63a4cfa1b0415955ee62a38577f5e43886852d0.tar.gz ports-d63a4cfa1b0415955ee62a38577f5e43886852d0.zip |
Fix building of sysutils/pftop on FreeBSD 12, where pcap-int.h has been
removed. This patches the affected files to use <pcap/pcap.h> instead.
Submitted by: woodsb02
Approved by: bapt
PR: 217219
MFH: 2017Q2
Notes
Notes:
svn path=/head/; revision=441813
Diffstat (limited to 'sysutils/pftop')
-rw-r--r-- | sysutils/pftop/Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sysutils/pftop/Makefile b/sysutils/pftop/Makefile index c2acd298df15..b3dcfc95e105 100644 --- a/sysutils/pftop/Makefile +++ b/sysutils/pftop/Makefile @@ -12,8 +12,6 @@ COMMENT= Utility for real-time display of statistics for pf LICENSE= BSD2CLAUSE -BROKEN_FreeBSD_12= fails to compile: sf-gencode.h: pcap-int.h: No such file or directory - OPTIONS_DEFINE= ALTQ ALTQ_DESC= ALTQ support for queue statistics @@ -61,6 +59,14 @@ post-patch: .if ${OPSYS} == DragonFly || ${OSVERSION} >= 1100070 @${REINPLACE_CMD} -e 's|altq/|net/&|' ${WRKSRC}/pftop.c .endif + @${REINPLACE_CMD} -e 's|#include .pcap-int.h.|#include <pcap/pcap.h>|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 |