From 0b4a1cea77415b3f4936ff572aa01f2c4bd531a6 Mon Sep 17 00:00:00 2001 From: minskim Date: Wed, 19 Jul 2006 04:41:47 +0000 Subject: Import darkstat from pkgsrc-wip. Packaged by Bartosz Kuzma. Effectively, it's a packet sniffer which runs as a background process on a cable/DSL router, gathers all sorts of useless but interesting statistics, and serves them over HTTP. Features: * Traffic graphs. * Tracks traffic per host. * Tracks traffic per TCP and UDP port for each host. * Embedded web-server with deflate compression. * Asynchronous reverse DNS resolution using a child process. * Small. Portable. Single-threaded. Efficient. --- net/darkstat/DESCR | 11 +++++++++++ net/darkstat/Makefile | 19 +++++++++++++++++++ net/darkstat/PLIST | 3 +++ net/darkstat/distinfo | 6 ++++++ net/darkstat/patches/patch-aa | 19 +++++++++++++++++++ 5 files changed, 58 insertions(+) create mode 100644 net/darkstat/DESCR create mode 100644 net/darkstat/Makefile create mode 100644 net/darkstat/PLIST create mode 100644 net/darkstat/distinfo create mode 100644 net/darkstat/patches/patch-aa (limited to 'net/darkstat') diff --git a/net/darkstat/DESCR b/net/darkstat/DESCR new file mode 100644 index 00000000000..b2c769a6f00 --- /dev/null +++ b/net/darkstat/DESCR @@ -0,0 +1,11 @@ +Effectively, it's a packet sniffer which runs as a background process +on a cable/DSL router, gathers all sorts of useless but interesting +statistics, and serves them over HTTP. + +Features: + * Traffic graphs. + * Tracks traffic per host. + * Tracks traffic per TCP and UDP port for each host. + * Embedded web-server with deflate compression. + * Asynchronous reverse DNS resolution using a child process. + * Small. Portable. Single-threaded. Efficient. diff --git a/net/darkstat/Makefile b/net/darkstat/Makefile new file mode 100644 index 00000000000..fae58cc8b7e --- /dev/null +++ b/net/darkstat/Makefile @@ -0,0 +1,19 @@ +# $NetBSD: Makefile,v 1.1.1.1 2006/07/19 04:41:47 minskim Exp $ +# + +DISTNAME= darkstat-3.0.524 +CATEGORIES= net +MASTER_SITES= http://dmr.ath.cx/net/darkstat/ +DIST_SUBDIR= darkstat +EXTRACT_SUFX= .tar.bz2 + +MAINTAINER= bartosz@atom.eu.org +HOMEPAGE= http://dmr.ath.cx/net/darkstat/ +COMMENT= Network statistics gatherer + +BUILD_TARGET= darkstat + +GNU_CONFIGURE= yes + +.include "../../net/libpcap/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/net/darkstat/PLIST b/net/darkstat/PLIST new file mode 100644 index 00000000000..88ac5bd61b1 --- /dev/null +++ b/net/darkstat/PLIST @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2006/07/19 04:41:47 minskim Exp $ +man/man1/darkstat.1 +sbin/darkstat diff --git a/net/darkstat/distinfo b/net/darkstat/distinfo new file mode 100644 index 00000000000..d110f5874e5 --- /dev/null +++ b/net/darkstat/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2006/07/19 04:41:47 minskim Exp $ + +SHA1 (darkstat/darkstat-3.0.524.tar.bz2) = df4822961ee2320fb4d5eeaed1083f1a157478c2 +RMD160 (darkstat/darkstat-3.0.524.tar.bz2) = 42380b23902cef4cc348fd1f736542dd17296b54 +Size (darkstat/darkstat-3.0.524.tar.bz2) = 74605 bytes +SHA1 (patch-aa) = f15405dd65381a564b920e958218a63d7bad5f2b diff --git a/net/darkstat/patches/patch-aa b/net/darkstat/patches/patch-aa new file mode 100644 index 00000000000..589b5e55014 --- /dev/null +++ b/net/darkstat/patches/patch-aa @@ -0,0 +1,19 @@ +$NetBSD: patch-aa,v 1.1.1.1 2006/07/19 04:41:47 minskim Exp $ + +--- queue.h.orig 2006-03-14 10:10:02.000000000 +0100 ++++ queue.h +@@ -51,12 +51,14 @@ struct { \ + + #define STAILQ_NEXT(elm, field) ((elm)->field.stqe_next) + ++#undef STAILQ_INSERT_TAIL + #define STAILQ_INSERT_TAIL(head, elm, field) do { \ + STAILQ_NEXT((elm), field) = NULL; \ + *(head)->stqh_last = (elm); \ + (head)->stqh_last = &STAILQ_NEXT((elm), field); \ + } while (0) + ++#undef STAILQ_REMOVE_HEAD + #define STAILQ_REMOVE_HEAD(head, field) do { \ + if ((STAILQ_FIRST((head)) = \ + STAILQ_NEXT(STAILQ_FIRST((head)), field)) == NULL) \ -- cgit v1.2.3