From 5208c2675008efb521d2bea5e145ced1c1d5d3f6 Mon Sep 17 00:00:00 2001 From: Cheng-Lung Sung Date: Wed, 10 May 2006 02:37:49 +0000 Subject: - pflogx is a simple tool to export OpenBSD's packet filter logs to XML files. --- sysutils/Makefile | 1 + sysutils/pflogx/Makefile | 46 ++++++++++++++++++++++++++++++++++++++++++++++ sysutils/pflogx/distinfo | 3 +++ sysutils/pflogx/pkg-descr | 8 ++++++++ sysutils/pflogx/pkg-plist | 11 +++++++++++ 5 files changed, 69 insertions(+) create mode 100644 sysutils/pflogx/Makefile create mode 100644 sysutils/pflogx/distinfo create mode 100644 sysutils/pflogx/pkg-descr create mode 100644 sysutils/pflogx/pkg-plist diff --git a/sysutils/Makefile b/sysutils/Makefile index 226f4bd4fd58..a79750177f25 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -412,6 +412,7 @@ SUBDIR += perf SUBDIR += personality SUBDIR += pessulus + SUBDIR += pflogx SUBDIR += pfstat SUBDIR += pftop SUBDIR += phantom diff --git a/sysutils/pflogx/Makefile b/sysutils/pflogx/Makefile new file mode 100644 index 000000000000..9a028f930c38 --- /dev/null +++ b/sysutils/pflogx/Makefile @@ -0,0 +1,46 @@ +# ex:ts=8 +# New ports collection makefile for: pflogx +# Date created: May 10 2006 +# Whom: clsung +# +# $FreeBSD$ +# + +PORTNAME= pflogx +PORTVERSION= 0.86 +CATEGORIES= sysutils +MASTER_SITES= http://akldev.free.fr/pflogx/releases/ +DISTNAME= ${PORTNAME}_${PORTVERSION:S/.//} + +MAINTAINER= clsung@FreeBSD.org +COMMENT= Simple tool to export pf (packet filter) logs to XML files + +WRKSRC= ${WRKDIR}/${PORTNAME} + +OPTIONS= EXPAT "Ability to merge new events (require expat) " Off + +.include + +.if ${OSVERSION} < 600000 +IGNORE= only for 6.0 and above +.endif + +.if defined(WITH_EXPAT) +LIB_DEPENDS= expat:${PORTSDIR}/textproc/expat2 +MAKE_ARGS+= -DWITH_EXPAT \ + EXPAT_INCLUDEDIR=${LOCALBASE}/include \ + EXPAT_LIBDIR=${LOCALBASE}/lib +.endif + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/src/pflogx ${PREFIX}/bin +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/LICENSE ${DOCSDIR} + @${MKDIR} ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/dtd/* ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/xsl/* ${EXAMPLESDIR} +.endif + +.include diff --git a/sysutils/pflogx/distinfo b/sysutils/pflogx/distinfo new file mode 100644 index 000000000000..b5ea12eb5c7c --- /dev/null +++ b/sysutils/pflogx/distinfo @@ -0,0 +1,3 @@ +MD5 (pflogx_086.tar.gz) = 987b06e73650d540d0d094a83b90e2e1 +SHA256 (pflogx_086.tar.gz) = aac8dac14dc4cef6c02714051beaf0ac443fc8b3797c154a2b0ceb3edc97c578 +SIZE (pflogx_086.tar.gz) = 22369 diff --git a/sysutils/pflogx/pkg-descr b/sysutils/pflogx/pkg-descr new file mode 100644 index 000000000000..ce4c7cec4abc --- /dev/null +++ b/sysutils/pflogx/pkg-descr @@ -0,0 +1,8 @@ +pflogx is a simple tool to export OpenBSD's packet filter logs to XML files. +It reads a binary logfile generated by the pf logging daemon (pflogd) to +generate a human-readable and exploitable XML file. + +Using an XSLT processor you can convert this XML file to any other +format (HTML, CSV, SQL, ...). + +WWW: http://akldev.free.fr/pflogx/ diff --git a/sysutils/pflogx/pkg-plist b/sysutils/pflogx/pkg-plist new file mode 100644 index 000000000000..d87129444fc8 --- /dev/null +++ b/sysutils/pflogx/pkg-plist @@ -0,0 +1,11 @@ +bin/pflogx +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/LICENSE +%%PORTDOCS%%%%EXAMPLESDIR%%/export.dtd +%%PORTDOCS%%%%EXAMPLESDIR%%/export_csv.xsl +%%PORTDOCS%%%%EXAMPLESDIR%%/export_html.xsl +%%PORTDOCS%%%%EXAMPLESDIR%%/export_xhtml.xsl +%%PORTDOCS%%%%EXAMPLESDIR%%/first_date.xsl +%%PORTDOCS%%%%EXAMPLESDIR%%/last_date.xsl +%%PORTDOCS%%@dirrm %%DOCSDIR%% +%%PORTDOCS%%@dirrm %%EXAMPLESDIR%% -- cgit v1.2.3