From 830903c56a9ce5701447a0e3592815294a85b420 Mon Sep 17 00:00:00 2001 From: Jaap Keuter Date: Wed, 4 Jul 2007 07:22:57 +0000 Subject: [PATCH] From Frederic Peters: Update of de Debian Packaging files from 0.99.2 to 0.99.6pre1. svn path=/trunk/; revision=22238 --- debian/changelog | 132 ++++++ debian/control | 81 +++- debian/copyright | 4 +- debian/patches/00list | 11 - debian/patches/01_idl2deb.dpatch | 424 ------------------ debian/patches/02_asn2deb.dpatch | 392 ---------------- debian/patches/03_preferences.dpatch | 28 -- debian/patches/04_drop-capabilities.dpatch | 231 +--------- debian/patches/05_plugin-libdir.dpatch | 28 -- debian/patches/06_giop-buffer.dpatch | 19 - debian/patches/07_gcc4.dpatch | 32 -- .../patches/08_ethereal-desktop-menu.dpatch | 29 -- .../patches/08_wireshark-desktop-menu.dpatch | 19 +- debian/patches/09_idl2eth.dpatch | 46 -- debian/patches/09_idl2wrs.dpatch | 12 +- debian/patches/10_ethereal_gen.dpatch | 19 - debian/patches/11_diameter_vendors.dpatch | 19 - debian/pycompat | 1 + debian/pyversions | 1 + debian/rules | 4 +- debian/tshark.files | 7 - debian/tshark.manpages | 5 +- debian/wireshark-common.files | 25 +- debian/wireshark-common.manpages | 15 +- debian/wireshark-dev.docs | 17 +- debian/wireshark-dev.files | 26 -- debian/wireshark-dev.header-files | 161 +------ debian/wireshark-dev.manpages | 10 +- debian/wireshark-dev.postinst | 71 --- debian/wireshark-dev.prerm | 46 -- debian/wireshark-root.desktop | 84 ---- debian/wireshark.files | 10 +- debian/wireshark.manpages | 5 +- debian/wireshark.menu | 11 - 34 files changed, 248 insertions(+), 1777 deletions(-) delete mode 100644 debian/patches/08_ethereal-desktop-menu.dpatch delete mode 100644 debian/patches/09_idl2eth.dpatch delete mode 100644 debian/patches/10_ethereal_gen.dpatch delete mode 100644 debian/patches/11_diameter_vendors.dpatch create mode 100644 debian/pycompat create mode 100644 debian/pyversions diff --git a/debian/changelog b/debian/changelog index dcc32c7db7..58f62bdc7e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,135 @@ +wireshark (0.99.6pre1-1) unstable; urgency=high + + * New upstream pre-release, with security fixes: + * could crash when dissecting an HTTP chunked response + * could crash while reading iSeries capture files + * could exhaust system memory while reading a malformed DCP ETSI packet + * could loop excessively while reading a malformed SSL packet + * DHCP/BOOTP dissector was susceptible to an off-by-one error + * could loop excessively while reading a malformed MMS packet + * debian/control: added libkrb5-dev to build-deps so Kerberos support is + built. + * debian/control: replaced {Source-Version} with appropriate {binary:Version} + * debian/wireshark-dev.header-files: use wildcards to get all headers + (closes: #423000) + * debian/patches/14_disable-cmip.dpatch: disable CMIP dissector which + doesn't build at the moment. + * debian/rules: don't ignore all errors on make distclean + + -- Frederic Peters Mon, 25 Jun 2007 13:33:43 +0200 + +wireshark (0.99.5-1) unstable; urgency=low + + * New upstream release. + * debian/patches/09_idl2wrs.dpatch: updated to patch idl2wrs.sh.in. + + -- Frederic Peters Sun, 01 Apr 2007 08:58:40 +0000 + +wireshark (0.99.4-5) unstable; urgency=high + + * debian/patches/00list: really include backported security fixes, stupid me. + + -- Frederic Peters Mon, 26 Feb 2007 09:30:29 +0000 + +wireshark (0.99.4-4) unstable; urgency=high + + * Backported security fixes from 0.99.5pre1 + * The TCP dissector could hang or crash while reassembling HTTP packets. + * The HTTP dissector could crash. + * On some systems, the IEEE 802.11 dissector could crash. + * On some systems, the LLT dissector could crash. + + -- Frederic Peters Fri, 19 Jan 2007 21:49:04 +0100 + +wireshark (0.99.4-3) unstable; urgency=low + + * debian/control: added build dependency on libportaudio-dev so sniffed voip + G.711 calls are listenable. (closes: #398673) + * debian/patches/08_wireshark-desktop-menu.dpatch: removed extraneous .rej + file from patch. + + -- Frederic Peters Sun, 19 Nov 2006 16:39:26 +0000 + +wireshark (0.99.4-2) unstable; urgency=low + + * debian/wireshark-dev.files: added more headers, so that dissectors for + DCE/RPC interfaces can be build externally. (closes: #397292) + + -- Frederic Peters Mon, 6 Nov 2006 12:48:20 +0100 + +wireshark (0.99.4-1) unstable; urgency=high + + * Backported security patches from yet unreleased 0.99.4 (closes: #396258) + * http://www.wireshark.org/security/wnpa-sec-2006-03.html has details + * HTTP dissector could crash (CVE-2006-5468) + * LDAP dissector (and others) could crash (CVE-2006-5740) + * XOT dissector could attempt to allocate a large amount of memory and + crash (CVE-2006-4805) + * WBXML dissector could crash (CVE-2006-5469) + * MIME Multipart dissectar was susceptible to an off-by-one error + (CVE-2006-4574) + * Parsing a WEP key could cause a crash + * debian/control: disabled libcap-dev for kfreebsd and hurd + (closes: #375022) + + -- Frederic Peters Wed, 1 Nov 2006 10:05:05 +0100 + +wireshark (0.99.3a-2) unstable; urgency=low + + * debian/ethereal-common.NEWS: added a note about ethereal -> wireshark name + change. + + -- Frederic Peters Thu, 12 Oct 2006 15:42:48 +0200 + +wireshark (0.99.3a-1) unstable; urgency=low + + * New upstream release. + * debian/patches/11_iscsi_dissector.dpatch, 12_ipsec_dissector.dpatch, + 13_q2931_security_fix.dpatch: security patches that were backported. + * debian/patches/11_typo_packet-dap: fixed a typo s/diwsect/dissect/ + + -- Frederic Peters Mon, 18 Sep 2006 18:56:12 +0200 + +wireshark (0.99.2-6) unstable; urgency=low + + * Acknowledge NMU, thank Steinar. + * debian/wireshark-dev.postinst: removed rests of old Python module + compilation, it is not needed by new policy. (closes: #385357) + + -- Frederic Peters Wed, 6 Sep 2006 23:34:36 +0200 + +wireshark (0.99.2-5.1) unstable; urgency=medium + + * Non-maintainer upload. + * Backport security fixes from 0.99.3a (via Subversion); fixes + CVE-2006-4331, CVE-2006-4333 (CVE-2006-4330 was fixed in last upload, + and CVE-2006-4332 is not relevant for Debian). (Closes: #384529) + + -- Steinar H. Gunderson Tue, 5 Sep 2006 02:15:53 +0200 + +wireshark (0.99.2-5) unstable; urgency=low + + * debian/patches/11_iscsi_dissector.dpatch: new patch, fixing bug reported + against iSCSI dissector, taken from upstream (r18832) (closes: #381860) + + -- Frederic Peters Mon, 7 Aug 2006 16:59:50 +0200 + +wireshark (0.99.2-4) unstable; urgency=low + + * debian/control: set ethereal-dev section to devel, it was lost in copy + pasting. + * debian/control, debian/rules, debian/pyversions: updated to new Python + policy. (closes: #380986) + + -- Frederic Peters Tue, 1 Aug 2006 13:05:21 +0200 + +wireshark (0.99.2-3) unstable; urgency=low + + * debian/control: added dummy transitional packages to provide an upgrade + path from ethereal. (closes: #380647) + + -- Frederic Peters Mon, 31 Jul 2006 18:21:27 +0200 + wireshark (0.99.2-2) unstable; urgency=low * debian/rules: set --datadir so that DATAFILE_DIR is correct (it was diff --git a/debian/control b/debian/control index 1cf9379e28..7f06adb691 100644 --- a/debian/control +++ b/debian/control @@ -3,15 +3,16 @@ Section: net Priority: optional Maintainer: Frederic Peters Standards-Version: 3.7.2.0 -Build-Depends: libgtk2.0-dev (>=2.4.0-0), libpcap0.8-dev, flex, libz-dev, dpatch, debhelper (>= 3.0), libtool, python, automake1.9, autoconf, autotools-dev, libadns1-dev, xsltproc, docbook-xsl (>= 1.64.1.0-0), libpcre3-dev, libcap-dev, bison, libgnutls-dev +Build-Depends: libgtk2.0-dev (>=2.4.0-0), libpcap0.8-dev, flex, libz-dev, dpatch, debhelper (>= 5.0.37.2), libtool, python, automake1.9, autoconf, autotools-dev, libadns1-dev, xsltproc, docbook-xsl (>= 1.64.1.0-0), libpcre3-dev, libcap-dev [!kfreebsd-i386 !kfreebsd-amd64 !hurd-i386], bison, libgnutls-dev, python-support (>= 0.3), libportaudio-dev, libkrb5-dev Build-Conflicts: libsnmp4.2-dev, libsnmp-dev +XS-Python-Version: all Package: wireshark-common Architecture: any Depends: ${shlibs:Depends} -Recommends: wireshark (>= ${Source-Version}) | tshark (>= ${Source-Version}) -Replaces: ethereal-common -Conflicts: ethereal-common +Recommends: wireshark (>= ${binary:Version}) | tshark (>= ${binary:Version}) +Replaces: ethereal-common (<< 0.99.2-0) +Conflicts: ethereal-common (<< 0.99.2-0) Description: network traffic analyser (common files) Wireshark is a network traffic analyzer, or "sniffer", for Unix and Unix-like operating systems. A sniffer is a tool used to capture @@ -23,10 +24,10 @@ Description: network traffic analyser (common files) Package: wireshark Architecture: any -Depends: ${shlibs:Depends}, wireshark-common (= ${Source-Version}) +Depends: ${shlibs:Depends}, wireshark-common (= ${binary:Version}) Recommends: gksu -Replaces: ethereal -Conflicts: ethereal +Replaces: ethereal (<< 0.99.2-0) +Conflicts: ethereal (<< 0.99.2-0) Description: network traffic analyzer Wireshark is a network traffic analyzer, or "sniffer", for Unix and Unix-like operating systems. A sniffer is a tool used to capture @@ -37,9 +38,9 @@ Description: network traffic analyzer Package: tshark Architecture: any -Depends: ${shlibs:Depends}, wireshark-common (= ${Source-Version}) -Replaces: tethereal -Conflicts: tethereal +Depends: ${shlibs:Depends}, wireshark-common (= ${binary:Version}) +Replaces: tethereal (<< 0.99.2-0) +Conflicts: tethereal (<< 0.99.2-0) Description: network traffic analyzer (console) Wireshark is a network traffic analyzer, or "sniffer", for Unix and Unix-like operating systems. A sniffer is a tool used to capture @@ -52,9 +53,10 @@ Description: network traffic analyzer (console) Package: wireshark-dev Architecture: any Section: devel -Depends: ${shlibs:Depends}, omniidl (>> 1:3.0.4.1-10) | omniidl4 (>= 4.0.1-2) , libpcap0.8-dev, libtool, libglib2.0-dev, python, snacc, autotools-dev, debhelper, cdbs, automake1.8, autoconf -Replaces: ethereal-dev -Conflicts: ethereal-dev +Depends: ${shlibs:Depends}, omniidl (>> 1:3.0.4.1-10) | omniidl4 (>= 4.0.1-2) , libpcap0.8-dev, libtool, libglib2.0-dev, ${python:Depends}, snacc, autotools-dev, debhelper, cdbs, automake1.8, autoconf +Replaces: ethereal-dev (<< 0.99.2-0) +Conflicts: ethereal-dev (<< 0.99.2-0) +XB-Python-Version: ${python:Versions} Description: network traffic analyser (development tools) Wireshark is a network traffic analyzer, or "sniffer", for Unix and Unix-like operating systems. A sniffer is a tool used to capture @@ -64,3 +66,56 @@ Description: network traffic analyser (development tools) This package provides idl2wrs and other necessary files to develop new packet dissectors. +Package: ethereal-common +Architecture: any +Depends: wireshark-common (= ${binary:Version}) +Description: dummy upgrade package for ethereal -> wireshark + Wireshark is a network traffic analyzer, or "sniffer", for Unix and + Unix-like operating systems. A sniffer is a tool used to capture + packets off the wire. Wireshark decodes numerous protocols (too many + to list). + . + It was previously named ethereal. This is a transitional package + so ethereal users get wireshark on upgrades. This package handles + ethereal-common -> wireshark-common. It can be safely removed. + +Package: ethereal-dev +Architecture: any +Section: devel +Depends: wireshark-dev (= ${binary:Version}) +Description: dummy upgrade package for ethereal -> wireshark + Wireshark is a network traffic analyzer, or "sniffer", for Unix and + Unix-like operating systems. A sniffer is a tool used to capture + packets off the wire. Wireshark decodes numerous protocols (too many + to list). + . + It was previously named ethereal. This is a transitional package + so ethereal users get wireshark on upgrades. This package handles + ethereal-dev -> wireshark-dev. It can be safely removed. + +Package: ethereal +Architecture: any +Depends: wireshark (= ${binary:Version}) +Description: dummy upgrade package for ethereal -> wireshark + Wireshark is a network traffic analyzer, or "sniffer", for Unix and + Unix-like operating systems. A sniffer is a tool used to capture + packets off the wire. Wireshark decodes numerous protocols (too many + to list). + . + It was previously named ethereal. This is a transitional package + so ethereal users get wireshark on upgrades. This package handles + ethereal -> wireshark. It can be safely removed. + +Package: tethereal +Architecture: any +Depends: tshark (= ${binary:Version}) +Description: dummy upgrade package for ethereal -> wireshark + Wireshark is a network traffic analyzer, or "sniffer", for Unix and + Unix-like operating systems. A sniffer is a tool used to capture + packets off the wire. Wireshark decodes numerous protocols (too many + to list). + . + It was previously named ethereal. This is a transitional package + so ethereal users get wireshark on upgrades. This package handles + tethereal -> tshark. It can be safely removed. + diff --git a/debian/copyright b/debian/copyright index 464ee256b9..c71f438397 100644 --- a/debian/copyright +++ b/debian/copyright @@ -151,8 +151,8 @@ Note that libxml2 is MIT-licensed, not GPL. BSD & BSD-like -------------- -epan/crypt/crypt-md5.c: -epan/crypt/crypt-md5.h: +epan/crypt-md5.c: +epan/crypt-md5.h: * Copyright (C) 1999, 2000, 2002 Aladdin Enterprises. All rights reserved. * * This software is provided 'as-is', without any express or implied diff --git a/debian/patches/00list b/debian/patches/00list index bebecb3337..8e133f2046 100644 --- a/debian/patches/00list +++ b/debian/patches/00list @@ -8,14 +8,3 @@ 08_wireshark-desktop-menu 09_idl2wrs 10_wireshark_gen -01_idl2deb -02_asn2deb -03_preferences -04_drop-capabilities -05_plugin-libdir -06_giop-buffer -07_gcc4 -08_ethereal-desktop-menu -09_idl2wrs -10_ethereal_gen -11_diameter_vendors diff --git a/debian/patches/01_idl2deb.dpatch b/debian/patches/01_idl2deb.dpatch index 3e4782aa15..ed9931c4c7 100644 --- a/debian/patches/01_idl2deb.dpatch +++ b/debian/patches/01_idl2deb.dpatch @@ -422,427 +422,3 @@ diff -urNad --exclude=CVS --exclude=.svn ./idl2deb.dbk /tmp/dpep-work.K2bQz4/wir + version published by the Free Software Foundation. + + -#! /bin/sh /usr/share/dpatch/dpatch-run -## 01_idl2deb.dpatch by -## -## All lines beginning with `## DP:' are a description of the patch. -## DP: idl2deb - create Debian packages from idl2eth modules - -@DPATCH@ -diff -urNad --exclude=CVS --exclude=.svn ./idl2deb /tmp/dpep-work.K2bQz4/ethereal-0.10.11/idl2deb ---- ./idl2deb 1970-01-01 01:00:00.000000000 +0100 -+++ /tmp/dpep-work.K2bQz4/ethereal-0.10.11/idl2deb 2005-07-17 19:35:08.000000000 +0200 -@@ -0,0 +1,252 @@ -+#!/usr/bin/env python -+ -+# idl2deb - quick hack by W. Borgert to create -+# Debian GNU/Linux packages from idl2eth modules for Wireshark. -+# Copyright 2003, W. Borgert -+ -+# Makefile.am and configure.ac code by: -+# Copyright 2001, Ericsson Inc. -+# Frank Singleton -+# -+# Wireshark - Network traffic analyzer -+# By Gerald Combs -+# Copyright 1998 Gerald Combs -+ -+# 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -+ -+import getopt, os, string, sys, time -+ -+scriptinfo = """idl2deb version 2003-10-03 -+Copyright 2003, W. Borgert -+Free software, released under the terms of the GPL.""" -+ -+options = {'dbopts': "", -+ 'email': "invalid@invalid.invalid", -+ 'help': 0, -+ 'idl': None, -+ 'name': "No Name", -+ 'preserve': 0, -+ 'version': 0} -+ -+def bootstrap(): -+ """Generate Makefile.in and configure script.""" -+ os.system("aclocal") -+ os.system("autoconf") -+ os.system("libtoolize --automake --copy --force") -+ os.system("automake --add-missing --copy --foreign") -+ -+def create_file(filename, content, mode = None): -+ """Create a file with given content.""" -+ global options -+ if options['preserve'] and os.path.isfile(filename): -+ return -+ f = open(filename, 'w') -+ f.write(content) -+ f.close() -+ if mode: -+ os.chmod(filename, mode) -+ -+def create_files(version, deb, email, idl, name, iso, rfc): -+ """Create all files for the .deb build process.""" -+ base = idl.lower()[:-4] -+ create_file("Makefile.am", """# -+ -+plugindir = @plugindir@ -+ -+plugin_LTLIBRARIES = %s.la -+%s_la_SOURCES = packet-%s.c -+%s_la_LDFLAGS = -module -avoid-version -+ -+GLIB_CFLAGS = `pkg-config --cflags glib-2.0` -+GLIB_LIBS = `pkg-config --libs glib-2.0` -+BUILT_SOURCES = packet-%s.c -+INCLUDES = -DHAVE_CONFIG -DHAVE_SYS_TYPES_H -DHAVE_SYS_TIME_H \\ -+ -DHAVE_STDARG_H -D_U_=\"__attribute__((unused))\" \\ -+ -I/usr/include/ethereal -DWS_VAR_IMPORT=extern $(GLIB_CFLAGS) -+LDADD = $(GLIB_LIBS) -+ -+# Libs must be cleared, or else libtool won't create a shared module. -+# If your module needs to be linked against any particular libraries, -+# add them here. -+LIBS = -+ -+%s_la_DEPENDENCIES = packet-%s-static.o -+ -+packet-%s-static.o: packet-%s.c -+ $(LTCOMPILE) -c -o packet-%s-static.o \\ -+ -D__ETHEREAL_STATIC__ packet-%s.c -+ -+packet-%s.c: """ % ((base,) * 12) + idl + """ -+ $(IDL2ETH) $< > $@ -+""") -+ -+ create_file("configure.ac", """AC_INIT(%s, 1.0) -+AC_PROG_LIBTOOL -+AM_INIT_AUTOMAKE -+AM_MAINTAINER_MODE -+AC_PROG_CC -+AC_STDC_HEADERS -+AC_PROG_INSTALL -+AC_SUBST(CFLAGS) -+AC_SUBST(CPPFLAGS) -+AC_SUBST(LDFLAGS) -+PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.2.2) -+AC_SUBST(GLIB_CFLAGS) -+AC_SUBST(GLIB_LIBS) -+IDL2ETH=\"`type -p idl2eth`\" -+AC_SUBST(IDL2ETH) -+ETHEREAL_VERSION=\"%s\" -+plugindir=\"$libdir/ethereal/plugins/$ETHEREAL_VERSION\" -+AC_SUBST(plugindir) -+AC_OUTPUT([Makefile]) -+""" % (base, version)) -+ -+ if not os.path.isdir("debian"): -+ os.mkdir("debian") -+ -+ create_file("debian/rules", """#!/usr/bin/make -f -+ -+include /usr/share/cdbs/1/rules/debhelper.mk -+include /usr/share/cdbs/1/class/autotools.mk -+ -+PREFIX=`pwd`/debian/ethereal-giop-%s -+ -+binary-post-install/ethereal-giop-%s:: -+ rm -f $(PREFIX)/usr/lib/ethereal/plugins/%s/*.a -+""" % (base, base, version), 0755) -+ -+ create_file("debian/control", """Source: ethereal-giop-%s -+Section: net -+Priority: optional -+Maintainer: %s <%s> -+Standards-Version: 3.6.1.0 -+Build-Depends: ethereal-dev, autotools-dev, debhelper, cdbs -+ -+Package: ethereal-giop-%s -+Architecture: any -+Depends: ethereal (= %s), ${shlibs:Depends} -+Description: GIOP dissector for CORBA interface %s -+ This package provides a dissector for GIOP (General Inter-ORB -+ Protocol) for the Wireshark protocol analyser. It decodes the CORBA -+ (Common Object Request Broker Architecture) interfaces described -+ in the IDL (Interface Definition Language) file '%s.idl'. -+""" % (base, name, email, base, deb, base, base)) -+ -+ create_file("debian/changelog", -+ """ethereal-giop-%s (0.0.1-1) unstable; urgency=low -+ -+ * Automatically created package. -+ -+ -- %s <%s> %s -+""" % (base, name, email, rfc + "\n (" + iso + ")")) -+ -+ create_file("debian/copyright", -+ """This package has been created automatically be idl2deb on -+%s for Debian GNU/Linux. -+ -+Ethereal: http://www.ethereal.com/ -+ -+Copyright: -+ -+GPL, as evidenced by existence of GPL license file \"COPYING\". -+(the GNU GPL may be viewed on Debian systems in -+/usr/share/common-licenses/GPL) -+""" % (iso)) -+ -+def get_eth_version(): -+ """Detect version of ethereal-dev package.""" -+ deb = os.popen( -+ "dpkg-query -W --showformat='${Version}' ethereal-dev").read() -+ debv = string.find(deb, "-") -+ if debv == -1: debv = len(deb) -+ version = deb[string.find(deb, ":")+1:debv] -+ return version, deb -+ -+def get_time(): -+ """Detect current time and return ISO and RFC time string.""" -+ currenttime = time.gmtime() -+ return time.strftime("%Y-%m-%d %H:%M:%S +0000", currenttime), \ -+ time.strftime("%a, %d %b %Y %H:%M:%S +0000", currenttime) -+ -+def main(): -+ global options -+ process_opts(sys.argv) -+ iso, rfc = get_time() -+ version, deb = get_eth_version() -+ create_files(version, deb, -+ options['email'], options['idl'], options['name'], -+ iso, rfc) -+ bootstrap() -+ os.system("dpkg-buildpackage " + options['dbopts']) -+ -+def process_opts(argv): -+ """Process command line options.""" -+ global options -+ try: -+ opts, args = getopt.getopt(argv[1:], "d:e:hi:n:pv", -+ ["dbopts=", -+ "email=", -+ "help", -+ "idl=", -+ "name=", -+ "preserve", -+ "version"]) -+ except getopt.GetoptError: -+ usage(argv[0]) -+ sys.exit(1) -+ for o, a in opts: -+ if o in ("-d", "--dbopts"): -+ options['dbopts'] = a -+ if o in ("-e", "--email"): -+ options['email'] = a -+ if o in ("-h", "--help"): -+ options['help'] = 1 -+ if o in ("-i", "--idl"): -+ options['idl'] = a -+ if o in ("-n", "--name"): -+ options['name'] = a -+ if o in ("-p", "--preserve"): -+ options['preserve'] = 1 -+ if o in ("-v", "--version"): -+ options['version'] = 1 -+ if options['help']: -+ usage(argv[0]) -+ sys.exit(0) -+ if options['version']: -+ print scriptinfo -+ sys.exit(0) -+ if not options['idl']: -+ print "mandatory IDL file parameter missing" -+ sys.exit(1) -+ if not os.access(options['idl'], os.R_OK): -+ print "IDL file not accessible" -+ sys.exit(1) -+ -+def usage(name): -+ """Print usage help.""" -+ print "Usage: " + name + " \n" + \ -+ "Parameters are\n" + \ -+ " --dbopts -d opts, options for dpkg-buildpackage\n" + \ -+ " --email -e address, use e-mail address\n" + \ -+ " --idl -i idlfile, IDL file to use (mandatory)\n" + \ -+ " --help -h, print help and exit\n" + \ -+ " --name -n name, use user name\n" + \ -+ " --preserve -p, do not overwrite files\n" + \ -+ " --version -v, print version and exit\n" + \ -+ "Example:\n" + \ -+ name + " -e me@foo.net -i bar.idl -n \"My Name\" " + \ -+ "-d \"-rfakeroot -uc -us\"" -+if __name__ == '__main__': -+ main() -diff -urNad --exclude=CVS --exclude=.svn ./idl2deb.dbk /tmp/dpep-work.K2bQz4/ethereal-0.10.11/idl2deb.dbk ---- ./idl2deb.dbk 1970-01-01 01:00:00.000000000 +0100 -+++ /tmp/dpep-work.K2bQz4/ethereal-0.10.11/idl2deb.dbk 2005-07-17 19:35:08.000000000 +0200 -@@ -0,0 +1,157 @@ -+ -+idl2deb"> -+ debacle@debian.org"> -+ -+ Debian GNU/Linux"> -+]> -+ -+ -+ -+
-+ &email; -+
-+ -+ W. -+ Borgert -+ -+ -+ 2003 -+ 2005 -+ &author; -+ -+ 2003-08-17 -+ -+ CORBA -+ IDL -+ Ethereal -+ -+ -+ -+ 2003-08-17 -+ 2003-08-17 -+ debacle -+ First version. -+ -+ -+
-+ -+ idl2deb -+ -+ 1 -+ -+ -+ idl2deb -+ -+ create a Debian package for CORBA monitoring from IDL -+ -+ -+ -+ &command; -+ -+ -+ -+ -+ -i idlfile -+ --idl=idlfile -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ Description -+ -+ This manual page documents briefly the -+ idl2deb command. -+ -+ &command; takes an CORBA IDL file as input and creates a -+ Debian package from it. The package contains a loadable module -+ for the ethereal network analyser. -+ -+ -+ Options -+ -+ -+ -+ -+ -+ -+ options for dpkg-buildpackage. -+ -+ -+ -+ -+ -+ -+ use e-mail address. -+ -+ -+ -+ -+ -+ -+ IDL file to use (mandatory). -+ -+ -+ -+ -+ -+ -+ -+ print help and exit. -+ -+ -+ -+ -+ -+ -+ use user name. -+ -+ -+ -+ -+ -+ -+ do not overwrite files. -+ -+ -+ -+ -+ -+ -+ print version and exit. -+ -+ -+ -+ -+ Example: -+ -+ /usr/bin/idl2deb -e me@foo.net -i bar.idl \ -+-n "My Name" -d "-rfakeroot -uc -us" -+ -+ -+ -+ See Also -+ -+ A lot of tools are used, which you have to -+ apt-get install: ethereal-dev, python, -+ cdbs, autotools-dev, debhelper, dpkg-dev. -+ -+ -+ -+ Copying -+ -+ This manual page was written by &author; &email; for -+ &debian; (but may be used by others). Permission is granted to -+ copy, distribute and/or modify this document under the terms of -+ the GNU General Public License, Version 2 or any later -+ version published by the Free Software Foundation. -+ -+
diff --git a/debian/patches/02_asn2deb.dpatch b/debian/patches/02_asn2deb.dpatch index 846a80c003..6ceff257ef 100644 --- a/debian/patches/02_asn2deb.dpatch +++ b/debian/patches/02_asn2deb.dpatch @@ -390,395 +390,3 @@ diff -urNad --exclude=CVS --exclude=.svn ./asn2deb.dbk /tmp/dpep-work.5BSR7A/wir + version published by the Free Software Foundation. + + -#! /bin/sh /usr/share/dpatch/dpatch-run -## 02_asn2deb.dpatch by -## -## All lines beginning with `## DP:' are a description of the patch. -## DP: asn2deb - create Debian packages from ASN.1 files - -@DPATCH@ -diff -urNad --exclude=CVS --exclude=.svn ./asn2deb /tmp/dpep-work.5BSR7A/ethereal-0.10.11/asn2deb ---- ./asn2deb 1970-01-01 01:00:00.000000000 +0100 -+++ /tmp/dpep-work.5BSR7A/ethereal-0.10.11/asn2deb 2005-07-17 19:37:02.000000000 +0200 -@@ -0,0 +1,219 @@ -+#!/usr/bin/env python -+ -+# asn2deb - quick hack by W. Borgert to create -+# Debian GNU/Linux packages from ASN.1 files for Wireshark. -+# Copyright 2004, W. Borgert -+ -+# ASN.1 module for Wireshark, use of snacc type table: -+# Copyright 2003, Matthijs Melchior -+# -+# Wireshark - Network traffic analyzer -+# By Gerald Combs -+# Copyright 1998 Gerald Combs -+ -+# 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -+ -+import getopt, os, string, sys, time -+ -+scriptinfo = """asn2deb version 2004-02-17 -+Copyright 2004, W. Borgert -+Free software, released under the terms of the GPL.""" -+ -+options = {'asn': None, -+ 'dbopts': "", -+ 'email': "invalid@invalid.invalid", -+ 'help': 0, -+ 'name': "No Name", -+ 'preserve': 0, -+ 'version': 0} -+ -+def bootstrap(): -+ """Generate Makefile.in and configure script.""" -+ os.system("aclocal-1.7") -+ os.system("autoconf") -+ os.system("automake-1.7 --add-missing --copy --foreign") -+ -+def create_file(filename, content, mode = None): -+ """Create a file with given content.""" -+ global options -+ if options['preserve'] and os.path.isfile(filename): -+ return -+ f = open(filename, 'w') -+ f.write(content) -+ f.close() -+ if mode: -+ os.chmod(filename, mode) -+ -+def create_files(version, deb, email, asn, name, iso, rfc): -+ """Create all files for the .deb build process.""" -+ base = asn.lower()[:-5] -+ create_file("Makefile.am", """# -+ -+BUILT_SOURCES = %s.tt -+asn1ttdir = $(datadir)/ethereal/asn1 -+asn1tt_DATA = %s.tt -+ -+%s.tt: """ % ((base,) * 3) + asn + """ -+ snacc -u /usr/include/snacc/asn1/asn-useful.asn1 -T $@ $< -+""") -+ -+ create_file("configure.ac", """AC_INIT(%s, 1.0) -+AM_INIT_AUTOMAKE -+AM_MAINTAINER_MODE -+AC_PROG_INSTALL -+SNACC=\"`type -p snacc`\" -+AC_SUBST(SNACC) -+dnl ETHEREAL_VERSION=\"%s\" -+dnl plugindir=\"$prefix/share/ethereal/asn.1\" -+dnl AC_SUBST(plugindir) -+AC_OUTPUT([Makefile]) -+""" % (base, version)) -+ -+ if not os.path.isdir("debian"): -+ os.mkdir("debian") -+ -+ create_file("debian/rules", """#!/usr/bin/make -f -+ -+include /usr/share/cdbs/1/rules/debhelper.mk -+include /usr/share/cdbs/1/class/autotools.mk -+ -+PREFIX=`pwd`/debian/ethereal-asn1-%s -+ -+binary-post-install/ethereal-asn1-%s:: -+ rm -f $(PREFIX)/usr/lib/ethereal/plugins/%s/*.a -+""" % (base, base, version), 0755) -+ -+ create_file("debian/control", """Source: ethereal-asn1-%s -+Section: net -+Priority: optional -+Maintainer: %s <%s> -+Standards-Version: 3.6.1.0 -+Build-Depends: snacc, autotools-dev, debhelper, cdbs -+ -+Package: ethereal-asn1-%s -+Architecture: all -+Depends: ethereal (= %s) -+Description: ASN.1/BER dissector for %s -+ This package provides a type table for decoding BER (Basic Encoding -+ Rules) data over TCP or UDP, described by an ASN.1 (Abstract Syntax -+ Notation 1) file '%s.asn1'. -+""" % (base, name, email, base, deb, base, base)) -+ -+ create_file("debian/changelog", -+ """ethereal-asn1-%s (0.0.1-1) unstable; urgency=low -+ -+ * Automatically created package. -+ -+ -- %s <%s> %s -+""" % (base, name, email, rfc + "\n (" + iso + ")")) -+ -+ create_file("debian/copyright", -+ """This package has been created automatically be asn2deb on -+%s for Debian GNU/Linux. -+ -+Ethereal: http://www.ethereal.com/ -+ -+Copyright: -+ -+GPL, as evidenced by existence of GPL license file \"COPYING\". -+(the GNU GPL may be viewed on Debian systems in -+/usr/share/common-licenses/GPL) -+""" % (iso)) -+ -+def get_eth_version(): -+ """Detect version of ethereal-dev package.""" -+ deb = os.popen( -+ "dpkg-query -W --showformat='${Version}' ethereal-dev").read() -+ debv = string.find(deb, "-") -+ if debv == -1: debv = len(deb) -+ version = deb[string.find(deb, ":")+1:debv] -+ return version, deb -+ -+def get_time(): -+ """Detect current time and return ISO and RFC time string.""" -+ currenttime = time.gmtime() -+ return time.strftime("%Y-%m-%d %H:%M:%S +0000", currenttime), \ -+ time.strftime("%a, %d %b %Y %H:%M:%S +0000", currenttime) -+ -+def main(): -+ global options -+ process_opts(sys.argv) -+ iso, rfc = get_time() -+ version, deb = get_eth_version() -+ create_files(version, deb, -+ options['email'], options['asn'], options['name'], -+ iso, rfc) -+ bootstrap() -+ os.system("dpkg-buildpackage " + options['dbopts']) -+ -+def process_opts(argv): -+ """Process command line options.""" -+ global options -+ try: -+ opts, args = getopt.getopt(argv[1:], "a:d:e:hn:pv", -+ ["asn=", -+ "dbopts=", -+ "email=", -+ "help", -+ "name=", -+ "preserve", -+ "version"]) -+ except getopt.GetoptError: -+ usage(argv[0]) -+ sys.exit(1) -+ for o, a in opts: -+ if o in ("-a", "--asn"): -+ options['asn'] = a -+ if o in ("-d", "--dbopts"): -+ options['dbopts'] = a -+ if o in ("-e", "--email"): -+ options['email'] = a -+ if o in ("-h", "--help"): -+ options['help'] = 1 -+ if o in ("-n", "--name"): -+ options['name'] = a -+ if o in ("-p", "--preserve"): -+ options['preserve'] = 1 -+ if o in ("-v", "--version"): -+ options['version'] = 1 -+ if options['help']: -+ usage(argv[0]) -+ sys.exit(0) -+ if options['version']: -+ print scriptinfo -+ sys.exit(0) -+ if not options['asn']: -+ print "mandatory ASN.1 file parameter missing" -+ sys.exit(1) -+ if not os.access(options['asn'], os.R_OK): -+ print "ASN.1 file not accessible" -+ sys.exit(1) -+ -+def usage(name): -+ """Print usage help.""" -+ print "Usage: " + name + " \n" + \ -+ "Parameters are\n" + \ -+ " --asn -a asn1file, ASN.1 file to use (mandatory)\n" + \ -+ " --dbopts -d opts, options for dpkg-buildpackage\n" + \ -+ " --email -e address, use e-mail address\n" + \ -+ " --help -h, print help and exit\n" + \ -+ " --name -n name, use user name\n" + \ -+ " --preserve -p, do not overwrite files\n" + \ -+ " --version -v, print version and exit\n" + \ -+ "Example:\n" + \ -+ name + " -e me@foo.net -a bar.asn1 -n \"My Name\" " + \ -+ "-d \"-rfakeroot -uc -us\"" -+if __name__ == '__main__': -+ main() -diff -urNad --exclude=CVS --exclude=.svn ./asn2deb.dbk /tmp/dpep-work.5BSR7A/ethereal-0.10.11/asn2deb.dbk ---- ./asn2deb.dbk 1970-01-01 01:00:00.000000000 +0100 -+++ /tmp/dpep-work.5BSR7A/ethereal-0.10.11/asn2deb.dbk 2005-07-17 19:37:02.000000000 +0200 -@@ -0,0 +1,158 @@ -+ -+asn2deb"> -+ debacle@debian.org"> -+ -+ Debian GNU/Linux"> -+]> -+ -+ -+ -+
-+ &email; -+
-+ -+ W. -+ Borgert -+ -+ -+ 2003 -+ 2005 -+ &author; -+ -+ 2004-02-18 -+ -+ ASN.1 -+ BER -+ Ethereal -+ -+ -+ -+ 1 -+ 2004-02-18 -+ debacle -+ First version. -+ -+ -+
-+ -+ asn2deb -+ -+ 1 -+ -+ -+ asn2deb -+ -+ create a Debian package for BER monitoring from ASN.1 -+ -+ -+ -+ &command; -+ -a ASN.1 file -+ --asn=ASN.1 file -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ -+ Description -+ -+ This manual page documents briefly the -+ asn2deb command. -+ -+ &command; takes an ASN.1 file as input and creates a Debian -+ package from it. The package contains a loadable type table file -+ for the ethereal network analyser. The type table is generated by -+ the ASN.1 compiler snacc. -+ -+ -+ Options -+ -+ -+ -+ -+ -+ -+ ASN.1 file to use (mandatory). -+ -+ -+ -+ -+ -+ -+ options for dpkg-buildpackage. -+ -+ -+ -+ -+ -+ -+ use e-mail address. -+ -+ -+ -+ -+ -+ -+ -+ print help and exit. -+ -+ -+ -+ -+ -+ -+ use user name. -+ -+ -+ -+ -+ -+ -+ do not overwrite files. -+ -+ -+ -+ -+ -+ -+ print version and exit. -+ -+ -+ -+ -+ Example: -+ -+ /usr/bin/asn2deb -e me@foo.net -a bar.asn1 \ -+-n "My Name" -d "-rfakeroot -uc -us" -+ -+ -+ -+ See Also -+ -+ A lot of tools are used, which you have to -+ apt-get install: ethereal-dev, python, -+ cdbs, autotools-dev, debhelper, dpkg-dev, snacc. -+ -+ -+ -+ Copying -+ -+ This manual page was written by &author; &email; for -+ &debian; (but may be used by others). Permission is granted to -+ copy, distribute and/or modify this document under the terms of -+ the GNU General Public License, Version 2 or any later -+ version published by the Free Software Foundation. -+ -+
diff --git a/debian/patches/03_preferences.dpatch b/debian/patches/03_preferences.dpatch index e33f63c778..43efafc5a9 100644 --- a/debian/patches/03_preferences.dpatch +++ b/debian/patches/03_preferences.dpatch @@ -24,31 +24,3 @@ diff -urNad wireshark-0.10.13~/configure.in wireshark-0.10.13/configure.in fi AC_PATH_PROG(LEX, flex) -#! /bin/sh /usr/share/dpatch/dpatch-run -## 03_preferences.dpatch by -## -## All lines beginning with `## DP:' are a description of the patch. -## DP: use known working monospace font and Debian sensible-browser - -@DPATCH@ -diff -urNad --exclude=CVS --exclude=.svn ./epan/prefs.c /tmp/dpep-work.b0Uwke/ethereal-0.10.11/epan/prefs.c ---- ./epan/prefs.c 2005-07-17 18:36:36.000000000 +0200 -+++ /tmp/dpep-work.b0Uwke/ethereal-0.10.11/epan/prefs.c 2005-07-17 18:38:45.000000000 +0200 -@@ -1026,7 +1026,7 @@ - */ - prefs.gui_font_name1 = g_strdup("-misc-fixed-medium-r-semicondensed-*-*-120-*-*-*-*-iso8859-1"); - /* XXX- is this the correct default font name for GTK2 none win32? */ -- prefs.gui_font_name2 = g_strdup("fixed medium 12"); -+ prefs.gui_font_name2 = g_strdup("monospace 10"); - #endif - prefs.gui_marked_fg.pixel = 65535; - prefs.gui_marked_fg.red = 65535; -@@ -1046,7 +1046,7 @@ - prefs.gui_fileopen_preview = 3; - prefs.gui_ask_unsaved = TRUE; - prefs.gui_find_wrap = TRUE; -- prefs.gui_webbrowser = g_strdup("mozilla %s"); -+ prefs.gui_webbrowser = g_strdup("sensible-browser %s"); - prefs.gui_window_title = g_strdup(""); - prefs.gui_layout_type = layout_type_5; - prefs.gui_layout_content_1 = layout_pane_content_plist; diff --git a/debian/patches/04_drop-capabilities.dpatch b/debian/patches/04_drop-capabilities.dpatch index 8ee8786667..b11f6fea9e 100644 --- a/debian/patches/04_drop-capabilities.dpatch +++ b/debian/patches/04_drop-capabilities.dpatch @@ -5,10 +5,10 @@ ## DP: Drop all capabilities but CAP_NET_RAW @DPATCH@ -diff -urNad wireshark-0.99.2~/configure.in wireshark-0.99.2/configure.in ---- wireshark-0.99.2~/configure.in 2006-07-18 21:59:41.000000000 +0200 -+++ wireshark-0.99.2/configure.in 2006-07-18 21:59:46.000000000 +0200 -@@ -831,6 +831,47 @@ +diff -urNad wireshark-0.99.4/configure.in /tmp/dpep.4XA51P/wireshark-0.99.4/configure.in +--- wireshark-0.99.4/configure.in 2006-11-01 10:29:08.241544023 +0100 ++++ /tmp/dpep.4XA51P/wireshark-0.99.4/configure.in 2006-11-01 10:29:56.756554526 +0100 +@@ -869,6 +869,47 @@ fi @@ -56,15 +56,15 @@ diff -urNad wireshark-0.99.2~/configure.in wireshark-0.99.2/configure.in dnl Check if wireshark should be installed setuid AC_ARG_ENABLE(setuid-install, [ --enable-setuid-install install wireshark as setuid. DANGEROUS!!! [default=no]],enable_setuid_install=$enableval,enable_setuid_install=no) -@@ -1448,3 +1489,4 @@ - echo " Use IPv6 name resolution : $enable_ipv6" - echo " Use UCD SNMP/Net-SNMP library : $snmp_libs_message" - echo " Use gnutls library : $tls_message" -+echo " Use cap library : $cap_message" -diff -urNad wireshark-0.99.2~/gtk/main.c wireshark-0.99.2/gtk/main.c ---- wireshark-0.99.2~/gtk/main.c 2006-07-17 21:56:45.000000000 +0200 -+++ wireshark-0.99.2/gtk/main.c 2006-07-18 21:59:46.000000000 +0200 -@@ -1718,6 +1718,9 @@ +@@ -1480,3 +1521,4 @@ + echo " Use IPv6 name resolution : $enable_ipv6" + echo " Use UCD SNMP/Net-SNMP library : $snmp_libs_message" + echo " Use gnutls library : $tls_message" ++echo " Use cap library : $cap_message" +diff -urNad wireshark-0.99.4/gtk/main.c /tmp/dpep.4XA51P/wireshark-0.99.4/gtk/main.c +--- wireshark-0.99.4/gtk/main.c 2006-11-01 10:28:14.113375310 +0100 ++++ /tmp/dpep.4XA51P/wireshark-0.99.4/gtk/main.c 2006-11-01 10:29:11.095132827 +0100 +@@ -1775,6 +1775,9 @@ { gchar *capture_msg; @@ -74,10 +74,10 @@ diff -urNad wireshark-0.99.2~/gtk/main.c wireshark-0.99.2/gtk/main.c gtk_statusbar_pop(GTK_STATUSBAR(packets_bar), packets_ctx); -diff -urNad wireshark-0.99.2~/tshark.c wireshark-0.99.2/tshark.c ---- wireshark-0.99.2~/tshark.c 2006-07-17 22:00:06.000000000 +0200 -+++ wireshark-0.99.2/tshark.c 2006-07-18 22:01:35.000000000 +0200 -@@ -749,6 +749,10 @@ +diff -urNad wireshark-0.99.4/tshark.c /tmp/dpep.4XA51P/wireshark-0.99.4/tshark.c +--- wireshark-0.99.4/tshark.c 2006-11-01 10:28:14.115375722 +0100 ++++ /tmp/dpep.4XA51P/wireshark-0.99.4/tshark.c 2006-11-01 10:29:11.097133240 +0100 +@@ -751,6 +751,10 @@ capture_opts_init(&capture_opts, NULL /* cfile */); #endif @@ -88,9 +88,9 @@ diff -urNad wireshark-0.99.2~/tshark.c wireshark-0.99.2/tshark.c timestamp_set_type(TS_RELATIVE); timestamp_set_precision(TS_PREC_AUTO); -diff -urNad wireshark-0.99.2~/util.c wireshark-0.99.2/util.c ---- wireshark-0.99.2~/util.c 2006-07-17 22:00:05.000000000 +0200 -+++ wireshark-0.99.2/util.c 2006-07-18 21:59:46.000000000 +0200 +diff -urNad wireshark-0.99.4/util.c /tmp/dpep.4XA51P/wireshark-0.99.4/util.c +--- wireshark-0.99.4/util.c 2006-11-01 10:28:14.116375929 +0100 ++++ /tmp/dpep.4XA51P/wireshark-0.99.4/util.c 2006-11-01 10:29:11.098133446 +0100 @@ -40,6 +40,10 @@ #include #include @@ -102,7 +102,7 @@ diff -urNad wireshark-0.99.2~/util.c wireshark-0.99.2/util.c #include "util.h" /* -@@ -180,3 +184,46 @@ +@@ -192,3 +196,46 @@ } return ""; } @@ -149,196 +149,13 @@ diff -urNad wireshark-0.99.2~/util.c wireshark-0.99.2/util.c + cap_free(&cap_d); +} +#endif /* HAVE_LIBCAP */ -diff -urNad wireshark-0.99.2~/util.h wireshark-0.99.2/util.h ---- wireshark-0.99.2~/util.h 2006-07-17 22:00:06.000000000 +0200 -+++ wireshark-0.99.2/util.h 2006-07-18 22:01:52.000000000 +0200 +diff -urNad wireshark-0.99.4/util.h /tmp/dpep.4XA51P/wireshark-0.99.4/util.h +--- wireshark-0.99.4/util.h 2006-11-01 10:28:14.116375929 +0100 ++++ /tmp/dpep.4XA51P/wireshark-0.99.4/util.h 2006-11-01 10:29:11.098133446 +0100 @@ -53,6 +53,15 @@ const char *get_conn_cfilter(void); -+#ifdef HAVE_LIBCAP -+/* -+ * Limit the potential impact of undiscovered security vulnerabilities by -+ * dropping all capabilities except the sniffer capability we need to do our -+ * job. -+ */ -+void dropexcesscapabilities(void); -+#endif /* HAVE_LIBCAP */ -+ - #ifdef __cplusplus - } - #endif /* __cplusplus */ -#! /bin/sh /usr/share/dpatch/dpatch-run -## 04_drop-capabilities.dpatch by -## -## All lines beginning with `## DP:' are a description of the patch. -## DP: Drop all capabilities but CAP_NET_RAW - -@DPATCH@ -diff -urNad --exclude=CVS --exclude=.svn ./config.h.in /tmp/dpep-work.rT2mW8/ethereal-0.10.12/config.h.in ---- ./config.h.in 2005-07-31 12:50:13.000000000 +0200 -+++ /tmp/dpep-work.rT2mW8/ethereal-0.10.12/config.h.in 2005-07-31 12:54:13.000000000 +0200 -@@ -55,6 +55,9 @@ - /* Define if krb5.h defines KEYTYPE_ARCFOUR_56 */ - #undef HAVE_KEYTYPE_ARCFOUR_56 - -+/* Define if libcap is available to restrict process capabilities */ -+#undef HAVE_LIBCAP -+ - /* Define to use libpcap library */ - #undef HAVE_LIBPCAP - -diff -urNad --exclude=CVS --exclude=.svn ./configure.in /tmp/dpep-work.rT2mW8/ethereal-0.10.12/configure.in ---- ./configure.in 2005-07-31 12:50:26.000000000 +0200 -+++ /tmp/dpep-work.rT2mW8/ethereal-0.10.12/configure.in 2005-07-31 12:54:13.000000000 +0200 -@@ -737,6 +737,47 @@ - fi - - -+dnl libcap check -+AC_MSG_CHECKING(whether to use libcap to improve security) -+ -+AC_ARG_WITH(cap, -+[ --with-cap[[=DIR]] use libcap (located in directory DIR, if supplied) to improve security. [[default=yes, if available]]], -+[ -+ if test $withval = no -+ then -+ want_cap=no -+ elif test $withval = yes -+ then -+ want_cap=yes -+ else -+ want_cap=yes -+ cap_dir=$withval -+ fi -+],[ -+ # -+ # Use libcap if it's present, otherwise don't. -+ # -+ want_cap=ifavailable -+ cap_dir= -+]) -+if test "x$want_cap" = "xno" ; then -+ AC_MSG_RESULT(no) -+ cap_message="no (disabled by explicit request)" -+else -+ AC_MSG_RESULT(yes) -+ AC_CHECK_LIB(cap, cap_init, [ -+ AC_DEFINE(HAVE_LIBCAP, 1, [ -+ Define if libcap is available to restrict process capabilities -+ ]) -+ LIBS="$LIBS -lcap" -+ cap_message="yes" -+ ], [ -+ AC_MSG_WARN([libcap check failed]) -+ cap_message="no (check failed)" -+ ]) -+fi -+ -+ - dnl Check if wireshark should be installed setuid - AC_ARG_ENABLE(setuid-install, - [ --enable-setuid-install install ethereal as setuid. DANGEROUS!!! [default=no]],enable_setuid_install=$enableval,enable_setuid_install=no) -@@ -1322,3 +1363,4 @@ - echo " Use SSL crypto library : $ssl_message" - echo " Use IPv6 name resolution : $enable_ipv6" - echo " Use UCD SNMP/Net-SNMP library : $snmp_libs_message" -+echo " Use cap library : $cap_message" -diff -urNad --exclude=CVS --exclude=.svn ./gtk/main.c /tmp/dpep-work.rT2mW8/ethereal-0.10.12/gtk/main.c ---- ./gtk/main.c 2005-07-31 12:50:37.000000000 +0200 -+++ /tmp/dpep-work.rT2mW8/ethereal-0.10.12/gtk/main.c 2005-07-31 12:54:13.000000000 +0200 -@@ -1671,6 +1671,9 @@ - runtime_info_str = g_string_new("Running "); - get_runtime_version_info(runtime_info_str); - -+#ifdef HAVE_LIBCAP -+ dropexcesscapabilities(); -+#endif - - /*** "pre-scan" the command line parameters, if we have "console only" parameters ***/ - /* (e.g. don't start GTK+, if we only have to show the command line help) */ -diff -urNad --exclude=CVS --exclude=.svn ./tethereal.c /tmp/dpep-work.rT2mW8/ethereal-0.10.12/tethereal.c ---- ./tethereal.c 2005-07-31 12:49:37.000000000 +0200 -+++ /tmp/dpep-work.rT2mW8/ethereal-0.10.12/tethereal.c 2005-07-31 12:54:13.000000000 +0200 -@@ -663,6 +663,10 @@ - capture_opts_init(&capture_opts, NULL /* cfile */); - #endif - -+#ifdef HAVE_LIBCAP -+ dropexcesscapabilities(); -+#endif -+ - set_timestamp_setting(TS_RELATIVE); - - /* Register all dissectors; we must do this before checking for the -diff -urNad --exclude=CVS --exclude=.svn ./util.c /tmp/dpep-work.rT2mW8/ethereal-0.10.12/util.c ---- ./util.c 2005-07-31 12:49:42.000000000 +0200 -+++ /tmp/dpep-work.rT2mW8/ethereal-0.10.12/util.c 2005-07-31 12:56:35.000000000 +0200 -@@ -69,6 +69,10 @@ - #include - #endif - -+#ifdef HAVE_LIBCAP -+#include -+#endif -+ - #include "util.h" - - /* -@@ -311,3 +315,46 @@ - } - return ""; - } -+ -+ -+#ifdef HAVE_LIBCAP -+void dropexcesscapabilities(void) -+{ -+ cap_t cap_d; -+ cap_value_t cap_values[] = { -+ /* capabilities we need to keep */ -+ CAP_NET_RAW, -+ CAP_DAC_READ_SEARCH -+ }; -+ cap_flag_value_t current_cap; -+ -+ cap_d = cap_get_proc(); -+ if (!cap_d) { -+ g_warning("Could not get capabilities\n"); -+ return; -+ } -+ -+ cap_get_flag(cap_d, CAP_NET_RAW, CAP_EFFECTIVE, ¤t_cap); -+ cap_free(&cap_d); -+ if (current_cap == CAP_CLEAR) { -+ return; -+ } -+ -+ cap_d = cap_init(); -+ if (!cap_d) { -+ g_warning("Could not alloc cap struct\n"); -+ return; -+ } -+ -+ cap_clear(cap_d); -+ cap_set_flag(cap_d, CAP_PERMITTED, 2, cap_values, CAP_SET); -+ cap_set_flag(cap_d, CAP_EFFECTIVE, 2, cap_values, CAP_SET); -+ -+ if (cap_set_proc(cap_d) != 0) { -+ g_warning("Could not set capabilities: %s\n", strerror(errno)); -+ cap_free(&cap_d); -+ return; -+ } -+ cap_free(&cap_d); -+} -+#endif /* HAVE_LIBCAP */ -diff -urNad --exclude=CVS --exclude=.svn ./util.h /tmp/dpep-work.rT2mW8/ethereal-0.10.12/util.h ---- ./util.h 2005-07-31 12:49:42.000000000 +0200 -+++ /tmp/dpep-work.rT2mW8/ethereal-0.10.12/util.h 2005-07-31 12:54:13.000000000 +0200 -@@ -43,6 +43,15 @@ - /* Create a capture filter for the connection */ - char *get_conn_cfilter(void); - +#ifdef HAVE_LIBCAP +/* + * Limit the potential impact of undiscovered security vulnerabilities by diff --git a/debian/patches/05_plugin-libdir.dpatch b/debian/patches/05_plugin-libdir.dpatch index 83c55b551d..e17ed9c169 100644 --- a/debian/patches/05_plugin-libdir.dpatch +++ b/debian/patches/05_plugin-libdir.dpatch @@ -25,32 +25,4 @@ diff -urNad --exclude=CVS --exclude=.svn ./configure.in /tmp/dpep-work.avwGQ1/wi +PLUGIN_LIBS="-L../../epan $GLIB_LIBS" AC_SUBST(PLUGIN_LIBS) - dnl libtool defs -#! /bin/sh /usr/share/dpatch/dpatch-run -## 05_plugin-libdir.dpatch by -## -## All lines beginning with `## DP:' are a description of the patch. -## DP: No description. - -@DPATCH@ -diff -urNad --exclude=CVS --exclude=.svn ./configure.in /tmp/dpep-work.avwGQ1/ethereal-0.10.11/configure.in ---- ./configure.in 2005-05-02 23:28:53.000000000 +0200 -+++ /tmp/dpep-work.avwGQ1/ethereal-0.10.11/configure.in 2005-07-17 18:46:26.000000000 +0200 -@@ -1130,7 +1130,7 @@ - dnl check whether plugins should be enabled and, if they should be, - dnl check for plugins directory - stolen from Amanda's configure.in - dnl --plugindir="$libdir/ethereal/plugins/$VERSION" -+plugindir="$libdir/plugins/$VERSION" - AC_ARG_WITH(plugins, - [ --with-plugins[[=DIR]] support plugins (installed in DIR, if supplied).], - [ -@@ -1172,7 +1172,7 @@ - # - # The plugin dissectors reside in ./plugins/PROTO/ - # --PLUGIN_LIBS="-L../../epan -lethereal $GLIB_LIBS" -+PLUGIN_LIBS="-L../../epan $GLIB_LIBS" - AC_SUBST(PLUGIN_LIBS) - dnl libtool defs diff --git a/debian/patches/06_giop-buffer.dpatch b/debian/patches/06_giop-buffer.dpatch index 18740118be..4c3cc6a799 100644 --- a/debian/patches/06_giop-buffer.dpatch +++ b/debian/patches/06_giop-buffer.dpatch @@ -17,22 +17,3 @@ diff -urNad --exclude=CVS --exclude=.svn ./epan/dissectors/packet-giop.c /tmp/dp saved_proto = pinfo->current_proto; for (i=0; i -## -## All lines beginning with `## DP:' are a description of the patch. -## DP: No description. - -@DPATCH@ -diff -urNad --exclude=CVS --exclude=.svn ./epan/dissectors/packet-giop.c /tmp/dpep-work.7N90PO/ethereal-0.10.11/epan/dissectors/packet-giop.c ---- ./epan/dissectors/packet-giop.c 2005-07-17 18:52:08.000000000 +0200 -+++ /tmp/dpep-work.7N90PO/ethereal-0.10.11/epan/dissectors/packet-giop.c 2005-07-17 18:55:32.000000000 +0200 -@@ -1760,6 +1760,8 @@ - - if (len == 0) - return FALSE; -+ if (*offset > header->message_size) -+ return FALSE; - - saved_proto = pinfo->current_proto; - for (i=0; i -## -## All lines beginning with `## DP:' are a description of the patch. -## DP: No description. - -@DPATCH@ -diff -urNad --exclude=CVS --exclude=.svn ./epan/dissectors/packet-cmip.c /tmp/dpep-work.5KBC28/ethereal-0.10.11/epan/dissectors/packet-cmip.c ---- ./epan/dissectors/packet-cmip.c 2005-07-17 18:52:24.000000000 +0200 -+++ /tmp/dpep-work.5KBC28/ethereal-0.10.11/epan/dissectors/packet-cmip.c 2005-07-17 18:53:53.000000000 +0200 -@@ -1895,7 +1895,8 @@ - return offset; - } - -- -+int -+dissect_cmip_InvokeIDType(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_); - - static int - dissect_cmip_Argument(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) { -diff -urNad --exclude=CVS --exclude=.svn ./epan/dissectors/packet-cms.c /tmp/dpep-work.5KBC28/ethereal-0.10.11/epan/dissectors/packet-cms.c ---- ./epan/dissectors/packet-cms.c 2005-07-17 18:51:59.000000000 +0200 -+++ /tmp/dpep-work.5KBC28/ethereal-0.10.11/epan/dissectors/packet-cms.c 2005-07-17 18:53:59.000000000 +0200 -@@ -330,6 +330,8 @@ - return dissect_cms_T_eContentType(FALSE, tvb, offset, pinfo, tree, hf_cms_eContentType); - } - -+static int -+dissect_cms_OCTET_STRING(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_); - - static int - dissect_cms_T_eContent(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index _U_) { diff --git a/debian/patches/08_ethereal-desktop-menu.dpatch b/debian/patches/08_ethereal-desktop-menu.dpatch deleted file mode 100644 index 40eed290cb..0000000000 --- a/debian/patches/08_ethereal-desktop-menu.dpatch +++ /dev/null @@ -1,29 +0,0 @@ -#! /bin/sh /usr/share/dpatch/dpatch-run -## 08_ethereal-desktop-menu.dpatch by -## -## All lines beginning with `## DP:' are a description of the patch. -## DP: No description. - -@DPATCH@ -diff -urNad --exclude=CVS --exclude=.svn ./ethereal.desktop /tmp/dpep-work.5CrOMD/ethereal-0.10.11/ethereal.desktop ---- ./ethereal.desktop 2005-07-17 19:39:10.000000000 +0200 -+++ /tmp/dpep-work.5CrOMD/ethereal-0.10.11/ethereal.desktop 2005-07-17 19:39:22.000000000 +0200 -@@ -68,15 +68,16 @@ - GenericName[zh_TW]=網路分析程式 - GenericName[zu]=Umhloli Woxhumano olusakazekile - Comment=Network traffic analyzer -+Comment[fr]=Analyseur de trafic réseau - Comment[fi]=Verkkoliikenne analysaattori - Comment[sv]=Nätverkstrafikanalysator --Icon=ethereal.png -+Icon=hi48-app-ethereal.png - TryExec=ethereal - Exec=ethereal - Path= - Terminal=false - MimeType= --Categories=Application;GTK;Network;X-Red-Hat-Extra; -+Categories=GNOME;Application;Network; - # Found in Suse 9.1: - X-KDE-SubstituteUID=true - # Deprecated: diff --git a/debian/patches/08_wireshark-desktop-menu.dpatch b/debian/patches/08_wireshark-desktop-menu.dpatch index e2fd199104..d15d6a53cc 100644 --- a/debian/patches/08_wireshark-desktop-menu.dpatch +++ b/debian/patches/08_wireshark-desktop-menu.dpatch @@ -5,19 +5,10 @@ ## DP: No description. @DPATCH@ -diff -urNad wireshark-0.99.2~/wireshark.desktop wireshark-0.99.2/wireshark.desktop ---- wireshark-0.99.2~/wireshark.desktop 2006-07-17 22:00:04.000000000 +0200 -+++ wireshark-0.99.2/wireshark.desktop 2006-07-18 22:05:40.000000000 +0200 -@@ -6,7 +6,7 @@ - Type=Application - Version=1.0 - Encoding=UTF-8 --Name=Ethereal -+Name=Wireshark - Name[ko]=이더리얼 - Name[ta]=®¾Ã¢Âø - Name[uk]=Ефемерність -@@ -72,13 +72,13 @@ +diff -urNad wireshark-0.99.4/wireshark.desktop /tmp/dpep.1jXNTW/wireshark-0.99.4/wireshark.desktop +--- wireshark-0.99.4/wireshark.desktop 2006-11-01 10:31:40.011860048 +0100 ++++ /tmp/dpep.1jXNTW/wireshark-0.99.4/wireshark.desktop 2006-11-01 10:32:13.727816940 +0100 +@@ -68,11 +68,11 @@ Comment[fi]=Verkkoliikenne analysaattori Comment[fr]=Analyseur de trafic réseau Comment[sv]=Nätverkstrafikanalysator @@ -30,6 +21,4 @@ diff -urNad wireshark-0.99.2~/wireshark.desktop wireshark-0.99.2/wireshark.deskt MimeType= -Categories=Application;GTK;Network;X-Red-Hat-Extra; +Categories=GNOME;Application;Network; - # Found in Suse 9.1: X-KDE-SubstituteUID=true - # Deprecated: diff --git a/debian/patches/09_idl2eth.dpatch b/debian/patches/09_idl2eth.dpatch deleted file mode 100644 index 4277d4d5b5..0000000000 --- a/debian/patches/09_idl2eth.dpatch +++ /dev/null @@ -1,46 +0,0 @@ -#! /bin/sh /usr/share/dpatch/dpatch-run -## 09_idl2eth.dpatch by -## -## All lines beginning with `## DP:' are a description of the patch. -## DP: No description. - -@DPATCH@ -diff -urNad --exclude=CVS --exclude=.svn ./idl2eth.sh /tmp/dpep-work.ZF6eGD/ethereal-0.10.11/idl2eth.sh ---- ./idl2eth.sh 2005-07-17 19:40:44.000000000 +0200 -+++ /tmp/dpep-work.ZF6eGD/ethereal-0.10.11/idl2eth.sh 2005-07-17 19:41:12.000000000 +0200 -@@ -48,34 +48,5 @@ - exit 1; - fi - --# --# Run wireshark backend, looking for ethereal_be.py and ethereal_gen.py --# in pythons's "site-packages" directory. If cannot find that, then --# try looking in current directory. If still cannot, then exit with --# error. -- --if [ -f $PYTHONPATH/site-packages/ethereal_be.py ] && [ -f $PYTHONPATH/site-packages/ethereal_gen.py ]; then -- omniidl -p $PYTHONPATH/site-packages -b ethereal_be $1 -- exit $? --fi -- --# Try current directory. -- --if [ -f ./ethereal_be.py ] && [ -f ./ethereal_gen.py ]; then -- omniidl -p ./ -b ethereal_be $1 -- exit $? --fi -- --# Could not find both ethereal_be.py AND ethereal_gen.py -- --echo "idl2eth Error: Could not find both ethereal_be.py AND ethereal_gen.py." --echo "Please ensure you have the PYTHONPATH variable set, or that ethereal_be.py " --echo "and ethereal_gen.py exist in the current directory. " --echo --echo "On this system, PYTHONPATH is : $PYTHONPATH" --echo -- --exit 2 -- -- -+omniidl -b ethereal_be $1 - diff --git a/debian/patches/09_idl2wrs.dpatch b/debian/patches/09_idl2wrs.dpatch index 11a838fc3e..398f9f35df 100644 --- a/debian/patches/09_idl2wrs.dpatch +++ b/debian/patches/09_idl2wrs.dpatch @@ -5,15 +5,9 @@ ## DP: No description. @DPATCH@ -diff -urNad wireshark-0.99.2~/tools/idl2wrs.sh wireshark-0.99.2/tools/idl2wrs.sh ---- wireshark-0.99.2~/tools/idl2wrs.sh 2006-07-18 22:53:59.000000000 +0200 -+++ wireshark-0.99.2/tools/idl2wrs.sh 2006-07-18 22:57:54.000000000 +0200 -@@ -1,4 +1,4 @@ --#! @SHELL@ -+#! /bin/sh - # - # $Id: idl2wrs.sh 18271 2006-05-31 19:12:15Z gerald $ - # +diff -urNad wireshark-0.99.5~/tools/idl2wrs.sh.in wireshark-0.99.5/tools/idl2wrs.sh.in +--- wireshark-0.99.5~/tools/idl2wrs.sh.in 2007-02-01 22:53:43.000000000 +0000 ++++ wireshark-0.99.5/tools/idl2wrs.sh.in 2007-04-01 08:56:28.000000000 +0000 @@ -48,40 +48,6 @@ exit 1; fi diff --git a/debian/patches/10_ethereal_gen.dpatch b/debian/patches/10_ethereal_gen.dpatch deleted file mode 100644 index e9340dbbe4..0000000000 --- a/debian/patches/10_ethereal_gen.dpatch +++ /dev/null @@ -1,19 +0,0 @@ -#! /bin/sh /usr/share/dpatch/dpatch-run -## 10_ethereal_gen.dpatch by -## -## All lines beginning with `## DP:' are a description of the patch. -## DP: No description. - -@DPATCH@ -diff -urNad --exclude=CVS --exclude=.svn ./ethereal_gen.py /tmp/dpep-work.vCo5MH/ethereal-0.10.11/ethereal_gen.py ---- ./ethereal_gen.py 2005-07-17 19:42:15.000000000 +0200 -+++ /tmp/dpep-work.vCo5MH/ethereal-0.10.11/ethereal_gen.py 2005-07-17 19:42:34.000000000 +0200 -@@ -2188,7 +2188,8 @@ - #include - #include - #include - #include -+#include - - #ifndef ENABLE_STATIC - G_MODULE_EXPORT const gchar version[] = "0.0.1"; diff --git a/debian/patches/11_diameter_vendors.dpatch b/debian/patches/11_diameter_vendors.dpatch deleted file mode 100644 index e8d85b2833..0000000000 --- a/debian/patches/11_diameter_vendors.dpatch +++ /dev/null @@ -1,19 +0,0 @@ -#! /bin/sh /usr/share/dpatch/dpatch-run -## 11_diameter_vendors.dpatch by -## -## All lines beginning with `## DP:' are a description of the patch. -## DP: No description. - -@DPATCH@ -diff -urNad --exclude=CVS --exclude=.svn ./epan/dissectors/packet-diameter.c /tmp/dpep-work.Xqh7hj/ethereal-0.10.11/epan/dissectors/packet-diameter.c ---- ./epan/dissectors/packet-diameter.c 2005-05-02 23:28:44.000000000 +0200 -+++ /tmp/dpep-work.Xqh7hj/ethereal-0.10.11/epan/dissectors/packet-diameter.c 2005-07-18 20:18:26.000000000 +0200 -@@ -690,7 +690,7 @@ - return -1; - } - -- return (addVendor(atoi(code), id, name)); -+ return (addVendor(atoi(id), code, name)); - - } /* addVendor */ - diff --git a/debian/pycompat b/debian/pycompat new file mode 100644 index 0000000000..0cfbf08886 --- /dev/null +++ b/debian/pycompat @@ -0,0 +1 @@ +2 diff --git a/debian/pyversions b/debian/pyversions new file mode 100644 index 0000000000..57a7586e4b --- /dev/null +++ b/debian/pyversions @@ -0,0 +1 @@ +2.3- diff --git a/debian/rules b/debian/rules index 67fd38c1e7..1169776c11 100755 --- a/debian/rules +++ b/debian/rules @@ -62,7 +62,7 @@ clean: unpatch-stamp dh_testroot rm -f build-stamp configure-stamp - -$(MAKE) distclean + [ ! -f Makefile ] || $(MAKE) distclean rm -f rdps wireshark.1 tshark.1 idl2deb.1 wireshark-filter.4 asn2deb.1 rm -f conftest conftest.c rm -f config.guess config.sub config.log @@ -110,6 +110,8 @@ binary-arch: build dh_installman dh_movefiles + dh_pysupport + dh_python dh_installdocs -rm debian/menu # from upstream debian/ package dh_installmenu diff --git a/debian/tshark.files b/debian/tshark.files index 36b3bbe548..55064a16bc 100644 --- a/debian/tshark.files +++ b/debian/tshark.files @@ -1,8 +1 @@ /usr/bin/tshark - -/usr/bin/tshark - -/usr/bin/tshark - -/usr/bin/tshark - diff --git a/debian/tshark.manpages b/debian/tshark.manpages index 636fee8f48..be60459534 100644 --- a/debian/tshark.manpages +++ b/debian/tshark.manpages @@ -1,4 +1 @@ -tshark.1 -tshark.1 -tshark.1 -tshark.1 +tshark.1 \ No newline at end of file diff --git a/debian/wireshark-common.files b/debian/wireshark-common.files index e531a18330..851a736b25 100644 --- a/debian/wireshark-common.files +++ b/debian/wireshark-common.files @@ -8,27 +8,4 @@ /usr/lib/wireshark/libwiretap.so.0 /usr/lib/wireshark/libwiretap.so.0.0.1 /usr/lib/wireshark/plugins/* -/usr/share/wireshark/* -/usr/bin/editcap -/usr/bin/mergecap -/usr/bin/text2pcap -/usr/lib/ethereal/libwireshark.so.0 -/usr/lib/ethereal/libwireshark.so.0.0.1 -/usr/lib/ethereal/libwiretap.so.0 -/usr/lib/ethereal/libwiretap.so.0.0.1 -/usr/lib/ethereal/plugins/* -/usr/share/ethereal/* -/usr/bin/editcap -/usr/bin/mergecap -/usr/bin/text2pcap -/usr/lib/ethereal/libwireshark.so.0 -/usr/lib/ethereal/libwireshark.so.0.0.1 -/usr/lib/ethereal/libwiretap.so.0 -/usr/lib/ethereal/libwiretap.so.0.0.1 -/usr/lib/ethereal/plugins/* -/usr/share/ethereal/* -/usr/bin/editcap -/usr/bin/mergecap -/usr/bin/text2pcap -/usr/lib/ethereal/* -/usr/share/ethereal/* +/usr/share/wireshark/* \ No newline at end of file diff --git a/debian/wireshark-common.manpages b/debian/wireshark-common.manpages index 591f367a4b..56b1491ae4 100644 --- a/debian/wireshark-common.manpages +++ b/debian/wireshark-common.manpages @@ -2,17 +2,4 @@ editcap.1 mergecap.1 text2pcap.1 wireshark-filter.4 -capinfos.1 -editcap.1 -mergecap.1 -text2pcap.1 -wireshark-filter.4 - -editcap.1 -mergecap.1 -text2pcap.1 -wireshark-filter.4 - -editcap.1 -mergecap.1 -text2pcap.1 +capinfos.1 \ No newline at end of file diff --git a/debian/wireshark-dev.docs b/debian/wireshark-dev.docs index e14d498160..3cd95439c2 100644 --- a/debian/wireshark-dev.docs +++ b/debian/wireshark-dev.docs @@ -2,19 +2,4 @@ doc/README.design doc/README.developer doc/README.idl2wrs doc/README.plugins -doc/README.xml-output -doc/README.design -doc/README.developer -doc/README.idl2wrs -doc/README.plugins - -doc/README.design -doc/README.developer -doc/README.idl2wrs -doc/README.plugins - -doc/README.design -doc/README.developer -doc/README.idl2wrs -doc/README.plugins - +doc/README.xml-output \ No newline at end of file diff --git a/debian/wireshark-dev.files b/debian/wireshark-dev.files index 58a428763f..d616965a69 100644 --- a/debian/wireshark-dev.files +++ b/debian/wireshark-dev.files @@ -7,29 +7,3 @@ /usr/lib/wireshark/libwiretap.la /usr/lib/python2.3/* /usr/include/wireshark/* - -/usr/bin/idl2wrs -/usr/bin/idl2deb -/usr/bin/asn2deb -/usr/lib/ethereal/libwireshark.so -/usr/lib/ethereal/libwireshark.la -/usr/lib/ethereal/libwiretap.so -/usr/lib/ethereal/libwiretap.la -/usr/lib/python2.3/* -/usr/include/ethereal/* - -/usr/bin/idl2wrs -/usr/bin/idl2deb -/usr/bin/asn2deb -/usr/lib/ethereal/libwireshark.so -/usr/lib/ethereal/libwireshark.la -/usr/lib/ethereal/libwiretap.so -/usr/lib/ethereal/libwiretap.la -/usr/lib/python2.3/* -/usr/include/ethereal/* - -/usr/bin/idl2wrs -/usr/lib/python2.2/* -/usr/include/ethereal/* -/usr/lib/libwiretap.a - diff --git a/debian/wireshark-dev.header-files b/debian/wireshark-dev.header-files index dbf728fe0b..aab6d48ce8 100644 --- a/debian/wireshark-dev.header-files +++ b/debian/wireshark-dev.header-files @@ -1,160 +1,5 @@ color.h config.h -epan/asn1.h -epan/address.h -epan/column_info.h -epan/column-utils.h -epan/conversation.h -epan/crc16.h -epan/crc32.h -epan/dfilter/dfilter.h -epan/dfilter/drange.h -epan/dissectors/packet-ber.h -epan/dissectors/packet-giop.h -epan/dissectors/packet-per.h -epan/dissectors/packet-rpc.h -epan/dissectors/packet-tcp.h -epan/dissectors/packet-tpkt.h -epan/epan.h -epan/except.h -epan/exceptions.h -epan/filesystem.h -epan/frame_data.h -epan/ftypes/ftypes.h -epan/ipv4.h -epan/nstime.h -epan/packet.h -epan/packet_info.h -epan/pint.h -epan/prefs.h -epan/proto.h -epan/range.h -epan/reassemble.h -epan/report_err.h -epan/slab.h -epan/tap.h -epan/to_str.h -epan/tvbuff.h -epan/value_string.h -epan/xdlc.h -plugins/plugin_api_defs.h -plugins/plugin_api.h -plugins/plugin_table.h -wiretap/wtap.h -epan/gnuc_format_check.h -epan/ipv6-utils.h -epan/dissectors/format-oid.h -epan/guid-utils.h -color.h -config.h -epan/asn1.h -epan/address.h -epan/column_info.h -epan/column-utils.h -epan/conversation.h -epan/crc16.h -epan/crc32.h -epan/dfilter/dfilter.h -epan/dfilter/drange.h -epan/dissectors/packet-ber.h -epan/dissectors/packet-giop.h -epan/dissectors/packet-per.h -epan/dissectors/packet-rpc.h -epan/dissectors/packet-tcp.h -epan/dissectors/packet-tpkt.h -epan/epan.h -epan/except.h -epan/exceptions.h -epan/filesystem.h -epan/frame_data.h -epan/ftypes/ftypes.h -epan/ipv4.h -epan/nstime.h -epan/packet.h -epan/packet_info.h -epan/pint.h -epan/prefs.h -epan/proto.h -epan/reassemble.h -epan/report_err.h -epan/slab.h -epan/tap.h -epan/to_str.h -epan/tvbuff.h -epan/value_string.h -epan/xdlc.h -plugins/plugin_api_defs.h -plugins/plugin_api.h -plugins/plugin_table.h -wiretap/wtap.h -color.h -config.h -epan/asn1.h -epan/address.h -epan/column_info.h -epan/column-utils.h -epan/conversation.h -epan/crc16.h -epan/crc32.h -epan/dfilter/dfilter.h -epan/dfilter/drange.h -epan/dissectors/packet-ber.h -epan/dissectors/packet-giop.h -epan/dissectors/packet-per.h -epan/dissectors/packet-rpc.h -epan/dissectors/packet-tcp.h -epan/dissectors/packet-tpkt.h -epan/epan.h -epan/except.h -epan/exceptions.h -epan/filesystem.h -epan/frame_data.h -epan/ftypes/ftypes.h -epan/ipv4.h -epan/nstime.h -epan/packet.h -epan/packet_info.h -epan/pint.h -epan/prefs.h -epan/proto.h -epan/reassemble.h -epan/report_err.h -epan/slab.h -epan/tap.h -epan/to_str.h -epan/tvbuff.h -epan/value_string.h -epan/xdlc.h -plugins/plugin_api_defs.h -plugins/plugin_api.h -plugins/plugin_table.h -wiretap/wtap.h -plugins/plugin_api.h -plugins/plugin_api_defs.h -plugins/plugin_table.h -epan/packet.h -epan/proto.h -epan/tvbuff.h -epan/pint.h -epan/to_str.h -epan/column_info.h -epan/epan.h -epan/frame_data.h -epan/dfilter/dfilter.h -epan/dfilter/drange.h -epan/conversation.h -epan/column-utils.h -epan/packet_info.h -epan/value_string.h -epan/ftypes/ftypes.h -epan/nstime.h -epan/ipv4.h -epan/exceptions.h -epan/except.h -packet-giop.h -prefs.h -color.h -wiretap/wtap.h -packet-tcp.h -packet-tpkt.h - +epan/*.h +epan/dissectors/*.h +wiretap/*.h \ No newline at end of file diff --git a/debian/wireshark-dev.manpages b/debian/wireshark-dev.manpages index 4975a2ef75..2a373ca0c2 100644 --- a/debian/wireshark-dev.manpages +++ b/debian/wireshark-dev.manpages @@ -1,11 +1,3 @@ idl2wrs.1 idl2deb.1 -asn2deb.1 -idl2wrs.1 -idl2deb.1 -asn2deb.1 -idl2wrs.1 -idl2deb.1 -asn2deb.1 -idl2wrs.1 - +asn2deb.1 \ No newline at end of file diff --git a/debian/wireshark-dev.postinst b/debian/wireshark-dev.postinst index 7bf6bf3630..6f37362fbd 100644 --- a/debian/wireshark-dev.postinst +++ b/debian/wireshark-dev.postinst @@ -1,76 +1,5 @@ #! /bin/sh -e -PYTHON=python2.3 - -case "$1" in - configure|abort-upgrade|abort-remove|abort-deconfigure) - /usr/bin/$PYTHON -O /usr/lib/$PYTHON/compileall.py -q \ - /usr/lib/$PYTHON/site-packages/ - ;; - *) - echo "postinst called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac - #DEBHELPER# exit 0 - -#! /bin/sh -e - -PYTHON=python2.3 - -case "$1" in - configure|abort-upgrade|abort-remove|abort-deconfigure) - /usr/bin/$PYTHON -O /usr/lib/$PYTHON/compileall.py -q \ - /usr/lib/$PYTHON/site-packages/ - ;; - *) - echo "postinst called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac - -#DEBHELPER# - -exit 0 - -#! /bin/sh -e - -PYTHON=python2.3 - -case "$1" in - configure|abort-upgrade|abort-remove|abort-deconfigure) - /usr/bin/$PYTHON -O /usr/lib/$PYTHON/compileall.py -q \ - /usr/lib/$PYTHON/site-packages/ - ;; - *) - echo "postinst called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac - -#DEBHELPER# - -exit 0 - -#! /bin/sh -e - -PYTHON=python2.2 - -case "$1" in - configure|abort-upgrade|abort-remove|abort-deconfigure) - /usr/bin/$PYTHON -O /usr/lib/$PYTHON/compileall.py -q \ - /usr/lib/$PYTHON/site-packages/ - ;; - *) - echo "postinst called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac - -#DEBHELPER# - -exit 0 - diff --git a/debian/wireshark-dev.prerm b/debian/wireshark-dev.prerm index beef32772d..c78af5c85f 100644 --- a/debian/wireshark-dev.prerm +++ b/debian/wireshark-dev.prerm @@ -12,49 +12,3 @@ dpkg --listfiles $PACKAGE | xargs rm -f >&2 #DEBHELPER# - -#! /bin/bash -e -# -# Debian prerm script for Python x.y hierarchical modules -# Written by Gregor Hoffleit -# Extended by Matthias Klose -# - -PACKAGE=`basename $0 | sed -e 's/\.[^.]*$//'` - -dpkg --listfiles $PACKAGE | - awk '$0~/\.py$/ {print $0"c\n" $0"o"}' | - xargs rm -f >&2 - -#DEBHELPER# - -#! /bin/bash -e -# -# Debian prerm script for Python x.y hierarchical modules -# Written by Gregor Hoffleit -# Extended by Matthias Klose -# - -PACKAGE=`basename $0 | sed -e 's/\.[^.]*$//'` - -dpkg --listfiles $PACKAGE | - awk '$0~/\.py$/ {print $0"c\n" $0"o"}' | - xargs rm -f >&2 - -#DEBHELPER# - -#! /bin/bash -e -# -# Debian prerm script for Python x.y hierarchical modules -# Written by Gregor Hoffleit -# Extended by Matthias Klose -# - -PACKAGE=`basename $0 | sed -e 's/\.[^.]*$//'` - -dpkg --listfiles $PACKAGE | - awk '$0~/\.py$/ {print $0"c\n" $0"o"}' | - xargs rm -f >&2 - -#DEBHELPER# - diff --git a/debian/wireshark-root.desktop b/debian/wireshark-root.desktop index e8b133c445..4b38d53472 100644 --- a/debian/wireshark-root.desktop +++ b/debian/wireshark-root.desktop @@ -82,87 +82,3 @@ X-KDE-SubstituteUID=true # BinaryPattern=wireshark # MapNotify=true # Protocols= -[Desktop Entry] -# $Id$ -# The format of this file is specified at -# http://freedesktop.org/Standards/desktop-entry-spec/ -# The entries are in the order they are listed in version 0.9.4 -Type=Application -Version=1.0 -Encoding=UTF-8 -Name=Ethereal (as root) -GenericName=Network Analyzer -GenericName[af]=Netwerk Analiseerder -GenericName[az]=Şəbəkə Analiz Proqramı -GenericName[bg]=Анализатор на мрежови трафик -GenericName[bs]=Mrežni analizer -GenericName[ca]=Analitzador de xarxa -GenericName[cs]=Analyzátor sítě -GenericName[da]=Netværksanalyse -GenericName[de]=Programm für die Netzwerk-Analyse -GenericName[el]=Αναλυτής Δικτύων -GenericName[en_GB]=Network Analyser -GenericName[eo]=Retanalizilo -GenericName[es]=Analizador de redes -GenericName[et]=Võrguliikluse analüsaator -GenericName[eu]=Sare ikerketaria -GenericName[fa]=تحلیل‌گر شبکه -GenericName[fi]=Verkkoanalysaattori -GenericName[fr]=Analyseur réseau -GenericName[he]=מאבחן רשת -GenericName[hr]=Program za analiziranje mreža -GenericName[hu]=hálózatanalizáló -GenericName[id]=Analisis jaringan -GenericName[is]=Netskoðunartól -GenericName[it]=Analizzatore di rete -GenericName[ja]=ネットワークアナライザ -GenericName[ko]=네트웍 분석기 -GenericName[lo]=ເຄື່ອງມືວິເຄາະເຄືອຂ່າຍ -GenericName[lt]=Tinklo analizatorius -GenericName[lv]=Tīkla Analizators -GenericName[mk]=Анализатор на мрежи -GenericName[mn]=Сүлжээ-шинжлэлийн програм -GenericName[mt]=Analizzatur tan-network -GenericName[nb]=Nettverksanalyse -GenericName[nl]=netwerkanalyseprogramma -GenericName[nn]=Nettverksanalyse -GenericName[nso]=Moahlaahli wa Kgokagano -GenericName[pl]=Analizator sieci -GenericName[pt]=Analisador de Redes -GenericName[pt_BR]=Analisador de rede -GenericName[ro]=Analizor de reţea -GenericName[ru]=Анализатор сетевого трафика -GenericName[se]=Fierbmeanalysa -GenericName[sk]=Analyzátor siete -GenericName[sl]=Analizator omrežij -GenericName[sr]=Analizatror mreže -GenericName[ss]=Sihlatiyi seluchungechunge -GenericName[sv]=Nätverksanalyserare -GenericName[ta]=Å¨Ä ¬öÅ¡Ç÷ -GenericName[th]=เครื่องมือวิเคราะห์เครือข่าย -GenericName[tr]=Ağ Analiz Programı -GenericName[uk]=Аналізатор мережі -GenericName[ven]=Musengulusi wa Vhukwamani -GenericName[vi]=Trình phân tích mạng -GenericName[xh]=Umcukucezi Womsebenzi womnatha -GenericName[zh_CN]=网络分析程序 -GenericName[zh_TW]=網路分析程式 -GenericName[zu]=Umhloli Woxhumano olusakazekile -Comment=Network traffic analyzer -Comment[fi]=Verkkoliikenne analysaattori -Comment[fr]=Analyseur de trafic réseau -Comment[sv]=Nätverkstrafikanalysator -Icon=hi48-app-ethereal.png -TryExec=gksu -Exec=gksu -u root /usr/bin/ethereal -Path= -Terminal=false -MimeType= -Categories=GNOME;Application;Network; -# Found in Suse 9.1: -X-KDE-SubstituteUID=true -# Deprecated: -# TerminalOptions= -# BinaryPattern=ethereal -# MapNotify=true -# Protocols= diff --git a/debian/wireshark.files b/debian/wireshark.files index fd0ebef84d..ff5fa9b0ce 100644 --- a/debian/wireshark.files +++ b/debian/wireshark.files @@ -1,11 +1,3 @@ /usr/bin/wireshark /usr/share/applications/ -/usr/share/pixmaps/ -/usr/bin/ethereal -/usr/share/applications/ -/usr/share/pixmaps/ -/usr/bin/ethereal -/usr/share/applications/ -/usr/share/pixmaps/ -/usr/bin/ethereal - +/usr/share/pixmaps/ \ No newline at end of file diff --git a/debian/wireshark.manpages b/debian/wireshark.manpages index d94c272eed..fef11e2467 100644 --- a/debian/wireshark.manpages +++ b/debian/wireshark.manpages @@ -1,4 +1 @@ -wireshark.1 -ethereal.1 -ethereal.1 -ethereal.1 +wireshark.1 \ No newline at end of file diff --git a/debian/wireshark.menu b/debian/wireshark.menu index 7bb5dec471..f0658f0ce8 100644 --- a/debian/wireshark.menu +++ b/debian/wireshark.menu @@ -1,14 +1,3 @@ ?package(wireshark):needs="X11" section="Apps/Net" title="Wireshark" \ command="/usr/bin/wireshark" \ icon="/usr/share/pixmaps/wsicon32.xpm" - -?package(ethereal):needs="X11" section="Apps/Net" title="Ethereal" \ - command="/usr/bin/ethereal" \ - icon="/usr/share/pixmaps/wsicon32.xpm" - -?package(ethereal):needs="X11" section="Apps/Net" title="Ethereal" \ - command="/usr/bin/ethereal" \ - icon="/usr/share/pixmaps/wsicon32.xpm" - -?package(ethereal):needs=X11 section=Apps/Net title="Ethereal" \ - command="/usr/bin/ethereal"