pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/pfstat Initial import of pfstat-1.7 into the ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/a956cf987d48
branches: trunk
changeset: 482940:a956cf987d48
user: peter <peter%pkgsrc.org@localhost>
date: Fri Nov 05 15:07:15 2004 +0000
description:
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.
diffstat:
sysutils/pfstat/DESCR | 2 +
sysutils/pfstat/Makefile | 21 ++++++++++++++++++
sysutils/pfstat/PLIST | 3 ++
sysutils/pfstat/distinfo | 5 ++++
sysutils/pfstat/patches/patch-aa | 46 ++++++++++++++++++++++++++++++++++++++++
5 files changed, 77 insertions(+), 0 deletions(-)
diffs (97 lines):
diff -r 8f2cd53cd6e1 -r a956cf987d48 sysutils/pfstat/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/pfstat/DESCR Fri Nov 05 15:07:15 2004 +0000
@@ -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 -r 8f2cd53cd6e1 -r a956cf987d48 sysutils/pfstat/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/pfstat/Makefile Fri Nov 05 15:07:15 2004 +0000
@@ -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@localhost
+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 -r 8f2cd53cd6e1 -r a956cf987d48 sysutils/pfstat/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/pfstat/PLIST Fri Nov 05 15:07:15 2004 +0000
@@ -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 -r 8f2cd53cd6e1 -r a956cf987d48 sysutils/pfstat/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/pfstat/distinfo Fri Nov 05 15:07:15 2004 +0000
@@ -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 -r 8f2cd53cd6e1 -r a956cf987d48 sysutils/pfstat/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/pfstat/patches/patch-aa Fri Nov 05 15:07:15 2004 +0000
@@ -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);
Home |
Main Index |
Thread Index |
Old Index