summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2007-05-09 13:39:11 +0000
committerobache <obache@pkgsrc.org>2007-05-09 13:39:11 +0000
commita3c370d457ebdb3aa6fdd5095f7b40e5369f6f2e (patch)
tree75e819393f79dbf4a87bfb04d24144446d94aae6 /net
parent282dd45e51912198710be2cde4346cec67f13738 (diff)
downloadpkgsrc-a3c370d457ebdb3aa6fdd5095f7b40e5369f6f2e.tar.gz
Update darkstat to 3.0.619.
Patch provided by MAINTAINER, Bartosz Kuzma in PR 36250. Changes from 3.0.540 to 3.0.619: - Decode DLT_PPP and DLT_PPP_SERIAL on NetBSD, patch courtesy of Bartosz Kuzma. - Don't use pcap_setnonblock(), with help from Colin Phipps. - Reduce the number of syscalls made. - Answer FAQ about graph axes / labels / scale. - Fix build on OpenBSD (thanks Chris!) and Solaris. - Commandline arg (-n) to disable promiscuous mode when sniffing, thanks to Chris Kuethe for the implementation. - Commandline arg (-r) to disable DNS resolver. - Track and report per-host last seen MAC address. - Move FAQ into manpage. - Implement display of start time and running time. - Web: implement sorting the hosts table by in/out/total. - Web: implement paging through the hosts table. - Web: implement full view of hosts table. - Don't die if the capture interface loses its IP address. - Make daemonize (previously -d) the default, and make -D the argument to suppress it. - Commandline arg (-l) to graph traffic entering/leaving the local network as opposed to just the local IP. v2 had this. - Allow configure-time override of CHROOT_DIR and PRIVDROP_USER. - Web: new color scheme.
Diffstat (limited to 'net')
-rw-r--r--net/darkstat/Makefile12
-rw-r--r--net/darkstat/distinfo10
-rw-r--r--net/darkstat/patches/patch-aa48
-rw-r--r--net/darkstat/patches/patch-ab19
4 files changed, 28 insertions, 61 deletions
diff --git a/net/darkstat/Makefile b/net/darkstat/Makefile
index e3186cfb1e4..0d819504ebc 100644
--- a/net/darkstat/Makefile
+++ b/net/darkstat/Makefile
@@ -1,24 +1,20 @@
-# $NetBSD: Makefile,v 1.3 2006/10/07 07:49:01 obache Exp $
+# $NetBSD: Makefile,v 1.4 2007/05/09 13:39:11 obache Exp $
#
-DISTNAME= darkstat-3.0.540
+DISTNAME= darkstat-3.0.619
CATEGORIES= net
MASTER_SITES= http://dmr.ath.cx/net/darkstat/
DIST_SUBDIR= darkstat
EXTRACT_SUFX= .tar.bz2
-MAINTAINER= bartosz@atom.eu.org
+MAINTAINER= bartosz.kuzma@gmail.com
HOMEPAGE= http://dmr.ath.cx/net/darkstat/
COMMENT= Network statistics gatherer
-SUBST_CLASSES+= conv_c
-SUBST_STAGE.conv_c= post-patch
-SUBST_FILES.conv_c= conv.c
-SUBST_SED.conv_c= -e 's,/var/empty,${PREFIX}/share/darkstat/chroot,'
-
BUILD_TARGET= darkstat
GNU_CONFIGURE= yes
+CONFIGURE_ARGS+= --with-chroot-dir=${PREFIX}/share/darkstat/chroot
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/darkstat
diff --git a/net/darkstat/distinfo b/net/darkstat/distinfo
index cd11fd59a99..629259f94ad 100644
--- a/net/darkstat/distinfo
+++ b/net/darkstat/distinfo
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.2 2006/10/07 07:49:01 obache Exp $
+$NetBSD: distinfo,v 1.3 2007/05/09 13:39:11 obache Exp $
-SHA1 (darkstat/darkstat-3.0.540.tar.bz2) = aaca2ba07c8479b7bf2393261b0093f568746766
-RMD160 (darkstat/darkstat-3.0.540.tar.bz2) = c9ee36a5381bfc26c81759f4cde6153abac4264c
-Size (darkstat/darkstat-3.0.540.tar.bz2) = 75293 bytes
-SHA1 (patch-aa) = 8f5de074e5a5fc7798a8c196f116f12417b81d83
+SHA1 (darkstat/darkstat-3.0.619.tar.bz2) = d38aeb6c6a77b324cd1e267625f40509b358a83a
+RMD160 (darkstat/darkstat-3.0.619.tar.bz2) = 39fc8fa9e49b7cfe73917d97a062cd8855f38828
+Size (darkstat/darkstat-3.0.619.tar.bz2) = 82508 bytes
+SHA1 (patch-ab) = afb531d2c041582c1c6d62c948e7b58ca7f6bd1c
diff --git a/net/darkstat/patches/patch-aa b/net/darkstat/patches/patch-aa
deleted file mode 100644
index 3175faab8b2..00000000000
--- a/net/darkstat/patches/patch-aa
+++ /dev/null
@@ -1,48 +0,0 @@
-$NetBSD: patch-aa,v 1.2 2006/10/07 07:49:01 obache Exp $
-
---- decode.c.orig 2006-08-07 02:26:32.000000000 +0200
-+++ decode.c
-@@ -54,6 +54,8 @@ static void decode_ether(u_char *, const
- const u_char *);
- static void decode_loop(u_char *, const struct pcap_pkthdr *,
- const u_char *);
-+static void decode_ppp(u_char *, const struct pcap_pkthdr *,
-+ const u_char *);
- static void decode_pppoe(u_char *, const struct pcap_pkthdr *,
- const u_char *);
- static void decode_linux_sll(u_char *, const struct pcap_pkthdr *,
-@@ -67,7 +69,10 @@ static const linkhdr_t linkhdrs[] = {
- { DLT_EN10MB, ETHER_HDR_LEN, decode_ether },
- { DLT_LOOP, NULL_HDR_LEN, decode_loop },
- { DLT_NULL, NULL_HDR_LEN, decode_loop },
-- { DLT_PPP, PPP_HDR_LEN, NULL },
-+ { DLT_PPP, PPP_HDR_LEN, decode_ppp },
-+#if defined(__NetBSD__)
-+ { DLT_PPP_SERIAL, PPP_HDR_LEN, decode_ppp },
-+#endif
- { DLT_FDDI, FDDI_HDR_LEN, NULL },
- { DLT_PPP_ETHER, PPPOE_HDR_LEN, decode_pppoe },
- { DLT_LINUX_SLL, SLL_HDR_LEN, decode_linux_sll },
-@@ -172,6 +177,22 @@ decode_loop(u_char *user _unused_,
- }
-
- static void
-+decode_ppp(u_char *user _unused_,
-+ const struct pcap_pkthdr *pheader,
-+ const u_char *pdata)
-+{
-+ pktsummary sm;
-+ memset(&sm, 0, sizeof(sm));
-+
-+ if (pdata[2] == 0x00 && pdata[3] == 0x21) {
-+ decode_ip(pdata + PPP_HDR_LEN, pheader->caplen - PPP_HDR_LEN, &sm);
-+ sm.time = pheader->ts.tv_sec;
-+ acct_for(&sm);
-+ } else
-+ verbosef("non-IP PPP packet; ignoring.");
-+}
-+
-+static void
- decode_pppoe(u_char *user _unused_,
- const struct pcap_pkthdr *pheader,
- const u_char *pdata)
diff --git a/net/darkstat/patches/patch-ab b/net/darkstat/patches/patch-ab
new file mode 100644
index 00000000000..05ed7be80bf
--- /dev/null
+++ b/net/darkstat/patches/patch-ab
@@ -0,0 +1,19 @@
+$NetBSD: patch-ab,v 1.1 2007/05/09 13:39:12 obache Exp $
+
+--- configure.orig 2007-04-29 12:19:45.000000000 +0200
++++ configure
+@@ -1702,13 +1702,7 @@ RULE="----------------------------------
+
+ # Check whether --with-chroot-dir was given.
+ if test "${with_chroot_dir+set}" = set; then
+- withval=$with_chroot_dir; if test \! -d "$withval" ; then
+- { { echo "$as_me:$LINENO: error: directory $withval doesn't exist" >&5
+-echo "$as_me: error: directory $withval doesn't exist" >&2;}
+- { (exit 1); exit 1; }; }
+- else
+- _chd="$withval"
+- fi
++ _chd=$with_chroot_dir
+ else
+ # Find an "empty" directory to serve as the chroot.
+ _chd="/var/empty"