diff options
author | peter <peter@pkgsrc.org> | 2004-11-05 15:07:15 +0000 |
---|---|---|
committer | peter <peter@pkgsrc.org> | 2004-11-05 15:07:15 +0000 |
commit | 18bf35194170a3262ba86a0118e2a12dd69e88ea (patch) | |
tree | 82c5c7dc2374288ddeaec173ca2916542a91f5d5 | |
parent | 2e66b2ae1e89eafd9dab975d6f2c45f047e35b2e (diff) | |
download | pkgsrc-18bf35194170a3262ba86a0118e2a12dd69e88ea.tar.gz |
Initial import of pfstat-1.7 into the NetBSD Packages Collection.
Pfstat is a small utility that collects statistics for the OpenBSD
Packer Filter and produces graphs like mrtg, rrdtool or alike.
-rw-r--r-- | sysutils/pfstat/DESCR | 2 | ||||
-rw-r--r-- | sysutils/pfstat/Makefile | 21 | ||||
-rw-r--r-- | sysutils/pfstat/PLIST | 3 | ||||
-rw-r--r-- | sysutils/pfstat/distinfo | 5 | ||||
-rw-r--r-- | sysutils/pfstat/patches/patch-aa | 46 |
5 files changed, 77 insertions, 0 deletions
diff --git a/sysutils/pfstat/DESCR b/sysutils/pfstat/DESCR new file mode 100644 index 00000000000..1ef8bf246e0 --- /dev/null +++ b/sysutils/pfstat/DESCR @@ -0,0 +1,2 @@ +Pfstat is a small utility that collects statistics for the OpenBSD +Packer Filter and produces graphs like mrtg, rrdtool or alike. diff --git a/sysutils/pfstat/Makefile b/sysutils/pfstat/Makefile new file mode 100644 index 00000000000..db5e071539a --- /dev/null +++ b/sysutils/pfstat/Makefile @@ -0,0 +1,21 @@ +# $NetBSD: Makefile,v 1.1.1.1 2004/11/05 15:07:15 peter Exp $ + +DISTNAME= pfstat-1.7 +CATEGORIES= sysutils net +MASTER_SITES= http://www.benzedrine.cx/ + +MAINTAINER= peter@pointless.nl +HOMEPAGE= http://www.benzedrine.cx/pfstat.html +COMMENT= Utility to render graphical statistics for PF + +USE_BUILDLINK3= yes +NO_CONFIGURE= yes + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/pfstat ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/pfstat.8 ${PREFIX}/man/man8 + +.include "../../graphics/gd/buildlink3.mk" +.include "../../graphics/freetype-lib/buildlink3.mk" +.include "../../security/pflkm/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/sysutils/pfstat/PLIST b/sysutils/pfstat/PLIST new file mode 100644 index 00000000000..1755c888c3b --- /dev/null +++ b/sysutils/pfstat/PLIST @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2004/11/05 15:07:15 peter Exp $ +bin/pfstat +man/man8/pfstat.8 diff --git a/sysutils/pfstat/distinfo b/sysutils/pfstat/distinfo new file mode 100644 index 00000000000..9616baa3641 --- /dev/null +++ b/sysutils/pfstat/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2004/11/05 15:07:15 peter Exp $ + +SHA1 (pfstat-1.7.tar.gz) = 7bd125039c130a56a4dda3040d309d0f445d88b5 +Size (pfstat-1.7.tar.gz) = 9610 bytes +SHA1 (patch-aa) = 3be95865766518c91520379c68a06c4e73e7c118 diff --git a/sysutils/pfstat/patches/patch-aa b/sysutils/pfstat/patches/patch-aa new file mode 100644 index 00000000000..8f7f074d988 --- /dev/null +++ b/sysutils/pfstat/patches/patch-aa @@ -0,0 +1,46 @@ +$NetBSD: patch-aa,v 1.1.1.1 2004/11/05 15:07:15 peter Exp $ + +--- pfstat.c.orig 2003-09-10 19:45:27.000000000 +0200 ++++ pfstat.c 2004-06-08 13:36:51.000000000 +0200 +@@ -167,26 +167,26 @@ + } + close(dev); + if (s.running) { +- printf("%u %u", time(NULL), s.since); ++ printf("%u %u", (unsigned int)time(NULL), s.since); + printf(" %llu %llu %llu %llu", +- s.bcounters[0][0], +- s.bcounters[0][1], +- s.bcounters[1][0], +- s.bcounters[1][1]); ++ (unsigned long long)s.bcounters[0][0], ++ (unsigned long long)s.bcounters[0][1], ++ (unsigned long long)s.bcounters[1][0], ++ (unsigned long long)s.bcounters[1][1]); + printf(" %llu %llu %llu %llu %llu %llu %llu %llu", +- s.pcounters[0][0][PF_PASS], +- s.pcounters[0][0][PF_DROP], +- s.pcounters[0][1][PF_PASS], +- s.pcounters[0][1][PF_DROP], +- s.pcounters[1][0][PF_PASS], +- s.pcounters[1][0][PF_DROP], +- s.pcounters[1][1][PF_PASS], +- s.pcounters[1][1][PF_DROP]); ++ (unsigned long long)s.pcounters[0][0][PF_PASS], ++ (unsigned long long)s.pcounters[0][0][PF_DROP], ++ (unsigned long long)s.pcounters[0][1][PF_PASS], ++ (unsigned long long)s.pcounters[0][1][PF_DROP], ++ (unsigned long long)s.pcounters[1][0][PF_PASS], ++ (unsigned long long)s.pcounters[1][0][PF_DROP], ++ (unsigned long long)s.pcounters[1][1][PF_PASS], ++ (unsigned long long)s.pcounters[1][1][PF_DROP]); + printf(" %u", s.states); + for (i = 0; i < FCNT_MAX; ++i) +- printf(" %lld", s.fcounters[i]); ++ printf(" %lld", (long long)s.fcounters[i]); + for (i = 0; i < PFRES_MAX; ++i) +- printf(" %lld", s.counters[i]); ++ printf(" %lld", (long long)s.counters[i]); + printf("\n"); + } + return (0); |