--- traffic-vis-0.34.orig/traffic-vis.8 +++ traffic-vis-0.34/traffic-vis.8 @@ -29,7 +29,7 @@ .I bpf(4) packet filter prior to collection. These packets are summarised and can be dumped to a file at any time. This summary is not intended for human -consumtion, and should be processed using the other tools in the suite to +consumption, and should be processed using the other tools in the suite to produce a report. .PP --- traffic-vis-0.34.orig/Makefile +++ traffic-vis-0.34/Makefile @@ -1,17 +1,17 @@ VERSION=0.34 # Install directories -SBINDIR=/usr/local/sbin -MANDIR=/usr/local/man +#SBINDIR=/usr/sbin +#MANDIR=/usr/share/man OPT_FLAGS=$(RPM_OPT_FLAGS) WARNFLAGS=-Wall -Wno-conversion -Waggregate-return -Wmissing-prototypes -Wstrict-prototypes DEBUGFLAGS=-g #-DDEBUG -INCLUDES=-I/usr/include/pcap -I/usr/lib/glib/include/ +INCLUDES=-I/usr/include/pcap $(shell glib-config --cflags) #-I/usr/lib/glib/include/ DEFINES= -DHAVE_GETOPT_LONG CFLAGS+= -DVERSION="\"$(VERSION)"\" $(DEFINES) $(WARNFLAGS) $(DEBUGFLAGS) $(INCLUDES) $(OPT_FLAGS) LFLAGS= -GLIB=-lglib +GLIB=$(shell glib-config --libs) #-lglib #GLIB=/usr/lib/libglib.a #DEBUGLIBS=-lefence --- traffic-vis-0.34.orig/collector/packet-parse.c +++ traffic-vis-0.34/collector/packet-parse.c @@ -21,8 +21,8 @@ #include #include #include -#include +#include #include #include "packet-headers.h" --- traffic-vis-0.34.orig/frontends/traffic-togif +++ traffic-vis-0.34/frontends/traffic-togif @@ -1,4 +1,4 @@ -#!/usr/bin/perl -w +#!/usr/bin/perl # traffic-togif # @@ -18,16 +18,18 @@ my $y_size = 750; my $traffic_tops = "/usr/sbin/traffic-tops"; -my $gs = "/usr/bin/ghostscript"; +###my $gs = "/usr/bin/ghostscript"; changed because ghostscript doesn't work my $pnmcrop = "/usr/bin/pnmcrop"; my $pnmscale = "/usr/bin/pnmscale"; my $ppmtogif = "/usr/bin/ppmtogif"; +my $pstopnm = "/usr/bin/pstopnm"; [ -x $traffic_tops ] || die "Cannot find traffic-tops.\n"; -[ -x $gs ] || die "Cannot find ghostscript.\n"; +###[ -x $gs ] || die "Cannot find ghostscript.\n"; [ -x $pnmcrop ] || die "Cannot find pnmcrop.\n"; [ -x $pnmscale ] || die "Cannot find pnmscale.\n"; [ -x $ppmtogif ] || die "Cannot find ppmtogif.\n"; +[ -x $pstopnm ] || die "Cannot find pstopnm.\n"; my $tmpdir = "/tmp/traffic-togif.$>.$$"; @@ -75,13 +77,19 @@ $commandline .= " --input $input"; } -$commandline .= "| $gs -q -sDEVICE=ppmraw -g1785x2526 -r216 -sOutputFile=\'$tmpdir/out.ppm\'"; +### this two lines were Added to process two times +$commandline .= " >$tmpdir/out.ps"; +system "$commandline "; + +### changed from gs to pstopnm +###$commandline .= "| $gs -q -sDEVICE=ppmraw -g1785x2526 -r216 -sOutputFile=\'$tmpdir/out.ppm\'"; +$commandline = "$pstopnm -ppm -xsize 1785 -ysize 2526 $tmpdir/out.ps"; # Run commandline to create pnm file in temporary directory -system "$commandline >/dev/null 2>/dev/null"; +system "$commandline "; # Build image manipulation commandline -$image_process = "$pnmcrop $tmpdir/out.ppm 2>/dev/null|$pnmscale -xysize $x_size $y_size 2>/dev/null|$ppmtogif 2>/dev/null"; +$image_process = "$pnmcrop $tmpdir/out001.ppm 2>/dev/null|$pnmscale -xysize $x_size $y_size 2>/dev/null|$ppmtogif 2>/dev/null"; if (defined $output) { @@ -92,8 +100,9 @@ system "$image_process"; # Clean up and remobe temp directory -unlink("$tmpdir/out.ppm") or die "Couldn\'t remove temporary file $tmpdir/out.ppm.\n"; -rmdir($tmpdir) or die "Couldn\'t remove temporary directory $tmpdir.\n"; +unlink("$tmpdir/out001.ppm") or die "Couldn\'t remove temporary file $tmpdir/out001.ppm.\n"; +unlink("$tmpdir/out.ps") or die "Couldn\'t remove temporary file $tmpdir/out.ps.\n"; +rmdir($tmpdir) or die "Couldn\'t remove temporary directory $tmpdir ($!).\n"; exit(0); --- traffic-vis-0.34.orig/frontends/htmlfe.c +++ traffic-vis-0.34/frontends/htmlfe.c @@ -177,7 +177,7 @@ \n\ %llu\n\ \n\ - + \ ", host->bytes_sent, host->bytes_received); fprintf(out, "\ --- traffic-vis-0.34.orig/example.sh +++ traffic-vis-0.34/example.sh @@ -0,0 +1,32 @@ +#!/bin/sh + +usage() { + echo "" + echo "$0 " + echo " the dest to store files" + echo " the summary file of traffic-collector" + echo "" + exit 1 +} + +if [ -z "$1" -o ! -d "$1" ] ; then + usage; +fi + +killall -USR1 traffic-collector +if [ $? -ne 0 ] ; then + exit 2 +fi + +if [ -z "$2" -o ! -f "$2" ] ; then + COLLECTOR=/var/run/traffic-collector +else + COLLECTOR="$2" +fi + + +/usr/sbin/traffic-sort -Hb -Pb -L60 < $COLLECTOR > "$1/report-sorted.tv" +/usr/sbin/traffic-resolve < "$1/report-sorted.tv" > "$1/report-resolved.tv" +/usr/sbin/traffic-tohtml < "$1/report-resolved.tv" > "$1/report.html" +/usr/sbin/traffic-tops < "$1/report-resolved.tv" > "$1/report.ps" +/usr/sbin/traffic-togif < "$1/report-resolved.tv" > "$1/report.gif" --- traffic-vis-0.34.orig/debian/postinst +++ traffic-vis-0.34/debian/postinst @@ -0,0 +1,71 @@ +#!/bin/sh -e +. /usr/share/debconf/confmodule +db_version 2.0 + +cfgfile="/etc/traffic-vis/debian_config" +cronfile="/etc/cron.d/clean-traffic" +command="/usr/bin/killall -USR2 traffic-collector" + +questions=`echo " make_def_conf sel_interface output_dir when_clean "|tr '[:space:]' '\n'` + + +if [ "$1" = "configure" ]; then + # generate the config file + if [ ! -e $cfgfile ] ; then + # no config file exists ... create a fresh one + echo "# configuration file for traffic-vis" > $cfgfile + echo "# changes made here will be preserved" >> $cfgfile + for question in $questions ; do + db_get "traffic-vis/$question" || true + echo "$question=\"$RET\"" >> $cfgfile + done + else + # preserve any user changes to the config file + # and only change the answers to the questions + for question in $questions ; do + db_get "traffic-vis/$question" || true + sed -e "s%$question=.*%$question=\"$RET\"%" <$cfgfile >$cfgfile.new + mv -f $cfgfile.new $cfgfile + done + fi + + # source the newly created config file + . $cfgfile + +fi + +if [ "$1" = "configure" ]; then + if [ ! -e "$output_dir" ]; then + mkdir -p "$output_dir" + echo "Creating \"$output_dir\"" + fi + case "$when_clean" in + monthly) echo "0 0 1 * * root $command" > "$cronfile" + ;; + weekly) echo "0 0 0 * 1 root $command" > "$cronfile" + ;; + daily) echo "0 0 * * * root $command" > "$cronfile" + ;; + hourly) echo "0 * * * * root $command" > "$cronfile" + ;; + *) + rm -f "$cronfile" + esac +fi + +if [ "$1" = "configure" ]; then + /etc/init.d/traffic-vis stop +fi + +#if [ "$1" = "configure" ]; then +# if [ -d /usr/doc -a ! -e /usr/doc/traffic-vis \ +# -a -d /usr/share/doc/traffic-vis ]; then +# ln -sf ../share/doc/traffic-vis /usr/doc/traffic-vis +# fi +#fi + + +# Shut up init script, which is very verbose and messes up debconf. +db_stop + +#DEBHELPER# --- traffic-vis-0.34.orig/debian/templates +++ traffic-vis-0.34/debian/templates @@ -0,0 +1,30 @@ +Template: traffic-vis/make_def_conf +Type: boolean +Default: false +_Description: Create a default configuration for traffic-vis ? + Choose Yes if you want to create a default configuration to make + traffic-vis collect automatically network statistic for you. If you + already have set up previous version of traffic-vis I suggest you to say + No and save your old configuration. + +Template: traffic-vis/sel_interface +Type: select +_Choices: lo, eth0, eth1, ppp0 +Default: eth0 +_Description: Select default interface to listen on. + Choose your interface to listen on; if it's not present + choose anything you want and then edit by hand /etc/traffic-vis/debian_config + +Template: traffic-vis/output_dir +Type: string +_Default: /var/www/traffic-vis +_Description: Which directory should traffic-vis put the output in? + +Template: traffic-vis/when_clean +Type: select +_Choices: never, monthly, weekly, daily, hourly +Default: never +_Description: Choose whether reset statistics. + Choose when you want to reset statistics traffic-collector is keeping in + memory. Choose never if you want to do it manually by yourself. + --- traffic-vis-0.34.orig/debian/dirs +++ traffic-vis-0.34/debian/dirs @@ -0,0 +1,3 @@ +etc/traffic-vis +usr/sbin +usr/share/man/man8 --- traffic-vis-0.34.orig/debian/rules +++ traffic-vis-0.34/debian/rules @@ -0,0 +1,62 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# This file is public domain software, originally written by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +build: build-stamp +build-stamp: + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + #/usr/bin/docbook-to-man debian/traffic-vis.sgml > traffic-vis.1 + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + debconf-updatepo + + # Add here commands to clean up after the build process. + $(MAKE) clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + dh_installexamples + + # Add here commands to install the package into debian/traffic-vis. + $(MAKE) install SBINDIR=$(CURDIR)/debian/traffic-vis/usr/sbin MANDIR=$(CURDIR)/debian/traffic-vis/usr/share/man + +# 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_installchangelogs CHANGELOG + dh_installdocs + dh_installdebconf + dh_installinit + dh_installman + 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 --- traffic-vis-0.34.orig/debian/docs +++ traffic-vis-0.34/debian/docs @@ -0,0 +1,3 @@ +BUGS +README +TODO --- traffic-vis-0.34.orig/debian/prerm +++ traffic-vis-0.34/debian/prerm @@ -0,0 +1,25 @@ +#!/bin/sh +set -e + + +case "$1" in + remove|deconfigure) + /etc/init.d/traffic-vis stop || true + ;; + upgrade) + ;; + failed-upgrade) + ;; + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# Automatically added by dh_installdocs +if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/traffic-vis ]; then + rm -f /usr/doc/traffic-vis +fi +# End automatically added section + +#DEBHELPER# --- traffic-vis-0.34.orig/debian/compat +++ traffic-vis-0.34/debian/compat @@ -0,0 +1 @@ +5 --- traffic-vis-0.34.orig/debian/po/templates.pot +++ traffic-vis-0.34/debian/po/templates.pot @@ -0,0 +1,85 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: packages@qa.debian.org\n" +"POT-Creation-Date: 2007-08-25 10:59+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "Create a default configuration for traffic-vis ?" +msgstr "" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"Choose Yes if you want to create a default configuration to make traffic-vis " +"collect automatically network statistic for you. If you already have set up " +"previous version of traffic-vis I suggest you to say No and save your old " +"configuration." +msgstr "" + +#. Type: select +#. Choices +#: ../templates:2001 +msgid "lo, eth0, eth1, ppp0" +msgstr "" + +#. Type: select +#. Description +#: ../templates:2002 +msgid "Select default interface to listen on." +msgstr "" + +#. Type: select +#. Description +#: ../templates:2002 +msgid "" +"Choose your interface to listen on; if it's not present choose anything you " +"want and then edit by hand /etc/traffic-vis/debian_config" +msgstr "" + +#. Type: string +#. Default +#: ../templates:3001 +msgid "/var/www/traffic-vis" +msgstr "" + +#. Type: string +#. Description +#: ../templates:3002 +msgid "Which directory should traffic-vis put the output in?" +msgstr "" + +#. Type: select +#. Choices +#: ../templates:4001 +msgid "never, monthly, weekly, daily, hourly" +msgstr "" + +#. Type: select +#. Description +#: ../templates:4002 +msgid "Choose whether reset statistics." +msgstr "" + +#. Type: select +#. Description +#: ../templates:4002 +msgid "" +"Choose when you want to reset statistics traffic-collector is keeping in " +"memory. Choose never if you want to do it manually by yourself." +msgstr "" --- traffic-vis-0.34.orig/debian/po/vi.po +++ traffic-vis-0.34/debian/po/vi.po @@ -0,0 +1,96 @@ +# Vietnamese translation for traffic-vis . +# Copyright © 2005 Free Software Foundation, Inc. +# Clytie Siddall , 2005. +# +msgid "" +msgstr "" +"Project-Id-Version: traffic-vis 0.34-12\n" +"Report-Msgid-Bugs-To: packages@qa.debian.org\n" +"POT-Creation-Date: 2007-06-09 12:53+0000\n" +"PO-Revision-Date: 2005-08-10 18:33+0930\n" +"Last-Translator: Clytie Siddall \n" +"Language-Team: Vietnamese \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0\n" +"X-Generator: LocFactoryEditor 1.2.2\n" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "Create a default configuration for traffic-vis ?" +msgstr "Tạo cấu hình mặc định cho traffic-vis không?" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"Choose Yes if you want to create a default configuration to make traffic-vis " +"collect automatically network statistic for you. If you already have set up " +"previous version of traffic-vis I suggest you to say No and save your old " +"configuration." +msgstr "" +"Hãy chọn « Có » (yes) nếu bạn muốn tạo một cấu hình mặc định để làm cho " +"trình traffic-vis tự động tập hợp thống kê mạng cho bạn. Nếu bạn đã thiết " +"lập một phiên bản traffic-vis trước thì đệ nghị bạn nói « Không » (no), và " +"lưu cấu hình cũ." + +#. Type: select +#. Choices +#: ../templates:2001 +#, fuzzy +msgid "lo, eth0, eth1, ppp0" +msgstr "lo, eth0, eth1, ppp0, ppp1" + +#. Type: select +#. Description +#: ../templates:2002 +msgid "Select default interface to listen on." +msgstr "Chọn giao diện mặc định nơi cần lắng nghe." + +#. Type: select +#. Description +#: ../templates:2002 +#, fuzzy +msgid "" +"Choose your interface to listen on; if it's not present choose anything you " +"want and then edit by hand /etc/traffic-vis/debian_config" +msgstr "" +"Hãy chọn giao diện nơi cần lắng nghe; nếu không có trong danh sách này thì " +"hãy chọn bất cứ điều nào và tự sửa đổi « /etc/traffic-vis/debian_config »." + +#. Type: string +#. Default +#: ../templates:3001 +msgid "/var/www/traffic-vis" +msgstr "/var/www/traffic-vis" + +#. Type: string +#. Description +#: ../templates:3002 +msgid "Which directory should traffic-vis put the output in?" +msgstr "Trình traffic-vis nên lưu dữ liệu xuất vào thư mục nào?" + +#. Type: select +#. Choices +#: ../templates:4001 +msgid "never, monthly, weekly, daily, hourly" +msgstr "không bao giờ, hàng tháng, hàng tuần, hàng ngày, hàng giờ" + +#. Type: select +#. Description +#: ../templates:4002 +msgid "Choose whether reset statistics." +msgstr "Chọn có nên đặt lại thống kê." + +#. Type: select +#. Description +#: ../templates:4002 +msgid "" +"Choose when you want to reset statistics traffic-collector is keeping in " +"memory. Choose never if you want to do it manually by yourself." +msgstr "" +"Hãy chọn khi nào bạn muốn đặt lại các thống kê mà trình traffic-collector " +"đang giữ trong bộ nhớ. Hãy chọn « Không bao giờ » nếu bạn muốn tự làm như " +"thế." --- traffic-vis-0.34.orig/debian/po/POTFILES.in +++ traffic-vis-0.34/debian/po/POTFILES.in @@ -0,0 +1 @@ +[type: gettext/rfc822deb] templates --- traffic-vis-0.34.orig/debian/po/it.po +++ traffic-vis-0.34/debian/po/it.po @@ -0,0 +1,104 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: traffic-vis_0.34\n" +"Report-Msgid-Bugs-To: packages@qa.debian.org\n" +"POT-Creation-Date: 2007-06-09 12:53+0000\n" +"PO-Revision-Date: 2005-09-08 19:52+0200\n" +"Last-Translator: Samuele Giovanni Tonon \n" +"Language-Team: Italian \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "Create a default configuration for traffic-vis ?" +msgstr "Creare una configurazione di default per traffic-vis ?" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"Choose Yes if you want to create a default configuration to make traffic-vis " +"collect automatically network statistic for you. If you already have set up " +"previous version of traffic-vis I suggest you to say No and save your old " +"configuration." +msgstr "" +"Scegliere 'Si' se si vuole creare una configurazione di default per creare " +"automaticamente le statistiche di rete. Se si e' gia' configurato precedenti " +"versioni di traffic-vis, si consiglia di scegliere 'No' e di salvare la " +"vecchia configurazione." + +#. Type: select +#. Choices +#: ../templates:2001 +#, fuzzy +msgid "lo, eth0, eth1, ppp0" +msgstr "lo, eth0, eth1, ppp0, ppp1" + +#. Type: select +#. Description +#: ../templates:2002 +msgid "Select default interface to listen on." +msgstr "Selezionare l'interfaccia di default su cui ascoltare." + +#. Type: select +#. Description +#: ../templates:2002 +#, fuzzy +msgid "" +"Choose your interface to listen on; if it's not present choose anything you " +"want and then edit by hand /etc/traffic-vis/debian_config" +msgstr "" +"Scegliere l'interfaccia su cui ascoltare, altrimenti modificare a manoil " +"file /etc/traffic-vis/debian_config" + +#. Type: string +#. Default +#: ../templates:3001 +msgid "/var/www/traffic-vis" +msgstr "" + +#. Type: string +#. Description +#: ../templates:3002 +msgid "Which directory should traffic-vis put the output in?" +msgstr "In quale directory salvare l'output di traffic-vis?" + +#. Type: select +#. Choices +#: ../templates:4001 +msgid "never, monthly, weekly, daily, hourly" +msgstr "never, monthly, weekly, daily, hourly" + +#. Type: select +#. Description +#: ../templates:4002 +msgid "Choose whether reset statistics." +msgstr "Scegliere quando azzerare le statistiche." + +#. Type: select +#. Description +#: ../templates:4002 +msgid "" +"Choose when you want to reset statistics traffic-collector is keeping in " +"memory. Choose never if you want to do it manually by yourself." +msgstr "" +"Scegliere quando si vuole cancellare i dati che traffic-collector sta " +"mantenendo in memoria. Never - mai Monthly - ogni mese Weely - ogni " +"settimana Daily - ogni giorno Hourly - ogni ora" --- traffic-vis-0.34.orig/debian/po/sv.po +++ traffic-vis-0.34/debian/po/sv.po @@ -0,0 +1,102 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: traffic-vis 0.34-16\n" +"Report-Msgid-Bugs-To: packages@qa.debian.org\n" +"POT-Creation-Date: 2007-06-09 12:53+0000\n" +"PO-Revision-Date: 2005-11-10 21:24+0100\n" +"Last-Translator: Daniel Nylander \n" +"Language-Team: Swedish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=iso-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Swedish\n" +"X-Poedit-Country: SWEDEN\n" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "Create a default configuration for traffic-vis ?" +msgstr "Skapa en standardkonfiguration fr traffic-vis ?" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"Choose Yes if you want to create a default configuration to make traffic-vis " +"collect automatically network statistic for you. If you already have set up " +"previous version of traffic-vis I suggest you to say No and save your old " +"configuration." +msgstr "" +"Vlj Ja om du vill skapa en standardkonfiguration s att traffic-vis kan " +"samla in ntverksstatistik automatiskt t dig. Om du redan har satt upp en " +"tidigare version av traffic-vis s freslr jag att du svarar Nej och sparar " +"din gamla konfiguration." + +#. Type: select +#. Choices +#: ../templates:2001 +msgid "lo, eth0, eth1, ppp0" +msgstr "lo, eth0, eth1, ppp0" + +#. Type: select +#. Description +#: ../templates:2002 +msgid "Select default interface to listen on." +msgstr "Vlj standardgrnssnittet som ska lyssnas p." + +#. Type: select +#. Description +#: ../templates:2002 +msgid "" +"Choose your interface to listen on; if it's not present choose anything you " +"want and then edit by hand /etc/traffic-vis/debian_config" +msgstr "" +"Vlj det grnssnitt som ska lyssnas p, om detta inte finns i listan s vlj " +"ngot annat och redigera sedan /etc/traffic-vis/debian_config manuellt." + +#. Type: string +#. Default +#: ../templates:3001 +msgid "/var/www/traffic-vis" +msgstr "/var/www/traffic-vis" + +#. Type: string +#. Description +#: ../templates:3002 +msgid "Which directory should traffic-vis put the output in?" +msgstr "Vilken mapp ska traffic-vis skriva ner data till?" + +#. Type: select +#. Choices +#: ../templates:4001 +msgid "never, monthly, weekly, daily, hourly" +msgstr "aldrig, per mnad, per vecka, dagligen, per timma" + +#. Type: select +#. Description +#: ../templates:4002 +msgid "Choose whether reset statistics." +msgstr "Vlj om statistiken ska terstllas." + +#. Type: select +#. Description +#: ../templates:4002 +msgid "" +"Choose when you want to reset statistics traffic-collector is keeping in " +"memory. Choose never if you want to do it manually by yourself." +msgstr "" +"Vlj nr du vill terstlla statistiken som traffic-collector hller i " +"minnet. Vlj aldrig om du vill gra detta manuellt sjlv." --- traffic-vis-0.34.orig/debian/po/cs.po +++ traffic-vis-0.34/debian/po/cs.po @@ -0,0 +1,101 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: traffic-vis\n" +"Report-Msgid-Bugs-To: packages@qa.debian.org\n" +"POT-Creation-Date: 2007-06-09 12:53+0000\n" +"PO-Revision-Date: 2006-06-06 17:38+0200\n" +"Last-Translator: Miroslav Kure \n" +"Language-Team: Czech \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "Create a default configuration for traffic-vis ?" +msgstr "Vytvořit pro traffic-vis výchozí konfiguraci?" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"Choose Yes if you want to create a default configuration to make traffic-vis " +"collect automatically network statistic for you. If you already have set up " +"previous version of traffic-vis I suggest you to say No and save your old " +"configuration." +msgstr "" +"Zvolte Ano, pokud chcete vytvořit výchozí konfiguraci, ve které bude traffic-" +"vis automaticky shromažďovat statistiku síťového provozu. Jestliže již máte " +"nastavení z předchozí verze balíčku traffic-vis, doporučuji odpovědět Ne a " +"použít starou konfiguraci." + +#. Type: select +#. Choices +#: ../templates:2001 +msgid "lo, eth0, eth1, ppp0" +msgstr "lo, eth0, eth1, ppp0" + +#. Type: select +#. Description +#: ../templates:2002 +msgid "Select default interface to listen on." +msgstr "Vyberte rozhraní, na kterém má traffic-vis naslouchat." + +#. Type: select +#. Description +#: ../templates:2002 +msgid "" +"Choose your interface to listen on; if it's not present choose anything you " +"want and then edit by hand /etc/traffic-vis/debian_config" +msgstr "" +"Vyberte síťové rozhraní, na kterém má traffic-vis naslouchat; jestliže " +"požadované rozhraní v seznamu chybí, vyberte cokoliv a poté ručně upravte " +"soubor /etc/traffic-vis/debian_config." + +#. Type: string +#. Default +#: ../templates:3001 +msgid "/var/www/traffic-vis" +msgstr "/var/www/traffic-vis" + +#. Type: string +#. Description +#: ../templates:3002 +msgid "Which directory should traffic-vis put the output in?" +msgstr "Do kterého adresáře má traffic-vis ukládat svůj výstup?" + +#. Type: select +#. Choices +#: ../templates:4001 +msgid "never, monthly, weekly, daily, hourly" +msgstr "nikdy, měsíčně, týdně, denně, každou hodinu" + +#. Type: select +#. Description +#: ../templates:4002 +msgid "Choose whether reset statistics." +msgstr "Určete, kdy se má statistika nulovat." + +#. Type: select +#. Description +#: ../templates:4002 +msgid "" +"Choose when you want to reset statistics traffic-collector is keeping in " +"memory. Choose never if you want to do it manually by yourself." +msgstr "" +"Vyberte si, kdy chcete vynulovat statistiku, kterou si traffic-collector " +"uchovává v paměti. Plánujete-li provádět nulování ručně, vyberte nikdy." --- traffic-vis-0.34.orig/debian/po/pt.po +++ traffic-vis-0.34/debian/po/pt.po @@ -0,0 +1,94 @@ +# translation of traffic-vis debconf to Portuguese +# Copyright (C) 2007 Américo Monteiro +# This file is distributed under the same license as the traffic-vis package. +# +# Américo Monteiro , 2007. +msgid "" +msgstr "" +"Project-Id-Version: traffic-vis 0.34-19\n" +"Report-Msgid-Bugs-To: packages@qa.debian.org\n" +"POT-Creation-Date: 2007-06-09 12:53+0000\n" +"PO-Revision-Date: 2007-07-21 17:10+0100\n" +"Last-Translator: Américo Monteiro \n" +"Language-Team: Portuguese \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "Create a default configuration for traffic-vis ?" +msgstr "Criar uma configuração de omissão para o traffic-vis?" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"Choose Yes if you want to create a default configuration to make traffic-vis " +"collect automatically network statistic for you. If you already have set up " +"previous version of traffic-vis I suggest you to say No and save your old " +"configuration." +msgstr "" +"Escolha Sim se você quer criar uma configuração de omissão para que o " +"traffic-vis colecte automaticamente estatísticas de rede para si. Se você já " +"tem uma versão prévia do traffic-vis configurada, sugiro que diga Não e " +"salvaguarde a sua antiga configuração." + +#. Type: select +#. Choices +#: ../templates:2001 +msgid "lo, eth0, eth1, ppp0" +msgstr "lo, eth0, eth1, ppp0" + +#. Type: select +#. Description +#: ../templates:2002 +msgid "Select default interface to listen on." +msgstr "Seleccione a interface de omissão a ser monitorizada." + +#. Type: select +#. Description +#: ../templates:2002 +msgid "" +"Choose your interface to listen on; if it's not present choose anything you " +"want and then edit by hand /etc/traffic-vis/debian_config" +msgstr "" +"Escolha a interface a ser monitorizada; se não estiver presente, escolha uma " +"qualquer e depois edite manualmente /etc/traffic-vis/debian_config" + +#. Type: string +#. Default +#: ../templates:3001 +msgid "/var/www/traffic-vis" +msgstr "/var/www/traffic-vis" + +#. Type: string +#. Description +#: ../templates:3002 +msgid "Which directory should traffic-vis put the output in?" +msgstr "Em que directório deve o traffic-vis guardar os resultados?" + +#. Type: select +#. Choices +#: ../templates:4001 +msgid "never, monthly, weekly, daily, hourly" +msgstr "nunca, mensalmente, semanalmente, diariamente, hora a hora" + +#. Type: select +#. Description +#: ../templates:4002 +msgid "Choose whether reset statistics." +msgstr "Escolha quando reiniciar estatísticas." + +#. Type: select +#. Description +#: ../templates:4002 +msgid "" +"Choose when you want to reset statistics traffic-collector is keeping in " +"memory. Choose never if you want to do it manually by yourself." +msgstr "" +"Escolha quando quer reiniciar as estatísticas que o colector de tráfego mantêm " +"em memória. Escolha 'nunca' se você quer fazê-lo manualmente." + --- traffic-vis-0.34.orig/debian/po/fr.po +++ traffic-vis-0.34/debian/po/fr.po @@ -0,0 +1,100 @@ +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# Developers do not need to manually edit POT or PO files. +# +# +msgid "" +msgstr "" +"Project-Id-Version: traffic-vis 0.34-11\n" +"Report-Msgid-Bugs-To: packages@qa.debian.org\n" +"POT-Creation-Date: 2007-06-09 12:53+0000\n" +"PO-Revision-Date: 2005-11-18 14:59+0100\n" +"Last-Translator: Jean-Marc Chaton \n" +"Language-Team: French \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=iso-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "Create a default configuration for traffic-vis ?" +msgstr "Faut-il crer une configuration par dfaut pour traffic-vis?" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"Choose Yes if you want to create a default configuration to make traffic-vis " +"collect automatically network statistic for you. If you already have set up " +"previous version of traffic-vis I suggest you to say No and save your old " +"configuration." +msgstr "" +"Veuillez indiquer si vous souhaitez que, par dfaut, traffic-vis collecte " +"automatiquement des statistiques sur l'activit rseau. Si vous avez dj " +"install une version prcdente de traffic-vis, ne choisissez pas cette " +"option et gardez votre ancienne configuration." + +#. Type: select +#. Choices +#: ../templates:2001 +msgid "lo, eth0, eth1, ppp0" +msgstr "lo, eth0, eth1, ppp0" + +#. Type: select +#. Description +#: ../templates:2002 +msgid "Select default interface to listen on." +msgstr "Interface analyser par dfaut:" + +#. Type: select +#. Description +#: ../templates:2002 +msgid "" +"Choose your interface to listen on; if it's not present choose anything you " +"want and then edit by hand /etc/traffic-vis/debian_config" +msgstr "" +"Veuillez choisir l'interface analyser. Si celle-ci est absente, choisissez " +"n'importe quelle interface, puis ditez vous-mme le fichier /etc/traffic-" +"vis/debian_config." + +#. Type: string +#. Default +#: ../templates:3001 +msgid "/var/www/traffic-vis" +msgstr "/var/www/traffic-vis" + +#. Type: string +#. Description +#: ../templates:3002 +msgid "Which directory should traffic-vis put the output in?" +msgstr "Rpertoire o traffic-vis placera ses rapports:" + +#. Type: select +#. Choices +#: ../templates:4001 +msgid "never, monthly, weekly, daily, hourly" +msgstr "Jamais, Mensuelle, Hebdomadaire, Quotidienne, Horaire" + +#. Type: select +#. Description +#: ../templates:4002 +msgid "Choose whether reset statistics." +msgstr "Frquence de suppression des statistiques:" + +#. Type: select +#. Description +#: ../templates:4002 +msgid "" +"Choose when you want to reset statistics traffic-collector is keeping in " +"memory. Choose never if you want to do it manually by yourself." +msgstr "" +"Veuillez choisir la frquence de suppression des statistiques que traffic-" +"collector garde en mmoire. Choisissez Jamais si vous souhaitez le faire " +"vous-mme." --- traffic-vis-0.34.orig/debian/po/de.po +++ traffic-vis-0.34/debian/po/de.po @@ -0,0 +1,95 @@ +# translation of traffic-vis-de.po to deutsch +# Copyright (C) YEAR THE traffic-vis'S COPYRIGHT HOLDER +# This file is distributed under the same license as the traffic-vis package. +# +# Hermann J. Beckers , 2007. +msgid "" +msgstr "" +"Project-Id-Version: traffic-vis 0.34-18\n" +"Report-Msgid-Bugs-To: packages@qa.debian.org\n" +"POT-Creation-Date: 2007-06-09 12:53+0000\n" +"PO-Revision-Date: 2007-06-09 15:48GMT\n" +"Last-Translator: Hermann J. Beckers \n" +"Language-Team: German \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "Create a default configuration for traffic-vis ?" +msgstr "Standard-Konfiguration fr traffic-vis erstellen?" + +#. Type: boolean +#. Description +#: ../templates:1001 +msgid "" +"Choose Yes if you want to create a default configuration to make traffic-vis " +"collect automatically network statistic for you. If you already have set up " +"previous version of traffic-vis I suggest you to say No and save your old " +"configuration." +msgstr "" +"Whlen Sie Ja, falls Sie eine Standard-Konfiguration erstellen mchten, " +"damit traffic-vis automatisch Netzwerk-Statistiken fr Sie sammelt. Wenn Sie " +"bereits eine frhere Version von traffic-vis eingerichtet haben, sollten Sie " +"Nein sagen und Ihre alte Konfiguration sichern." + +#. Type: select +#. Choices +#: ../templates:2001 +msgid "lo, eth0, eth1, ppp0" +msgstr "lo, eth0, eth1, ppp0" + +#. Type: select +#. Description +#: ../templates:2002 +msgid "Select default interface to listen on." +msgstr "Whlen Sie die zu benutzende Standard-Schnittstelle." + +#. Type: select +#. Description +#: ../templates:2002 +msgid "" +"Choose your interface to listen on; if it's not present choose anything you " +"want and then edit by hand /etc/traffic-vis/debian_config" +msgstr "" +"Whlen Sie die zu benutzende Schnittstelle. Falls diese nicht vorhanden ist, " +"whlen Sie irgendeine und editieren dann /etc/traffic-vis/debian_config von " +"Hand." + +#. Type: string +#. Default +#: ../templates:3001 +msgid "/var/www/traffic-vis" +msgstr "/var/www/traffic-vis" + +#. Type: string +#. Description +#: ../templates:3002 +msgid "Which directory should traffic-vis put the output in?" +msgstr "In welches Verzeichnis soll traffic-vis die Ausgabe schreiben?" + +#. Type: select +#. Choices +#: ../templates:4001 +msgid "never, monthly, weekly, daily, hourly" +msgstr "niemals, monatlich, wchentlich, tglich, stndlich" + +#. Type: select +#. Description +#: ../templates:4002 +msgid "Choose whether reset statistics." +msgstr "Whlen Sie, ob die Statistiken zurckgesetzt werden sollen." + +#. Type: select +#. Description +#: ../templates:4002 +msgid "" +"Choose when you want to reset statistics traffic-collector is keeping in " +"memory. Choose never if you want to do it manually by yourself." +msgstr "" +"Whlen Sie, ob Sie die Statistiken zurcksetzen wollen, die traffic-" +"collector im Hauptspeicher hlt. Whlen Sie niemals, wenn Sie das selbst " +"manuell erledigen mchten. " --- traffic-vis-0.34.orig/debian/copyright +++ traffic-vis-0.34/debian/copyright @@ -0,0 +1,28 @@ +This package was debianized by Samuele Giovanni Tonon on +Fri, 13 Jul 2001 21:47:22 +0200. + +It was downloaded from http://www.securityfocus.com/data/tools/traffic-vis-0.34.tar.gz + +Upstream Author: Damien Miller + +Copyright: 1998-1999 Damien Miller + +License: + + 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; version 2 dated June, 1991. + + 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 package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + 02110-1301, USA. + +License: +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. --- traffic-vis-0.34.orig/debian/changelog +++ traffic-vis-0.34/debian/changelog @@ -0,0 +1,157 @@ +traffic-vis (0.34-20) unstable; urgency=medium + + * QA upload. + * collector/packet-parse.c: Let pcap.h include the correct bpf.h + (net/bpf.h in pcap 0.7, pcap-bpf.h in pcap 0.8). Closes: #439460. + * debian/templates: Apply corrections from Hermann J. Beckers, thanks. + Closes: #428593. + * debian/po/de.po: Translation by Hermann J. Beckers. Closes: #428591. + * debian/po/pt.po: Translation by Americo Monteiro. Closes: #434192. + * Switch to debhelper 5. + * Remove dependency on perl; perl-base is enough. + * debian/rules: Don't ignore errors from `$(MAKE) clean'. + * debian/changelog: Remove obsolete Emacs local variables. + + -- Matej Vela Sat, 25 Aug 2007 11:20:22 +0200 + +traffic-vis (0.34-19) unstable; urgency=low + + * QA upload. + * Set maintainer to QA group. + * Bumped standards version, no changes needed. + * Fixed broken copyright file. + + -- Nico Golde Sat, 09 Jun 2007 12:49:15 +0000 + +traffic-vis (0.34-18) unstable; urgency=low + + * Newer Czech translation thanks to Miroslav Kure (Closes: #370736) + + -- Samuele Giovanni Tonon Wed, 7 Jun 2006 10:41:03 +0200 + +traffic-vis (0.34-17) unstable; urgency=low + + * Added French translation, thanks to Jean-Marc Chaton (Closes: #340825) + * Updated Svedish translation (Closes: #338526) + + -- Samuele Giovanni Tonon Mon, 28 Nov 2005 10:18:02 +0100 + +traffic-vis (0.34-16) unstable; urgency=low + + * Added debconf-updatepo in to rules (Closes: #338163) + + -- Samuele Giovanni Tonon Tue, 8 Nov 2005 15:58:44 +0100 + +traffic-vis (0.34-15) unstable; urgency=low + + * Added Swedish translation (Closes: #335935) + * Added Dependencies to debconf-2.0 (Closes: #332122) + + -- Samuele Giovanni Tonon Sat, 29 Oct 2005 11:23:01 +0200 + +traffic-vis (0.34-14) unstable; urgency=low + + * Updated italian translation of debconf templates, thanks to + Luca Bruno to help me fix some outdated string (Closes: #325625 ) + + -- Samuele Giovanni Tonon Thu, 8 Sep 2005 10:44:07 +0200 + +traffic-vis (0.34-13) unstable; urgency=low + + * Added CS and VI translation, thanks to + Miroslav Kure and Clytie Siddall (Closes: #308749) (Closes: #322330) + + -- Samuele Giovanni Tonon Thu, 11 Aug 2005 12:17:35 +0200 + +traffic-vis (0.34-12) unstable; urgency=low + + * The, "why am i NMU-ing myself?" release + + -- Samuele Giovanni Tonon Mon, 15 Nov 2004 12:42:54 +0100 + +traffic-vis (0.34-11) unstable; urgency=low + + * Fixed bogus dialog (Closes: #278052) + * Added newer french translation + + -- Samuele Giovanni Tonon Mon, 15 Nov 2004 10:28:35 +0100 + +traffic-vis (0.34-10) unstable; urgency=low + + * Moved to main due to change to unisys license (Closes: #258296) + + -- Samuele Giovanni Tonon Mon, 26 Jul 2004 22:32:03 +0200 + +traffic-vis (0.34-9) unstable; urgency=low + + * Added French translation, thanks to Olivier Gauwin and all the + debian-l10n-french ml (Closes: #243399) + + -- Samuele Giovanni Tonon Tue, 13 Apr 2004 10:19:15 +0200 + +traffic-vis (0.34-8) unstable; urgency=low + + * Removed last debconf sentence, as suggested by Christian Perrier + (Closes: #241635) + + -- Samuele Giovanni Tonon Fri, 2 Apr 2004 09:32:58 +0200 + +traffic-vis (0.34-7) unstable; urgency=low + + * Switched debconf template to gettext-based (Closes: #235180) + + -- Samuele Giovanni Tonon Tue, 30 Mar 2004 20:57:13 +0200 + +traffic-vis (0.34-6) unstable; urgency=low + + * it's /usr/bin/killall not /sbin/killall (Closes: bug#160422) + * changed default parameters on configuration + + -- Samuele Giovanni Tonon Wed, 11 Sep 2002 14:24:07 +0200 + +traffic-vis (0.34-5) unstable; urgency=low + + * Old Version but new configuration system with debconf + + -- Samuele Giovanni Tonon Thu, 22 Aug 2002 18:48:25 +0200 + +traffic-vis (0.34-4.1) unstable; urgency=low + + * Non maintainer upload + * Rebuilt with new libpcap to remove dependency on libpcap0, which I + got removed from unstable by accident. Sorry about this... + + -- Torsten Landschoff Sat, 10 Aug 2002 11:37:47 +0200 + +traffic-vis (0.34-4) unstable; urgency=low + + * modified traffic-vis.8 as suggested by Tom Goulet (many thanks) + (Closes: bug#146311) + + -- Samuele Giovanni Tonon Thu, 9 May 2002 00:44:16 +0200 + +traffic-vis (0.34-3) unstable; urgency=low + + * modidied control file (Closes: bug#125426) + * modified traffic-togif to delete temp files + * modified example.sh + + -- Samuele Giovanni Tonon Tue, 18 Dec 2001 16:32:39 +0100 + +traffic-vis (0.34-2) unstable; urgency=low + + * Added example.sh made by me to help to generate report file + * Added ';' in traffic-togif (Closes: bug#115900) + * Package sponsored by Cosimo Alfarano + + -- Samuele Tonon Wed, 17 Oct 2001 18:38:08 +0000 + +traffic-vis (0.34-1) unstable; urgency=low + + * Initial Release. + * changed traffic-togif to make it work without gs ( original code is + commented with ### ) and removed -w switch on the call to the interpreter. + * changed Makefile to support glib-config --cflags glib-config --libs utils. + * Package sponsored by Cosimo Alfarano + + -- Samuele Tonon Fri, 13 Jul 2001 21:47:22 +0200 --- traffic-vis-0.34.orig/debian/init +++ traffic-vis-0.34/debian/init @@ -0,0 +1,59 @@ +#!/bin/sh +# +# traffic-vis starts and stops traffic-vis in daemon-mode, if configured to do so + +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin +DAEMON=/usr/sbin/traffic-collector +NAME=traffic-vis +DESC="traffic-vis" + +cfg_file=/etc/traffic-vis/debian_config + +test -f $DAEMON || exit 1 + +if [ -f $cfg_file ] ; then + . $cfg_file +else + echo "Missing $cfg_file configuration file!" >&2 + echo "Please run 'dpkg-reconfigure --plow traffic-vis' to generate one." >&2 + exit 1; +fi + +tv_args='' +if [ -n "$sel_interface" ] ; then + tv_args="$tv_args -i $sel_interface" +fi +if [ -n "$output_dir" ] ; then + tv_args="$tv_args --summary-file $output_dir/summary.tv" +fi + +# start or stop traffic-vis daemon +# arg 1: "start" or "stop" +case "$1" in + start) + echo -n "Starting $DESC:" + start-stop-daemon --start \ + --pidfile "/var/run/traffic-vis.pid" \ + -m --startas $DAEMON -- $tv_args + echo "." + ;; + stop) + echo -n "Stopping $DESC:" + start-stop-daemon --stop --quiet --signal 9 \ + --oknodo --exec $DAEMON + rm /var/run/traffic-vis.pid + echo "." + ;; + restart|force-reload) + /etc/init.d/traffic-vis stop + /etc/init.d/traffic-vis start + ;; + *) + N=/etc/init.d/$NAME + echo "Usage: $N {start|stop|restart|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 + --- traffic-vis-0.34.orig/debian/config +++ traffic-vis-0.34/debian/config @@ -0,0 +1,34 @@ +#!/bin/sh -e +. /usr/share/debconf/confmodule +db_version 2.0 + +cfgfile=/etc/traffic-vis/debian_config + +my_db_set () +{ + question=$1 + eval value=\$$question + if [ "$value" ] ; then db_set traffic-vis/$question $value ; fi +} + +if [ -e $cfgfile ] ; then + . $cfgfile || true + my_db_set make_def_conf + my_db_set sel_interface + my_db_set output_dir +fi + +db_input "high" "traffic-vis/make_def_conf" || true +db_go +db_get "traffic-vis/make_def_conf" +[ "$RET" = "false" ] && exit 0 + +db_input "critical" "traffic-vis/sel_interface" || true +db_go + +db_input "medium" "traffic-vis/output_dir" || true +db_go + +db_input "medium" "traffic-vis/when_clean" || true + +db_go --- traffic-vis-0.34.orig/debian/control +++ traffic-vis-0.34/debian/control @@ -0,0 +1,16 @@ +Source: traffic-vis +Section: net +Priority: optional +Maintainer: Debian QA Group +Build-Depends: debhelper (>= 5), po-debconf, libglib-dev, libpcap-dev +Standards-Version: 3.7.2 + +Package: traffic-vis +Architecture: any +Depends: netpbm, debconf (>= 0.2.26) | debconf-2.0, ${shlibs:Depends} +Description: A sniffer that can display reports in HTML, Postscript and other formats + This is traffic-vis, a free network traffic monitor package. + traffic-vis is a suite of tools to help determine which hosts have + been communicating on an IP network, with whom they have been + communicating and the volume of communication taking place on a host + by host basis. --- traffic-vis-0.34.orig/debian/examples +++ traffic-vis-0.34/debian/examples @@ -0,0 +1 @@ +example.sh --- traffic-vis-0.34.orig/debian/postrm +++ traffic-vis-0.34/debian/postrm @@ -0,0 +1,8 @@ +#!/bin/sh -e + +if [ "$1" = "purge" ]; then + rm -Rf /etc/traffic-vis + rm -f /etc/cron.d/clean-traffic +fi + +#DEBHELPER# --- traffic-vis-0.34.orig/debian/preinst +++ traffic-vis-0.34/debian/preinst @@ -0,0 +1,54 @@ +#!/bin/sh -e +. /usr/share/debconf/confmodule +db_version 2.0 + +cleanup_old_debconf () +{ + old_version=$1 + if dpkg --compare-versions $old_version ge 2.0.5-3 \ + && dpkg --compare-versions $old_version lt 2.0.5-6 ; then + # clean up after previous debconf config file version 1 + # no graceful upgrade mechanism provided by maintainer + db_purge + fi + if dpkg --compare-versions $old_version ge 2.0.5-6 \ + && dpkg --compare-versions $old_version lt 2.0.6-3.1 ; then + # clean up after previous debconf config file version 2 + # somewhat graceful upgrade mechanism provided by NMU author + cfgfile=/etc/traffic-vis/debian_config + if [ -e $cfgfile ] ; then + sed -e "s/^# Do NOT edit.*/# configuration file for traffic-vis/" \ + -e "s/^# Use dpkg-re.*/# changes made here will be preserved/" \ + < $cfgfile > $cfgfile.new + mv $cfgfile.new $cfgfile + fi + db_purge # don't worry, debconf values will be preserved + fi + + # + # Add check_cert if not already in the config file (added in 2.0.6-3.3) + # +} + +case "$1" in + install) + if [ -n "$2" ] ; then + # installing from purged + old_version=$2 + cleanup_old_debconf $old_version + else + # installing from removed + echo -n '' # do nothing + fi + ;; + upgrade) + old_version=$2 + cleanup_old_debconf $old_version + ;; + abort-upgrade) + new_version=$2 + echo -n '' # do nothing + ;; +esac + +#DEBHELPER#