Up to [cvs.NetBSD.org] / pkgsrc / net / darkstat
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
darkstat: update to 3.0.722.
Provided by Bartosz Kuzma in PR 60005.
v3.0.722 (20 Oct 2025)
- Add support for multiple -l args (thanks to catap)
v3.0.721 (12 Jan 2022)
- Replace xxd with hex-ify to reduce build dependencies.
v3.0.720 (10 Jan 2022)
- Improve graphs on mobile (thanks to Dallen Wilson).
- Add favicon, improve CSS (thanks to Daniel Aleksandersen).
- Export host statistics in Prometheus format on /metrics
(thanks to flowblok).
- Move to github.
darkstat: Fix building on Tiger
Follow some http -> https redirects.
Update darkstat to 3.0.719. From Bartosz Kuzma in PR pkg/50113. v3.0.719 (24 May 2015) - Implement tracking of remote ports: shows which ports the host is making outgoing connections to. Long time feature request. - Bugfix: when the capture interface goes down, exit instead of busy-looping forever. - Fix "clock error" due to machine reboot. - SIGUSR1 now resets the time and bytes reported on the graphs page. - Account for all IP protocols. - Change the default ports_max to only twice the default ports_keep.
Update darkstat to 3.0.718. per maintainer update request by PR pkg/49345. v3.0.718 (25 January 2014) - (SECURITY!) Don't chroot() by default. The user must specify a --chroot dir for this to happen now. - Bring back the "--base /path" functionality. - Add explicit warning about graphs being blank if we can't get local IPs on an interface. - Don't crash in timer_stop() if monotonic time stops or goes backwards. - Lots of internal cleanups. - Use time_t instead of "long" for time. This is more correct and should fix darkstat on OpenBSD 5.5 on 32-bit systems.
Updated net/darkstat to 3.0.717 (leaf package, mainly bugfixes, checked with MAINTAINER) v3.0.717 (14 August 2013) - (OS X only) Work around lack of clock_gettime(). - Fix crash due to str_appendf() not understanding %ld. v3.0.716 (8 August 2013) - Implement support for multiple capture interfaces. - Support multiple local IPs on an interface. - Only error out if we fail to create all HTTP sockets. In particular, this helps on IPv6-incapable platforms. - Use monotonic time over wall time where appropriate. - Portability fixes for NetBSD and OpenBSD.
PKGREVISION bumps for net/libpcap update.
Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days.
Update darkstat to 3.0.715.
per maintainer updater request by PR 46241.
v3.0.715 (January 2012)
- Compatibility fixes for Hurd and Solaris.
- Use link-time optimization and automake-like silent rules.
- Support systems without ifaddrs.h again.
- Continuing fixes for IPv6 support.
- Only update lastseen time for sender, not recipient.
- Implement --local-only: accounting for hosts on the local net.
- Make failure to bind() a socket non-fatal.
- Make failure to get local IP non-fatal.
- Fall back to gethostbyaddr() if getnameinfo() fails.
- Fix detection of IPv4 multicast addresses.
- Fix decoding on OpenBSD DLT_NULL interfaces (e.g. gif(4))
Update to 3.0.714, using patch from Bartosz Kuzma in PR 45095. While here, unset DIST_SUBDIR. Changes since 3.0.713: - IPv6 support! Big ups to Mats Erik Andersson who did most of this work! - Allow sort on last-seen, thanks to Dirk Koopman. - Support multiple bind addresses. - Add --disable-debug configure flag, thanks to Malte S. Stretz. - Make it possible to save the DB without resetting it (SIGUSR2). - Web: Use relative URLs, so darkstat works properly behind mod_proxy, thanks to Malte S. Stretz.
Update to 3.0.713 from maintainer. Changes: - Don't require --verbose for pcap_stats. - Survive interface going down on Linux. - Support DLT_RAW, implemented by Anton S. Ustyuzhanin. - Skip accounting for hosts or ports if their max is set to zero. - Implement --hexdump for troubleshooting. - Web: Implement --no-lastseen - Implement --snaplen manual override. - Fix snaplen problem on recent (1-2 years?) Linux kernels. - Implement --syslog - Implement --wait as a NetworkManager workaround.
Update darkstat to 3.0.712. Requested by maintainer in PR 40128. Changes since 3.0.711: - Web: Add --no-macs option to hide mac addresses. Thanks Dennis! - Web: Make tables prettier. - Host detail view now triggers a DNS lookup. - Manpage tweaks, also move from section 1 to section 8. - Track and show how long ago a host was last seen. Suggested by: Prof A Olowofoyeku (The African Chief) - Show pcap_stats (like number of packets dropped) in the web interface and also upon exit.
Update darkstat to 3.0.711 by mainteiner update request via PR 39401. Changes since 3.0.708: - Split --debug into --verbose and --no-daemon - Include launchd config and instructions for running darkstat on Mac OS X. Contributed by Damien Clauzel. - Implement PPPoE decoding on ethernet iface. (--pppoe) - Web: Add automatic reload button. Thanks Dennis! - Web: Add a graph legend with min/avg/max. - Web: Remove hashtable stats pages.
Update darkstat to 3.0.708. Based on MAINTAINER update request in PR 38930. While here, add DESTDIR support. Changes since 3.0.707: - Implement limiting of number of ports tracked per host, configurable on the commandline (--ports-max) - Optionally don't track high ports (--highest-port) Thanks Dennis! - Fix rare use-after-free resulting from hosts table reduction. - Make hosts limit configurable (--hosts-max) - Option to read from capfile as alternative to live capture (really only useful for development, benchmarking) - Add the sniffed interface name to HTML reports. Thanks Chris! - pkgsrc - add rc.d script
Update darkstat to 3.0.707. Patch provided by MAINTAINER, Bartosz Kuzma in PR 37052. Changes since 3.0.619: - Fix silly bug in formatting hex. - Check for pcap.h in include/pcap/ for old RedHat-a-likes. - New commandline parser. - To stay in foreground, pass --debug instead of -d. - We can now reset all statistics at runtime (send SIGUSR1) - Make chroot dir configurable on cmdline (--chroot) - Make privdrop user configurable on cmdline (--user) - Implement daylog (brings back a v2 feature) - Import and export hosts and graphs, this brings back a fairly major v2 feature. Big ups to Ben for doing a lot of the design and implementation of this feature! Note that the v3 database format is, by design, incompatible with the v2 format. - Report average KB/s in and out on graphs. Thanks to Damian Lozinski for suggestion and first cut at the implementation. - Fix graph rotation when the delay between rotations is big enough to clear an entire graph. - Make ip_proto 8 bits wide, to match the IP header. - Implement pidfile functionality for people who prefer to handle daemons in this manner.
Fix depending version of libpcap, need newer prototype for pcap_freenode. Bump PKGREVISION.
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.
Update darkstat to 3.0.540.
Patch provided by MAINTAINER, Bartosz Kuzma via PR 34158.
Changes from 3.0.524 to 3.0.540
- Fix build against old libpcap (thanks Claudio)
- Fix build on AIX (thanks Andreas)
- Fix build warnings on NetBSD (thanks Bartosz)
- Deny writes to BPF socket (thanks Can)
- Reverse-resolve IPs less aggressively.
- Free up the DNS queue as we process it.
- Fix dns_reply silliness.
- Web: tweak the look of the top bar.
- Web: update total packets and bytes as part of graph update.
- Decode DLT_LINUX_SLL (ippp0 on Linux),
patch courtesy of Ingo Bressler
pkgsrc specific changes:
- /var/empty has marked obsolete by etcupdate so I've changed
chroot dir for darkstat to ${PREFIX}/share/darkstat/chroot.
- patch-aa add support for DLT_PPP_SERIAL (for NetBSD only)
and DLT_PPP devices.
This package needs zlib.
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.
Initial revision