--- pcaputils-0.8.orig/debian/changelog +++ pcaputils-0.8/debian/changelog @@ -0,0 +1,96 @@ +pcaputils (0.8-1.1) unstable; urgency=medium + + * Non-maintainer upload. + + [ gregor herrmann ] + * Fix "Removal of obsolete debhelper compat 5 and 6 in bookworm": + Bump to 7 in debian/{compat,control}. + (Closes: #965769) + * Fix "missing required debian/rules targets build-arch and/or build- + indep": Add missing targets in debian/rules. + (Closes: #999325) + + [ Helmut Grohne ] + * Fix FTCBFS: Let dh_auto_build pass cross tools to make. (Closes: #901211) + + -- gregor herrmann Sun, 26 Dec 2021 01:22:56 +0100 + +pcaputils (0.8-1) unstable; urgency=low + + * New upstream release. + - pcapdump: support DLT_RAW; closes: #511948. + - Fix typo in pcapdump manpage; closes: #511326. + - Fix description in pcappick manpage; closes: #521158. + - Add -T / duration option to limit capture duration (from Stéphane + Bortzmeyer). + - Add -R / random option to do uniform probabilistic sampling (from + Stéphane Bortzmeyer). + + -- Robert S. Edmonds Sat, 09 May 2009 19:18:08 -0400 + +pcaputils (0.7-1) unstable; urgency=low + + * New upstream release. + - pcapdump: fix broken packet sampling. + + -- Robert S. Edmonds Sun, 25 May 2008 15:50:18 -0400 + +pcaputils (0.6-1) unstable; urgency=low + + * New upstream release. + - pcapdump: add -S / sample option to record a subset of captured packets. + - Fix parsing of cfgopt values to allow '=' in bpf expressions. + + -- Robert S. Edmonds Mon, 12 May 2008 12:49:19 -0400 + +pcaputils (0.5-1) unstable; urgency=low + + * New upstream release. + - pcapdump: correct packet bytes dumped calculation when using -H. + - pcapnet: remove inline declarations which caused FTBFS errors with + gcc-4.3. + + -- Robert S. Edmonds Tue, 25 Mar 2008 13:54:10 -0400 + +pcaputils (0.4-1) unstable; urgency=low + + * New upstream release. + - Add -r / readfile option to pcapdump to read from a saved trace file. + - Add -H / headersonly option to pcapdump which only writes link, + network, and transport headers to trace files. + + -- Robert S. Edmonds Tue, 25 Mar 2008 00:25:21 -0400 + +pcaputils (0.3-1) unstable; urgency=low + + * New upstream release. + + -- Robert S. Edmonds Sat, 08 Mar 2008 22:18:03 -0500 + +pcaputils (0.2-1) unstable; urgency=low + + * New upstream release. + - portable IP checksum implementation; closes: #469889. + + -- Robert S. Edmonds Fri, 07 Mar 2008 21:20:59 -0500 + +pcaputils (0.1-1) unstable; urgency=low + + * New upstream release. + * Add LSB info to init script; closes: #468368. + + -- Robert S. Edmonds Tue, 04 Mar 2008 15:49:33 -0500 + +pcaputils (0.0.2-1) unstable; urgency=low + + * New upstream release: + - Fix calculation in human_readable_rate() + - Remove empty #define on big endian arches (FTBFS); closes: #454252. + + -- Robert S. Edmonds Mon, 26 Nov 2007 17:13:58 -0500 + +pcaputils (0.0.1-1) unstable; urgency=low + + * Initial release; closes: #449322. + + -- Robert S. Edmonds Sat, 24 Nov 2007 22:45:46 -0500 --- pcaputils-0.8.orig/debian/compat +++ pcaputils-0.8/debian/compat @@ -0,0 +1 @@ +7 --- pcaputils-0.8.orig/debian/control +++ pcaputils-0.8/debian/control @@ -0,0 +1,26 @@ +Source: pcaputils +Section: net +Priority: extra +Maintainer: Robert S. Edmonds +Build-Depends: debhelper (>= 7), libpcap0.8-dev, libjudy-dev, docbook2x, docbook-xml +Standards-Version: 3.8.1 + +Package: pcaputils +Architecture: any +Depends: ${shlibs:Depends} +Description: specialized libpcap utilities + pcaputils includes the following libpcap-based utilities: + - pcapip: filters an input pcap file based on a file containing IP addresses + - pcappick: picks specific frames out of a pcap by number + - pcapuc: prints unique src IPs, dst IPs, or {src, dst} IP pairs witnessed + - pcapdump: a dedicated packet capture utility similar to dumpcap, but with + these features: + * logs packet dump and drop rates + * can run as a daemon + * can dynamically reload its configuration without dropping packets + * can be signalled to immediately rotate its capture output file + * can partition its output based on time intervals (e.g., start of hour or + start of day) + * can strip application data from the trace file (output headers only) + * can sample the packet stream (e.g., only dump every 1 in 10 or 1 in 100 + packets) --- pcaputils-0.8.orig/debian/copyright +++ pcaputils-0.8/debian/copyright @@ -0,0 +1,31 @@ +This package was debianized by Robert S. Edmonds on +Tue, 23 Oct 2007 17:27:01 -0400. + +Upstream Author: + Robert S. Edmonds + +Copyright: + Copyright (C) 2007, 2008 Robert S. Edmonds + +License: + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. + +The Debian packaging is (C) 2007, Robert S. Edmonds and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. --- pcaputils-0.8.orig/debian/examples/pcapdump/eth0 +++ pcaputils-0.8/debian/examples/pcapdump/eth0 @@ -0,0 +1,9 @@ +device=eth0 +bpf="ip" +interval=86400 +snaplen=1518 +promisc=0 +filefmt=/var/log/pcapdump/eth0.%Y%m%d.%H%M.%s.pcap +mode=0644 +owner=root +group=root --- pcaputils-0.8.orig/debian/pcaputils.dirs +++ pcaputils-0.8/debian/pcaputils.dirs @@ -0,0 +1,3 @@ +etc/pcapdump +usr/bin +var/log/pcapdump --- pcaputils-0.8.orig/debian/pcaputils.install +++ pcaputils-0.8/debian/pcaputils.install @@ -0,0 +1,4 @@ +src/pcapdump usr/bin +src/pcapip usr/bin +src/pcappick usr/bin +src/pcapuc usr/bin --- pcaputils-0.8.orig/debian/pcaputils.manpages +++ pcaputils-0.8/debian/pcaputils.manpages @@ -0,0 +1 @@ +doc/*.1 --- pcaputils-0.8.orig/debian/pcaputils.pcapdump.default +++ pcaputils-0.8/debian/pcaputils.pcapdump.default @@ -0,0 +1,2 @@ +ENABLED=0 +INSTANCES="eth0" --- pcaputils-0.8.orig/debian/pcaputils.pcapdump.init +++ pcaputils-0.8/debian/pcaputils.pcapdump.init @@ -0,0 +1,64 @@ +#!/bin/sh + +DAEMON=/usr/bin/pcapdump +NAME=pcapdump + +ENABLED=0 + +test -x $DAEMON || exit 0 + +test -f /etc/default/pcapdump && . /etc/default/pcapdump + +test "$ENABLED" != "0" || exit 0 +test ! -z "$INSTANCES" || exit 0 + +mkdir -p /var/run/pcapdump + +for INSTANCE in $INSTANCES; do + + PIDFILE="/var/run/pcapdump/$INSTANCE.pid" + OPTIONS="-C /etc/pcapdump/$INSTANCE -P $PIDFILE" + + case "$1" in + start) + echo -n "Starting $NAME: " + start-stop-daemon --start --pidfile $PIDFILE \ + --name $NAME --oknodo --startas $DAEMON \ + -- $OPTIONS + echo "$INSTANCE." + ;; + + stop) + echo -n "Stopping $NAME: " + start-stop-daemon --stop --pidfile $PIDFILE --name $NAME --oknodo + echo "$INSTANCE." + ;; + + restart|force-reload) + echo -n "Restarting $NAME: " + start-stop-daemon --stop --pidfile $PIDFILE --name $NAME \ + --retry 30 --oknodo + start-stop-daemon --start --pidfile $PIDFILE \ + --name $NAME --oknodo --startas $DAEMON \ + -- $OPTIONS + echo "$INSTANCE." + ;; + + *) + N=/etc/init.d/$NAME + echo "Usage: $N {start|stop|restart|force-reload}" >&2 + exit 1 + ;; + esac + +done + +exit 0 + +### BEGIN INIT INFO +# Provides: pcapdump +# Required-Start: $network $remote_fs $syslog +# Required-Stop: $network $remote_fs $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +### END INIT INFO --- pcaputils-0.8.orig/debian/pcaputils.postrm +++ pcaputils-0.8/debian/pcaputils.postrm @@ -0,0 +1,7 @@ +#!/bin/sh -e + +if [ "$1" = "purge" ]; then + rm -rf /etc/pcapdump /var/run/pcapdump +fi + +#DEBHELPER# --- pcaputils-0.8.orig/debian/rules +++ pcaputils-0.8/debian/rules @@ -0,0 +1,54 @@ +#!/usr/bin/make -f + +CFLAGS = -Wall +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +build: build-arch build-indep +build-arch: build-stamp +build-indep: build-stamp + +build-stamp: + dh_testdir + dh_auto_build -- CFLAGS="$(CFLAGS)" + $(MAKE) -C doc + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + $(MAKE) clean + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + dh_install + +binary-indep: build install +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples debian/examples/* + dh_installinit --name=pcapdump -- start 90 2 3 4 5 . stop 05 0 1 6 . + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build-indep build-arch build clean binary-indep binary-arch binary install