debian/0000755000000000000000000000000011743343721007173 5ustar debian/watch0000644000000000000000000000010711743343701010220 0ustar version=3 http://softflowd.googlecode.com/files/softflowd-(.+).tar.gz debian/softflowd.default0000644000000000000000000000064211743343701012550 0ustar # # configuration for softflowd # # note: softflowd will not start without an interface configured. # The interface softflowd listens on. You may also use "any" to listen # on all interfaces. INTERFACE="" # Further options for softflowd, see "man softflowd" for details. # You should at least define a host and a port where the accounting # datagrams should be sent to, e.g. # OPTIONS="-n 127.0.0.1:9995" OPTIONS="" debian/compat0000644000000000000000000000000211743343701010367 0ustar 7 debian/changelog0000644000000000000000000000364211743343721011052 0ustar softflowd (0.9.9-1) unstable; urgency=low * New upstream version 0.9.9 - Drop patch 20-allow-any-interface.patch, applied upstream - Drop patch 21-fix-ipv6-v9-flow-creation.patch, applied upstream - Drop patch 40-manpage-fixes.patch, applied upstream - Drop patch 41-manpage-drop-url.patch, fixed upstram * Rewrite debian/copyright to copyright format 1.0 * New maintainer address * Update Homepage: information * Upgrade Standards-Version: to 3.9.3, no changes -- Christoph Biedl Tue, 17 Apr 2012 20:47:09 +0200 softflowd (0.9.8+hg20101101.b35a000870cc-1) unstable; urgency=low * Based on upstream changeset 205:b35a000870cc * Rework Debianisation, especially: - upgrade to Standards-Version 3.9.1 - use debhelper 7 - switch to dpkg-source 3.0 (quilt) format -- Christoph Biedl Mon, 07 Feb 2011 23:26:31 +0100 softflowd (0.9.8-3) unstable; urgency=low * Apply changeset 201:e416c63c4e01: "Swap nf9 last/first switched. They were reversed in the struct" (Closes: #611458) -- Christoph Biedl Sun, 30 Jan 2011 18:41:52 +0100 softflowd (0.9.8-2) unstable; urgency=low * Acknowledge NMU by Raphael Geissert, thanks. * Fix groff warning about softflowd.8. * Upgrade Standards-Version: 3.7.3 -> 3.8.4. * Fix restart target in initscript, thanks to rémi vila for the report. -- Christoph Biedl Mon, 22 Feb 2010 20:29:05 +0100 softflowd (0.9.8-1.1) unstable; urgency=low * Non-maintainer upload. * Fix bashism in init script (Closes: #530191). * Add watch file. -- Raphael Geissert Sat, 04 Jul 2009 20:06:10 -0500 softflowd (0.9.8-1) unstable; urgency=low * Initial release (Closes: #433954). -- Christoph Biedl Mon, 23 Jul 2007 14:46:02 +0200 debian/source/0000755000000000000000000000000011743343701010471 5ustar debian/source/format0000644000000000000000000000001411743343701011677 0ustar 3.0 (quilt) debian/softflowd.init0000644000000000000000000000703311743343701012070 0ustar #! /bin/sh ### BEGIN INIT INFO # Provides: softflowd # Required-Start: $network $remote_fs $syslog # Required-Stop: $network $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Flow-based network traffic analyser. ### END INIT INFO # Author: Christoph Biedl # Based on /etc/init.d/skeleton, written by # Miquel van Smoorenburg , # modified for Debian by Ian Murdock . PATH=/sbin:/usr/sbin:/bin:/usr/bin DAEMON=/usr/sbin/softflowd NAME=softflowd DESC="Flow-based network traffic analyser" DEFAULT=/etc/default/$NAME PIDFILE=/var/run/$NAME.pid PRIVDROP_CHROOT_DIR=/var/run/softflowd/chroot test -x "$DAEMON" || exit 0 # Include softflowd defaults if available INTERFACE= OPTIONS= [ -r "$DEFAULT" ] && . "$DEFAULT" # Load the VERBOSE setting and other rcS variables . /lib/init/vars.sh # Define LSB log_* functions. . /lib/lsb/init-functions case "$1" in start|restart|force-reload) if [ -z "$INTERFACE" ] ; then log_daemon_msg "NOT starting $DESC" "$NAME" log_action_msg "\nEdit $DEFAULT and define the INTERFACE variable" log_end_msg 1 exit 0 fi ;; esac [ -d "$PRIVDROP_CHROOT_DIR" ] || mkdir -p "$PRIVDROP_CHROOT_DIR" # # Function that starts the daemon/service # do_start() { # Return # 0 if daemon has been started # 1 if daemon was already running # 2 if daemon could not be started start-stop-daemon --start --quiet --pidfile $PIDFILE \ --exec $DAEMON --test > /dev/null || \ return 1 start-stop-daemon --start --quiet --pidfile $PIDFILE \ --exec $DAEMON -- -i "$INTERFACE" $OPTIONS || \ return 2 } # # Function that stops the daemon/service # do_stop() { # Return # 0 if daemon has been stopped # 1 if daemon was already stopped # 2 if daemon could not be stopped # other if a failure occurred start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 \ --pidfile $PIDFILE --name $NAME RETVAL="$?" [ "$RETVAL" = 2 ] && return 2 # Wait for children to finish too if this is a daemon that forks # and if the daemon is only ever run from this initscript. # If the above conditions are not satisfied then add some other code # that waits for the process to drop all resources that could be # needed by services started subsequently. A last resort is to # sleep for some time. start-stop-daemon --stop --quiet --oknodo --retry=0/30/KILL/5 \ --exec $DAEMON [ "$?" = 2 ] && return 2 # Many daemons don't delete their pidfiles when they exit. rm -f $PIDFILE return "$RETVAL" } case "$1" in start) [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME" do_start case "$?" in 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; esac ;; stop) [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME" do_stop case "$?" in 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;; 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;; esac ;; status) status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $? ;; restart|force-reload) log_daemon_msg "Restarting $DESC" "$NAME" do_stop case "$?" in 0|1) do_start case "$?" in 0) log_end_msg 0 ;; 1) log_end_msg 1 ;; # Old process is still running *) log_end_msg 1 ;; # Failed to start esac ;; *) # Failed to stop log_end_msg 1 ;; esac ;; *) echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2 exit 3 ;; esac : debian/copyright0000644000000000000000000001212311743343721011125 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: softflowd Upstream-Contact: Damien Miller Source: http://code.google.com/p/softflowd Files: * Copyright: 2002-2006 Damien Miller License: like-BSD-2-clause Files: closefrom.c Copyright: 2004 Todd C. Miller License: other Files: convtime.c Copyright: 2001 Kevin Steves License: like-BSD-2-clause Files: daemon.c Copyright: 1990, 1993 The Regents of the University of California. License: BSD-3-Clause Files: strlcat.c strlcpy.c Copyright: 1998 Todd C. Miller License: other Files: sys-tree.h Copyright: 2002 Niels Provos License: like-BSD-2-clause Files: debian/* Copyright: 2007-2012 Christoph Biedl License: GPL-2.0+ Comment: This is the BSD-2-clause license with "THE COPYRIGHT HOLDER OR CONTRIBUTORS" replaced by "THE AUTHOR". License: like-BSD-2-clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. License: other Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. . THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. License: BSD-3-Clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. License: GPL-2.0+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". debian/rules0000755000000000000000000000047411743343721010260 0ustar #!/usr/bin/make -f export DEB_BUILD_HARDENING=1 override_dh_auto_configure: autoreconf dh_auto_configure -- \ --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \ --prefix=/usr --mandir=\$${prefix}/share/man \ --infodir=\$${prefix}/share/info \ CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs" %: dh $@ debian/control0000644000000000000000000000135411743343721010601 0ustar Source: softflowd Section: net Priority: extra Maintainer: Christoph Biedl Build-Depends: debhelper (>= 7.0.50~), autoconf, autotools-dev, hardening-wrapper, libpcap0.8-dev, Standards-Version: 3.9.3 Homepage: http://code.google.com/p/softflowd/ Package: softflowd Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: Flow-based network traffic analyser Softflowd is a flow-based network traffic anaylser capable of Cisco Netflow data export. Softflowd semi-statefully tracks traffic flows recorded by listening on a network interface or by reading a packet capture file. These flows may be reported via NetFlow to a collecting host or summarised within softflowd itself. debian/patches/0000755000000000000000000000000011743343750010624 5ustar debian/patches/60-change-chroot-dir.patch0000644000000000000000000000074711743343750015375 0ustar From: Christoph Biedl Subject: Change PRIVDROP_CHROOT_DIR to a real location Forwarded: not-needed diff --git a/softflowd.h b/softflowd.h index b000214..82a5d9e 100644 --- a/softflowd.h +++ b/softflowd.h @@ -36,7 +36,7 @@ #endif #ifndef PRIVDROP_CHROOT_DIR -# define PRIVDROP_CHROOT_DIR "/var/empty" +# define PRIVDROP_CHROOT_DIR "/var/run/softflowd/chroot" #endif /* * Capture length for libpcap: Must fit the link layer header, plus debian/patches/series0000644000000000000000000000003311743343750012035 0ustar 60-change-chroot-dir.patch debian/softflowd.docs0000644000000000000000000000001411743343701012045 0ustar README TODO