--- nstreams-1.0.4.orig/Makefile
+++ nstreams-1.0.4/Makefile
@@ -4,21 +4,21 @@
nstreams :
cd src && ${MAKE}
-
+
clean :
cd src && ${MAKE} clean
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/
- 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 0755 -d ${DESTDIR}/${prefix}/bin
+ $(INSTALL) -m 0755 src/nstreams ${DESTDIR}${prefix}/bin
+ $(INSTALL) -m 0755 -d ${DESTDIR}${prefix}/share/man
+ $(INSTALL) -m 0755 -d ${DESTDIR}${prefix}/share/man/man1
+ $(INSTALL) -m 0444 docs/nstreams.1 ${DESTDIR}${prefix}/share/man/man1/
+ if [ -f ${DESTDIR}/${sysconfdir}/nstreams-services ]; then mv ${DESTDIR}${sysconfdir}/nstreams-services ${DESTDIR}${sysconfdir}/nstreams-services.old;fi
+ $(INSTALL) -m 0644 docs/nstreams-services ${DESTDIR}${sysconfdir}/nstreams/nstreams-services
+ $(INSTALL) -m 0644 docs/nstreams-networks ${DESTDIR}${sysconfdir}/nstreams/nstreams-networks
+
distclean : clean
rm -f includes/config.h config.cache config.status config.log nstreams.tmpl
-
+
--- nstreams-1.0.4.orig/configure
+++ nstreams-1.0.4/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 < Tue, 03 Apr 2018 12:37:05 +0000
+
+nstreams (1.0.4-1) unstable; urgency=medium
+
+ * New upstream version
+ * Bug fix: "debian/watch fails to report upstream's version", thanks
+ to Raphael Geissert (Closes: #450163).
+ * Bug fix: "please upgrade your watch file", thanks to Raphael Geissert
+ (Closes: #529131).
+ * Update from debhelper 4.0.0 to 9
+ * Standards-Version goes 3.5.6.1 (!) to 3.9.5
+ * Remove handling of *really* old config file locations
+
+ -- Joerg Jaspert Wed, 19 Feb 2014 13:03:52 +0100
+
+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.4.orig/debian/compat
+++ nstreams-1.0.4/debian/compat
@@ -0,0 +1 @@
+9
--- nstreams-1.0.4.orig/debian/control
+++ nstreams-1.0.4/debian/control
@@ -0,0 +1,21 @@
+Source: nstreams
+Section: net
+Priority: optional
+Maintainer: Ubuntu Developers
+XSBC-Original-Maintainer: Joerg Jaspert
+Build-Depends: debhelper (>= 9), libpcap-dev, autotools-dev
+Standards-Version: 3.9.5
+
+Package: nstreams
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc: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.4.orig/debian/copyright
+++ nstreams-1.0.4/debian/copyright
@@ -0,0 +1,30 @@
+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:
+
+Copyright (C) 1999 Herve Schauer Consultants and Renaud Deraison
+
+This program 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 program 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, write to the Free Software
+Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+On Debian systems, the complete text of the GNU General Public
+License can be found in /usr/share/common-licenses/GPL-2 file.
--- nstreams-1.0.4.orig/debian/dirs
+++ nstreams-1.0.4/debian/dirs
@@ -0,0 +1,3 @@
+usr/bin
+etc/nstreams
+usr/share/man/man1
--- nstreams-1.0.4.orig/debian/rules
+++ nstreams-1.0.4/debian/rules
@@ -0,0 +1,10 @@
+#!/usr/bin/make -f
+
+%:
+ dh $@ --with autotools_dev
+
+override_dh_auto_clean:
+ dh_testdir
+ dh_testroot
+ [ ! -f nstreams.tmpl ] || $(MAKE) distclean
+ dh_clean
--- nstreams-1.0.4.orig/debian/source/format
+++ nstreams-1.0.4/debian/source/format
@@ -0,0 +1 @@
+1.0
--- nstreams-1.0.4.orig/debian/watch
+++ nstreams-1.0.4/debian/watch
@@ -0,0 +1,3 @@
+version=3
+ftp://cvs.nessus.org/pub/nstreams/nstreams-(.*)\.tar\.gz
+http://www.hsc.fr/ressources/outils/nstreams/download/nstreams-(.*)\.tar\.gz
--- nstreams-1.0.4.orig/docs/nstreams.1
+++ nstreams-1.0.4/docs/nstreams.1
@@ -1,6 +1,6 @@
.TH nstreams 1 "July 1999" "nstreams" "Users Manuals"
.SH NAME
-network streams - a tcpdump output analyzer
+nstreams \- a tcpdump output analyzer
.SH SYNOPSIS
.B nstreams
[ -v ] [ -c
--- nstreams-1.0.4.orig/nstreams.tmpl.in
+++ nstreams-1.0.4/nstreams.tmpl.in
@@ -20,5 +20,7 @@
mandir=@mandir@
CC=@CC@
CFLAGS=@CFLAGS@ $(CWARN) -I$(includedir) -I$(rootdir)/includes
+LDFLAGS=@LDFLAGS@
DEFS=$(CFLAGS)
INSTALL=./install-sh -c
+DESTDIR=$(DESTDIR)
--- nstreams-1.0.4.orig/src/Makefile
+++ nstreams-1.0.4/src/Makefile
@@ -4,18 +4,18 @@
networks.o output.o read_pcap.o
COMPILE=$(CC) $(CFLAGS)
-LIBS=-lpcap
+LIBS=-lpcap $(LDFLAGS)
all : nstreams
nstreams : $(OBJS)
$(COMPILE) $(OBJS) -o nstreams $(LIBS)
-
+
nstreams.o : nstreams.c
$(COMPILE) -c nstreams.c
parse_tcpdump.o : parse_tcpdump.c
$(COMPILE) -c parse_tcpdump.c
-
+
read_pcap.o : read_pcap.c
$(COMPILE) -c read_pcap.c
@@ -24,16 +24,16 @@
ports.o : ports.c
$(COMPILE) -c ports.c
-
+
cache.o : cache.c
$(COMPILE) -c cache.c
-
+
networks.o : networks.c
$(COMPILE) -c networks.c
output.o : output.c output.h
$(COMPILE) -c output.c
-
-
+
+
clean :
rm -f $(OBJS) nstreams