--- nstreams-1.0.3.orig/Makefile +++ nstreams-1.0.3/Makefile @@ -10,14 +10,14 @@ install : all - $(INSTALL) -m 0755 -d ${prefix}/bin - $(INSTALL) -m 0755 src/nstreams ${prefix}/bin - $(INSTALL) -m 0755 -d ${prefix}/man - $(INSTALL) -m 0755 -d ${prefix}/man/man1 - $(INSTALL) -m 0444 docs/nstreams.1 ${prefix}/man/man1/ + $(INSTALL) -m 0755 -d ${prefix}/usr/bin + $(INSTALL) -m 0755 src/nstreams ${prefix}/usr/bin + $(INSTALL) -m 0755 -d ${prefix}/usr/share/man + $(INSTALL) -m 0755 -d ${prefix}/usr/share/man/man1 + $(INSTALL) -m 0444 docs/nstreams.1 ${prefix}/usr/share/man/man1/ if [ -f ${prefix}/etc/nstreams-services ]; then mv ${prefix}/etc/nstreams-services ${prefix}/etc/nstreams-services.old;fi - $(INSTALL) -m 0644 docs/nstreams-services ${prefix}/etc/nstreams-services - $(INSTALL) -m 0644 docs/nstreams-networks ${prefix}/etc/nstreams-networks.sample + $(INSTALL) -m 0644 docs/nstreams-services ${prefix}/etc/nstreams/nstreams-services + $(INSTALL) -m 0644 docs/nstreams-networks ${prefix}/etc/nstreams/nstreams-networks distclean : clean rm -f includes/config.h config.cache config.status config.log nstreams.tmpl --- nstreams-1.0.3.orig/configure +++ nstreams-1.0.3/configure @@ -117,6 +117,7 @@ *=*) ;; *) ac_optarg=yes ;; esac + eval "enable_${ac_feature}='$ac_optarg'" ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ @@ -522,7 +523,7 @@ fi -# From configure.in Revision: 1.1.1.1 ac_aux_dir= ++ # From configure.in Revision: 1.7 ac_aux_dir= for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do if test -f $ac_dir/install-sh; then ac_aux_dir=$ac_dir @@ -1133,13 +1134,13 @@ test "$prefix" = NONE && prefix=/usr/local -sysconfdir=${prefix}/etc +#sysconfdir=${prefix}/etc cat >> confdefs.h <> confdefs.h < +Build-Depends: debhelper (>> 4.0.0), libpcap-dev +Standards-Version: 3.5.6.1 + +Package: nstreams +Architecture: any +Depends: ${shlibs:Depends} +Recommends: tcpdump +Description: network streams - a tcpdump output analyzer + Nstreams is a utility designed to identify the IP streams that are + occurring on a network from a non-user friendly tcpdump output of + several megabytes. This is especially useful when you plan to install + a firewall but if you do not know the nstreams that the network users + are generating (http, real audio, and more...). + . + Nstreams can read the tcpdump output directly from stdin, or from a file. + It can even generate the configuration file of your firewall. --- nstreams-1.0.3.orig/debian/rules +++ nstreams-1.0.3/debian/rules @@ -0,0 +1,79 @@ +#!/usr/bin/make -f + +export DH_COMPAT=4 + +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +PACKAGE := nstreams +pwd=$(shell pwd) + +TOPDIR := $(shell pwd) +t = ${TOPDIR}/debian/nstreams + +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) + CFLAGS += -g +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +config.status: configure + dh_testdir + ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \ + --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --sysconfdir=/etc + + +build: build-stamp + +build-stamp: config.status + dh_testdir + + $(MAKE) + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + -$(MAKE) distclean + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + $(MAKE) install prefix=$(CURDIR)/debian/nstreams + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installdocs + dh_installexamples + dh_installmenu + dh_installcron + dh_installman + dh_installinfo + dh_installchangelogs CHANGES + 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 clean binary-indep binary-arch binary install --- nstreams-1.0.3.orig/debian/watch +++ nstreams-1.0.3/debian/watch @@ -0,0 +1,5 @@ +# Example watch control file for uscan +# Rename this file to "watch" and then you can run the "uscan" command +# to check for upstream updates and more. +# Site Directory Pattern Version Script +cvs.nessus.org /pub/nstreams nstreams-(.*)\.tar\.gz debian --- nstreams-1.0.3.orig/debian/changelog +++ nstreams-1.0.3/debian/changelog @@ -0,0 +1,54 @@ +nstreams (1.0.3-2build1) intrepid; urgency=low + + * Rebuild for libpcap0.7 -> libpcap0.8 transition + + -- Emmet Hikory Sun, 29 Jun 2008 22:19:49 +0900 + +nstreams (1.0.3-2) unstable; urgency=low + + * Just a rebuild for the libpcap stuff. (closes: #156205) + + -- Joerg Jaspert Sun, 11 Aug 2002 16:50:51 +0200 + +nstreams (1.0.3-1) unstable; urgency=low + + * New upstream version. + + -- Joerg Jaspert Tue, 6 Aug 2002 23:50:29 +0200 + +nstreams (1.0.2-2) unstable; urgency=low + + * Applied Patch from Guillaume Morin which fixes the segfault + on ppc (and sparc i hope). (closes: #143988) + + -- Joerg Jaspert Tue, 6 Aug 2002 20:58:01 +0200 + +nstreams (1.0.2-1) unstable; urgency=low + + * New upstream release (closes: #143647) + * New Maintainer (closes: #143654) + * Spelling error in description is no more... (closes: #125191) + * Standards-Version up to 3.5.2 + * Added Build-Depends, this Package had none. + * Replaced debian/rules. It is now more like my other debian/rules. + * Added postrm Script to remove /etc/nstreams on purge if it still exists. (closes: #89477) + + -- Joerg Jaspert Sat, 20 Apr 2002 14:29:00 +0200 + +nstreams (1.0-2) unstable; urgency=low + + * Closes: #54041 + * Modified configure script to actually accept --sysconfdir parm + * Moved the maintainer conf files to /etc/nstreams/* + + -- Vaidhyanathan G Mayilrangam Tue, 4 Jan 2000 13:49:40 -0500 + +nstreams (1.0-1) unstable; urgency=low + + * Initial Release. + + * Modified the program to read /etc/nstreams/nstreams* instead of /etc/nstreams* + + -- Vaidhyanathan G Mayilrangam Tue, 23 Nov 1999 19:01:06 -0500 + + --- nstreams-1.0.3.orig/debian/postinst +++ nstreams-1.0.3/debian/postinst @@ -0,0 +1,11 @@ +#!/bin/sh -e + +if [ -e /etc/nstreams-services ]; then + mv /etc/nstreams-services /etc/nstreams/nstreams-services +fi + +if [ -e /etc/nstreams-networks ]; then + mv /etc/nstreams-networks /etc/nstreams/nstreams-networks +fi + +#DEBHELPER# --- nstreams-1.0.3.orig/debian/postrm +++ nstreams-1.0.3/debian/postrm @@ -0,0 +1,45 @@ +#! /bin/sh +# postrm script for nstreams +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' overwrit>r> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + purge) + if [ -d /etc/nstreams ]; then + rm -rf /etc/nstreams + fi + + ;; + + remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + + + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- nstreams-1.0.3.orig/debian/copyright +++ nstreams-1.0.3/debian/copyright @@ -0,0 +1,18 @@ +This package was debianized by Joerg Jaspert on +Sat, 20 Apr 2002 13:50:00 +0200. + +Previous Maintainer: Vaidhyanathan G Mayilrangam + +It was downloaded from ftp://cvs.nessus.org/pub/nstreams + +Upstream Author: Renaud Deraison + + +Copyright: + +This program is copyrighted by Renaud Deraison. +You are free to distribute this software under the terms of +the GNU General Public License. +On Debian systems, the complete text of the GNU General Public +License can be found in /usr/share/common-licenses/GPL file. +