diff options
author | minskim <minskim@pkgsrc.org> | 2006-07-19 04:41:47 +0000 |
---|---|---|
committer | minskim <minskim@pkgsrc.org> | 2006-07-19 04:41:47 +0000 |
commit | b77e2fdd37c0ea586a27eff29e4b51f9c86c6f7f (patch) | |
tree | 170de59fecccf686fb77f8692c22130ac9416cd3 | |
parent | 4c09a7046a37710b750605348bba8c60f74347a3 (diff) | |
download | pkgsrc-b77e2fdd37c0ea586a27eff29e4b51f9c86c6f7f.tar.gz |
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.
-rw-r--r-- | net/darkstat/DESCR | 11 | ||||
-rw-r--r-- | net/darkstat/Makefile | 19 | ||||
-rw-r--r-- | net/darkstat/PLIST | 3 | ||||
-rw-r--r-- | net/darkstat/distinfo | 6 | ||||
-rw-r--r-- | net/darkstat/patches/patch-aa | 19 |
5 files changed, 58 insertions, 0 deletions
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) \ |