1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-20 08:27:15 +00:00

sysutils/pflogx: unbreak, fix compiler errors and warnings

Submitter becomes maintainer.

PR:		269371
This commit is contained in:
Peter Libassi 2023-02-06 14:36:48 +01:00 committed by Robert Clausecker
parent 718622a56c
commit 02cd17e8ff
5 changed files with 35 additions and 8 deletions

View File

@ -4,17 +4,13 @@ CATEGORIES= sysutils
MASTER_SITES= http://akldev.free.fr/pflogx/releases/
DISTNAME= ${PORTNAME}_${PORTVERSION:S/.//}
MAINTAINER= ports@FreeBSD.org
MAINTAINER= peter@libassi.se
COMMENT= Simple tool to export pf (packet filter) logs to XML files
WWW= http://akldev.free.fr/pflogx/
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BROKEN= fails to build
BROKEN_FreeBSD_13= does not build: error: unknown type name 'LIST_ENTRY'
BROKEN_FreeBSD_14= does not build: error: unknown type name 'LIST_ENTRY'
WRKSRC= ${WRKDIR}/${PORTNAME}
OPTIONS_DEFINE= EXPAT DOCS EXAMPLES

View File

@ -1,9 +1,12 @@
--- src/CmdLineParser.cpp.orig 2006-05-08 10:21:40 UTC
+++ src/CmdLineParser.cpp
@@ -31,6 +31,7 @@
@@ -31,6 +31,10 @@
#include "CmdLineParser.h"
#include "LogEntry.h"
#include "StrTools.h"
+#include <sys/param.h>
+#include <sys/queue.h>
+#include <sys/counter.h>
+#include <netpfil/pf/pf.h>
#include <unistd.h>
#include <vector>

View File

@ -1,10 +1,14 @@
--- src/LogEntryFormat.cpp.orig 2006-05-08 10:23:07 UTC
+++ src/LogEntryFormat.cpp
@@ -34,6 +34,7 @@
@@ -34,7 +34,10 @@
#include <time.h>
#include <netinet/in.h>
#include <arpa/inet.h>
-
+#include <sys/param.h>
+#include <sys/queue.h>
+#include <sys/counter.h>
+#include <netpfil/pf/pf.h>
#define STATIC_BUFFER_LEN 128

View File

@ -0,0 +1,13 @@
--- src/LogParser.cpp.orig 2006-02-17 15:40:13 UTC
+++ src/LogParser.cpp
@@ -240,8 +240,8 @@ bool cLogParser::FeedEntry(const struct pfloghdr* pfHe
return false;
- if (pfHeader->ifname)
- entry.SetIfName(pfHeader->ifname);
+ /* if (pfHeader->ifname) */
+ entry.SetIfName(pfHeader->ifname);
entry.SetRuleNumber(ntohl(pfHeader->rulenr));
entry.SetAction(pfHeader->action);

View File

@ -0,0 +1,11 @@
--- src/Makefile.orig 2006-04-25 19:27:56 UTC
+++ src/Makefile
@@ -8,7 +8,7 @@ OS!=uname -s
.if defined(DEBUG_MODE)
CXXFLAGS += -g -DDEBUG_MODE
.else
-CXXFLAGS += -s
+CXXFLAGS += -s -Qunused-arguments
.endif
# pf's include directory