1 --- libpcap0.8-0.8.3.orig/debian/compat
2 +++ libpcap0.8-0.8.3/debian/compat
6 --- libpcap0.8-0.8.3.orig/debian/copyright
7 +++ libpcap0.8-0.8.3/debian/copyright
9 +This package was debianized by Romain Francoise <rfrancoise@debian.org>
10 +on Fri, 16 Apr 2004 18:41:39 +0200, based on work by:
11 + + Anand Kumria <wildfire@progsoc.org>
12 + + Torsten Landschoff <torsten@debian.org>
14 +It was downloaded from http://tcpdump.org/release/libpcap-0.8.3.tar.gz
16 +Upstream Authors: tcpdump-workers@tcpdump.org
18 +Licensed under the 3-clause BSD license:
20 + Redistribution and use in source and binary forms, with or without
21 + modification, are permitted provided that the following conditions
24 + 1. Redistributions of source code must retain the above copyright
25 + notice, this list of conditions and the following disclaimer.
26 + 2. Redistributions in binary form must reproduce the above copyright
27 + notice, this list of conditions and the following disclaimer in
28 + the documentation and/or other materials provided with the
30 + 3. The names of the authors may not be used to endorse or promote
31 + products derived from this software without specific prior
34 + THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
35 + IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
36 + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
38 +Current upstream maintainers:
39 + Bill Fenner <fenner@research.att.com>
40 + Fulvio Risso <risso@polito.it>
41 + Guy Harris <guy@alum.mit.edu>
42 + Hannes Gredler <hannes@juniper.net>
43 + Jun-ichiro itojun Hagino <itojun@iijlab.net>
44 + Michael Richardson <mcr@sandelman.ottawa.on.ca>
46 +Additional people who have contributed patches:
48 + Alan Bawden <Alan@LCS.MIT.EDU>
49 + Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
50 + Albert Chin <china@thewrittenword.com>
51 + Andrew Brown <atatat@atatdot.net>
52 + Antti Kantee <pooka@netbsd.org>
53 + Arkadiusz Miskiewicz <misiek@pld.org.pl>
54 + Armando L. Caro Jr. <acaro@mail.eecis.udel.edu>
55 + Assar Westerlund <assar@sics.se>
56 + Brian Ginsbach <ginsbach@cray.com>
57 + Charles M. Hannum <mycroft@netbsd.org>
58 + Chris G. Demetriou <cgd@netbsd.org>
59 + Chris Pepper <pepper@mail.reppep.com>
60 + Darren Reed <darrenr@reed.wattle.id.au>
61 + David Kaelbling <drk@sgi.com>
62 + David Young <dyoung@ojctech.com>
63 + Don Ebright <Don.Ebright@compuware.com>
64 + Eric Anderson <anderse@hpl.hp.com>
65 + Franz Schaefer <schaefer@mond.at>
66 + Gianluca Varenni <varenni@netgroup-serv.polito.it>
67 + Gisle Vanem <giva@bgnett.no>
68 + Graeme Hewson <ghewson@cix.compulink.co.uk>
69 + Greg Stark <gsstark@mit.edu>
70 + Greg Troxel <gdt@ir.bbn.com>
71 + Guillaume Pelat <endymion_@users.sourceforge.net>
72 + Hyung Sik Yoon <hsyn@kr.ibm.com>
73 + Igor Khristophorov <igor@atdot.org>
74 + Jan-Philip Velders <jpv@veldersjes.net>
75 + Jason R. Thorpe <thorpej@netbsd.org>
76 + Javier Achirica <achirica@ttd.net>
77 + Jean Tourrilhes <jt@hpl.hp.com>
78 + Jefferson Ogata <jogata@nodc.noaa.gov>
79 + Jesper Peterson <jesper@endace.com>
80 + John Bankier <jbankier@rainfinity.com>
81 + Jon Lindgren <jonl@yubyub.net>
82 + Juergen Schoenwaelder <schoenw@ibr.cs.tu-bs.de>
83 + Kazushi Sugyo <sugyo@pb.jp.nec.com>
84 + Klaus Klein <kleink@netbsd.org>
85 + Koryn Grant <koryn@endace.com>
86 + Krzysztof Halasa <khc@pm.waw.pl>
87 + Lorenzo Cavallaro <sullivan@sikurezza.org>
88 + Loris Degioanni <loris@netgroup-serv.polito.it>
89 + Love Hörnquist-Åstrand <lha@stacken.kth.se>
90 + Maciej W. Rozycki <macro@ds2.pg.gda.pl>
91 + Marcus Felipe Pereira <marcus@task.com.br>
92 + Martin Husemann <martin@netbsd.org>
93 + Mike Wiacek <mike@iroot.net>
94 + Monroe Williams <monroe@pobox.com>
95 + Octavian Cerna <tavy@ylabs.com>
96 + Olaf Kirch <okir@caldera.de>
97 + Onno van der Linden <onno@simplex.nl>
98 + Paul Mundt <lethal@linux-sh.org>
99 + Pavel Kankovsky <kan@dcit.cz>
100 + Peter Fales <peter@fales-lorenz.net>
101 + Peter Jeremy <peter.jeremy@alcatel.com.au>
102 + Phil Wood <cpw@lanl.gov>
103 + Rafal Maszkowski <rzm@icm.edu.pl>
104 + Rick Jones <raj@cup.hp.com>
105 + Scott Barron <sb125499@ohiou.edu>
106 + Scott Gifford <sgifford@tir.com>
107 + Sebastian Krahmer <krahmer@cs.uni-potsdam.de>
108 + Shaun Clowes <delius@progsoc.uts.edu.au>
109 + Solomon Peachy <pizza@shaftnet.org>
110 + Stefan Hudson <hudson@mbay.net>
111 + Takashi Yamamoto <yamt@mwd.biglobe.ne.jp>
112 + Tony Li <tli@procket.com>
113 + Torsten Landschoff <torsten@debian.org>
114 + Uns Lider <unslider@miranda.org>
115 + Uwe Girlich <Uwe.Girlich@philosys.de>
116 + Xianjie Zhang <xzhang@cup.hp.com>
118 + Yoann Vandoorselaere <yoann@prelude-ids.org>
120 +The original LBL crew:
124 --- libpcap0.8-0.8.3.orig/debian/control
125 +++ libpcap0.8-0.8.3/debian/control
130 +Maintainer: Romain Francoise <rfrancoise@debian.org>
131 +Uploaders: Torsten Landschoff <torsten@debian.org>
132 +Build-Depends: debhelper (>= 4), flex, bison, dpatch, perl
133 +Standards-Version: 3.6.1.0
135 +Package: libpcap0.8-dev
138 +Depends: libpcap0.8 (= ${Source-Version}), libc6-dev
139 +Conflicts: libpcap-dev, libpcap0.7-dev
140 +Description: Development library and header files for libpcap 0.8
141 + Headers, static libraries, and documentation for the libpcap library.
143 + libpcap (Packet CAPture) provides a portable framework for low-level
144 + network monitoring. Applications include network statistics
145 + collection, security monitoring, network debugging, etc.
147 + Since almost every system vendor provides a different interface for
148 + packet capture, and since there are several tools that require this
149 + functionality, we've created this system-independent API to ease in
150 + porting and to alleviate the need for several system-dependent packet
151 + capture modules in each application.
153 + Further information is available at <URL: http://www.tcpdump.org/>
158 +Depends: ${shlibs:Depends}
159 +Description: System interface for user-level packet capture
160 + libpcap (Packet CAPture) provides a portable framework for low-level
161 + network monitoring. Applications include network statistics collection,
162 + security monitoring, network debugging, etc.
164 + Since almost every system vendor provides a different interface for
165 + packet capture, and since there are several tools that require this
166 + functionality, we've created this system-independent API to ease in
167 + porting and to alleviate the need for several system-dependent packet
168 + capture modules in each application.
170 + Further information is available at <URL: http://www.tcpdump.org/>
171 --- libpcap0.8-0.8.3.orig/debian/changelog
172 +++ libpcap0.8-0.8.3/debian/changelog
174 +libpcap0.8 (0.8.3-4) unstable; urgency=low
176 + * debian/patches/30_man_fixes.dpatch: Explicitly mention `pcap_handler'
177 + as routine type for pcap_loop() and pcap_dispatch() callbacks,
178 + suggested by Florian Weimer <fw@deneb.enyo.de> (closes: #255267).
180 + -- Romain Francoise <rfrancoise@debian.org> Wed, 21 Jul 2004 19:46:07 +0200
182 +libpcap0.8 (0.8.3-3) unstable; urgency=low
184 + * debian/control: libpcap0.8-dev conflicts with libpcap0.7-dev.
186 + -- Romain Francoise <rfrancoise@debian.org> Wed, 9 Jun 2004 11:44:50 +0200
188 +libpcap0.8 (0.8.3-2) unstable; urgency=low
191 + + Put back URL markers in description.
192 + + Switch Maintainer and Uploaders fields to match reality.
193 + * debian/patches/30_man_fixes.dpatch: Patch to fix some inconsistencies
194 + in the upstream man page (tcpdump is in section 8, not 1).
195 + * debian/patches/00list: Add 30_man_fixes.
197 + -- Romain Francoise <rfrancoise@debian.org> Fri, 14 May 2004 23:43:02 +0200
199 +libpcap0.8 (0.8.3-1) unstable; urgency=low
201 + * New upstream release (closes: #235155).
202 + + bpf_filter.c now has config.h (closes: #171210).
203 + + Does not ship CVS directories anymore (closes: #119750).
204 + + Has improved "truncated file" messages (closes: #207535).
205 + * New source package to ease the 0.7 -> 0.8 transition, each source
206 + package builds corresponding libpcap0.x{,-dev} binary packages. The
207 + libpcap-dev package is provided by libpcap0.7 for now.
208 + * debian/copyright: Rewrite. Licensing information is now complete in
209 + the upstream tarball.
211 + + Update source and binary package names.
212 + + Build-Depend on dpatch, perl.
213 + + Bump Standards-Version to 3.6.1.0.
215 + + Clean up CFLAGS handling.
216 + + Support DEB_BUILD_OPTIONS.
217 + + Use dpatch for patch management.
218 + + Compute major/minor versions from the changelog instead of
220 + * debian/patches: New directory.
221 + * debian/patches/10_shared_lib.dpatch: Patch split off the Debian diff
222 + to build a shared library (upstream does not support it).
223 + * debian/patches/20_mac_syntax.dpatch: Patch split off the Debian diff
224 + to support more MAC address syntaxes (by Torsten Landschoff).
225 + * debian/patches/00list: New file (patch list).
227 + -- Romain Francoise <rfrancoise@debian.org> Fri, 30 Apr 2004 16:14:10 +0200
229 +libpcap (0.7.2-5) unstable; urgency=low
231 + * debian/rules: Update version variables, this is version 0.7.2.
232 + * Makefile.in: Fix version.
234 + -- Romain Francoise <rfrancoise@debian.org> Tue, 11 Nov 2003 12:14:28 +0100
236 +libpcap (0.7.2-4) unstable; urgency=low
238 + * debian/libpcap-dev.preinst: New file. Remove old symlink from
239 + /usr/share/doc/libpcap-dev to libpcap0 since we now have a real
240 + libpcap-dev directory. Closes: #175742.
241 + * debian/rules: Add -A flag to dh_installdocs so that it acts on all
244 + -- Romain Francoise <rfrancoise@debian.org> Mon, 20 Oct 2003 18:49:22 +0200
246 +libpcap (0.7.2-3) unstable; urgency=low
248 + * debian/control: libpcap-dev is in section libdevel, not in section
251 + -- Romain Francoise <rfrancoise@debian.org> Sun, 19 Oct 2003 19:22:12 +0200
253 +libpcap (0.7.2-2) unstable; urgency=low
256 + + Adding myself as co-maintainer, with Torsten's blessing.
257 + + Repeat extended description in libpcap-dev description
259 + + Remove Emacs-style <URL: ...> markers from the descriptions.
261 + + Remove full stops from synopsis as per Policy.
262 + + Add versioned build-dependency on debhelper (>= 4).
263 + * debian/copyright: Remove dh-make boilerplates.
264 + * debian/compat: New file.
265 + * debian/rules: Remove obsolete DH_COMPAT variable.
267 + -- Romain Francoise <rfrancoise@debian.org> Sun, 19 Oct 2003 18:17:41 +0200
269 +libpcap (0.7.2-1) unstable; urgency=low
271 + * New upstream release.
273 + -- Torsten Landschoff <torsten@debian.org> Sat, 7 Jun 2003 22:57:55 +0200
275 +libpcap (0.7.1-1) unstable; urgency=low
277 + * New upstream release (closes: #145538).
278 + * debian/rules: Build the library with _FILE_OFFSET_BITS set to 64
279 + to allow for files bigger than 2GB (closes: #129213).
280 + * Rename the library package to libpcap0.7 and change the SONAME so that we
281 + can account for interface changes (closes: #132359).
282 + * Run ldconfig as appropriate (lintian).
283 + * Remove watch.ex template and the silly symlink from libpcap-dev's
284 + documentation to libpcap0 (lintian).
286 + -- Torsten Landschoff <torsten@debian.org> Sat, 3 Aug 2002 23:33:56 +0200
288 +libpcap (0.6.2-2) unstable; urgency=low
290 + * debian/control: Change section of libpcap0 from net to libs
291 + (Debian installer message).
292 + * aclocal.m4: Treat the ia64 as a cpu which can't handle unaligned
293 + memory access (closes: #112152). Thanks for the report go to
296 + -- Torsten Landschoff <torsten@debian.org> Fri, 14 Sep 2001 10:15:52 +0200
298 +libpcap (0.6.2-1) unstable; urgency=medium
300 + * New upstream release.
301 + * debian/control: Removed Build-Depends already satisfied by the
302 + build-essential package.
303 + * gencode.c (gen_scode): Add the missing default branch of the protocol
304 + family switch (closes: 88688).
305 + * debian/libpcap.post{rm,inst}: Run ldconfig (lintian).
306 + * debian/copyright: Fix the "similiar" typo (lintian).
308 + -- Torsten Landschoff <torsten@debian.org> Tue, 6 Mar 2001 04:27:27 +0100
310 +libpcap (0.6.1-2) unstable; urgency=low
312 + * debian/rules: Changed the shlibs info so that only pcap 0.6
313 + is okay for packages linked against this version.
315 + -- Torsten Landschoff <torsten@debian.org> Thu, 18 Jan 2001 01:13:20 +0100
317 +libpcap (0.6.1-1) unstable; urgency=low
319 + * Taking back the package. Kudos to Anand for helping out.
320 + * debian/rules: Pass --enable-ipv6 to configure (closes: #80223).
322 + -- Torsten Landschoff <torsten@debian.org> Tue, 16 Jan 2001 15:40:37 +0100
324 +libpcap (0.5.2-2) unstable; urgency=low
326 + * Update config.guess and config.sub (Closes #26031)
327 + * Source builds would not always work. Fix that.
328 + * Kernel interface problem is really a module not loaded problem.
329 + Note this in README.Debian. (Closes #21356)
331 + -- Anand Kumria <wildfire@progsoc.org> Tue, 28 Nov 2000 02:03:25 +1100
333 +libpcap (0.5.2-1) unstable; urgency=low
335 + * New upstream release
337 + * Migrate to Debhelper and insert Build-Depends
339 + -- Anand Kumria <wildfire@progsoc.org> Sun, 12 Nov 2000 03:19:44 +1100
341 +libpcap (0.4a6-3) unstable; urgency=low
344 + * scanner.l: Allow a 12 digit hex number as ether address as well as
345 + BB.BB.BB.BB.BB.BB (closes: #48735)
346 + * nametoaddr.c (pcap_ether_aton): Adjust for change in scanner.l
348 + -- Torsten Landschoff <torsten@debian.org> Mon, 22 Nov 1999 02:39:45 +0100
350 +libpcap (0.4a6-2.1) unstable; urgency=low
352 + * Non maintainer upload.
353 + config.{guess,sub} changed to recognize a Arm architecture.
355 + -- Turbo Fredriksson <turbo@debian.org> Thu, 20 Aug 1998 23:12:36 -0400
357 +libpcap (0.4a6-2) frozen unstable; urgency=low
359 + * renamed /usr/doc/libpcap to /usr/doc/libpcap0 (should fix several
361 + * updated standards-version
362 + * rebuild with latest debmake
364 + -- Peter Tobias <tobias@et-inf.fho-emden.de> Mon, 30 Mar 1998 00:46:44 +0200
367 +libpcap (0.4a6-1) unstable; urgency=low
369 + * upgraded to latest upstream version, fixes: Bug#17164
370 + * added patch from Michael Alan Dorman <mdorman@mdorman.law.miami.edu>
371 + for building libpcap on alpha systems, fixes: Bug#15556
372 + * fixed aclocal.m4 script
374 + -- Peter Tobias <tobias@et-inf.fho-emden.de> Sat, 31 Jan 1998 23:19:42 +0100
377 +libpcap (0.4a2-2) unstable; urgency=low
379 + * fixed detection of IFF_LOOPBACK for linux systems
380 + * link shared library with -l
382 + -- Peter Tobias <tobias@et-inf.fho-emden.de> Wed, 19 Nov 1997 23:44:34 +0100
385 +libpcap (0.4a2-1) unstable; urgency=low
388 + * latest upstream release
390 + * compiled with _REENTRANT
392 + -- Peter Tobias <tobias@et-inf.fho-emden.de> Wed, 17 Sep 1997 20:40:01 +0200
395 +libpcap (0.3.1a3-1) unstable; urgency=low
397 + * Latest upstream release. Fixes bug #6670.
399 + -- Karl Sackett <krs@debian.org> Wed, 2 Apr 1997 10:19:28 -0600
402 +libpcap (0.3-1) unstable; urgency=low
404 + * First Debian release.
405 + * Makefile.in: supports libpcap.so target.
407 + -- Karl Sackett <krs@debian.org> Wed, 8 Jan 1997 09:38:31 -0600
410 --- libpcap0.8-0.8.3.orig/debian/rules
411 +++ libpcap0.8-0.8.3/debian/rules
415 +include /usr/share/dpatch/dpatch.make
417 +version := $(shell head -1 debian/changelog | \
418 + perl -nle 'm/\S+\s+\((\S+)-\S+\)/ and print $$1')
419 +major := $(shell head -1 debian/changelog | perl -nle \
420 + 'm/\S+\s+\((\d\.\d)\.\d+-\S+\)/ and print $$1')
422 +export CFLAGS=-D_FILE_OFFSET_BITS=64
424 +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
428 +build: patch build-stamp
432 + ./configure --prefix=/usr \
433 + --mandir=\$${prefix}/share/man \
434 + --enable-ipv6 --infodir=\$${prefix}/share/info
439 +clean: clean-patched unpatch
457 + $(MAKE) install prefix=`pwd`/debian/libpcap0.8-dev/usr
459 +binary-indep: build install
460 +# We have nothing to do by default.
462 +binary-arch: build install
467 + # build libpcap${major} package by moving files from libpcap0.8-dev
469 + dh_movefiles -plibpcap$(major) --sourcedir=debian/libpcap0.8-dev \
470 + usr/lib/libpcap.so.$(major) \
471 + usr/lib/libpcap.so.$(version)
474 + dh_installdocs -A debian/README.Debian
477 + dh_installmanpages -plibpcap0.8-dev
480 + dh_installchangelogs CHANGES
481 + dh_link -plibpcap0.8-dev
492 +binary: binary-indep binary-arch
493 +.PHONY: build clean binary-indep binary-arch binary install
494 --- libpcap0.8-0.8.3.orig/debian/patches/10_shared_lib.dpatch
495 +++ libpcap0.8-0.8.3/debian/patches/10_shared_lib.dpatch
498 +## 10_shared_lib.dpatch by Romain Francoise <rfrancoise@debian.org>
500 +## All lines beginning with `## DP:' are a description of the patch.
501 +## DP: Debian-specific modifications to the upstream Makefile.in to
502 +## DP: build a shared library.
504 +if [ $# -lt 1 ]; then
505 + echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
509 +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
510 +patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}"
513 + -patch) patch -p1 ${patch_opts} < $0;;
514 + -unpatch) patch -R -p1 ${patch_opts} < $0;;
516 + echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
523 +diff -urNad /home/romain/Work/Debian/libpcap/libpcap0.8/libpcap0.8-0.8.3/Makefile.in libpcap0.8-0.8.3/Makefile.in
524 +--- /home/romain/Work/Debian/libpcap/libpcap0.8/libpcap0.8-0.8.3/Makefile.in 2004-04-30 16:40:33.000000000 +0200
525 ++++ libpcap0.8-0.8.3/Makefile.in 2004-04-30 16:41:43.000000000 +0200
530 ++# some defines for shared library compilation
531 ++MAJ=$(shell head -1 debian/changelog | perl -nle 'm/\S+\s+\((\d\.\d)\.\d+-\S+\)/ and print $$1')
532 ++MIN=$(shell head -1 debian/changelog | perl -nle 'm/\S+\s+\(\d\.\d\.(\d+)-\S+\)/ and print $$1')
533 ++VERSION=$(MAJ).$(MIN)
535 ++LIBRARY=lib$(LIBNAME).a
536 ++SOLIBRARY=lib$(LIBNAME).so
537 ++SHAREDLIB=$(SOLIBRARY).$(VERSION)
540 + # You shouldn't need to edit anything below.
545 + CFLAGS = $(CCOPT) $(INCLS) $(DEFS)
546 ++CFLAGS_SHARED = -shared -Wl,-soname,$(SOLIBRARY).$(MAJ)
548 + INSTALL = @INSTALL@
549 + INSTALL_PROGRAM = @INSTALL_PROGRAM@
551 + # problem if you don't own the file but can write to the directory.
554 +- $(CC) $(CFLAGS) -c $(srcdir)/$*.c
555 ++ $(CC) $(CFLAGS) -c -o $@ $(srcdir)/$*.c
559 ++ $(CC) -fPIC $(CFLAGS) -c -o $@ $(srcdir)/$*.c
561 + PSRC = pcap-@V_PCAP@.c
562 + FSRC = fad-@V_FINDALLDEVS@.c
564 + # We would like to say "OBJ = $(SRC:.c=.o)" but Ultrix's make cannot
565 + # hack the extra indirection
566 + OBJ = $(PSRC:.c=.o) $(FSRC:.c=.o) $(CSRC:.c=.o) $(SSRC:.c=.o) $(GENSRC:.c=.o) $(LIBOBJS)
567 ++OBJ_PIC = $(PSRC:.c=_pic.o) $(FSRC:.c=_pic.o) $(CSRC:.c=_pic.o) $(SSRC:.c=_pic.o) $(GENSRC:.c=_pic.o)
568 + HDR = pcap.h pcap-int.h pcap-namedb.h pcap-nit.h pcap-pf.h \
569 + ethertype.h gencode.h gnuc.h
571 +@@ -94,15 +109,22 @@
573 + $(SRC) $(HDR) $(TAGHDR)
575 +-CLEANFILES = $(OBJ) libpcap.a $(GENSRC) $(GENHDR) lex.yy.c
576 ++CLEANFILES = $(OBJ) $(OBJ_PIC) libpcap.a $(GENSRC) $(GENHDR) lex.yy.c libpcap.so*
579 ++all: libpcap.a $(SHAREDLIB)
583 + ar rc $@ $(OBJ) $(LIBS)
586 ++$(SHAREDLIB): $(OBJ_PIC)
588 ++ -@rm -f $(SOLIBRARY) $(SOLIBRARY).$(MAJ)
589 ++ $(CC) $(CFLAGS_SHARED) -o $(SHAREDLIB) $(OBJ_PIC) -lc
590 ++ ln -s $(SHAREDLIB) $(SOLIBRARY).$(MAJ)
591 ++ ln -s $(SOLIBRARY).$(MAJ) $(SOLIBRARY)
593 + scanner.c: $(srcdir)/scanner.l
595 + $(LEX) -t $< > $$$$.$@; mv $$$$.$@ $@
597 + scanner.o: scanner.c tokdefs.h
598 + $(CC) $(CFLAGS) -c scanner.c
600 ++scanner_pic.o: scanner.c tokdefs.h
601 ++ $(CC) -fPIC $(CFLAGS) -o $@ -c scanner.c
605 + tokdefs.h: grammar.c
606 +@@ -123,9 +148,17 @@
608 + $(CC) $(CFLAGS) -Dyylval=pcap_lval -c grammar.c
610 ++grammar_pic.o: grammar.c
612 ++ $(CC) -fPIC $(CFLAGS) -Dyylval=pcap_lval -o $@ -c grammar.c
614 + version.o: version.c
615 + $(CC) $(CFLAGS) -c version.c
617 ++version_pic.o: version.c
618 ++ $(CC) -fPIC $(CFLAGS) -c version.c -o $@
621 + snprintf.o: $(srcdir)/missing/snprintf.c
622 + $(CC) $(CFLAGS) -o $@ -c $(srcdir)/missing/snprintf.c
624 +@@ -151,10 +184,16 @@
625 + bpf_filter.o: bpf_filter.c
626 + $(CC) $(CFLAGS) -c bpf_filter.c
628 ++bpf_filter_pic.o: bpf_filter.c
629 ++ $(CC) -fPIC $(CFLAGS) -c bpf_filter.c -o $@
632 + [ -d $(DESTDIR)$(libdir) ] || \
633 + (mkdir -p $(DESTDIR)$(libdir); chmod 755 $(DESTDIR)$(libdir))
634 + $(INSTALL_DATA) libpcap.a $(DESTDIR)$(libdir)/libpcap.a
635 ++ $(INSTALL_DATA) $(SHAREDLIB) $(DESTDIR)$(libdir)/
636 ++ ln -sf $(SHAREDLIB) $(DESTDIR)$(libdir)/$(SOLIBRARY).$(MAJ)
637 ++ ln -sf $(SOLIBRARY).$(MAJ) $(DESTDIR)$(libdir)/$(SOLIBRARY)
638 + $(RANLIB) $(DESTDIR)$(libdir)/libpcap.a
639 + [ -d $(DESTDIR)$(includedir) ] || \
640 + (mkdir -p $(DESTDIR)$(includedir); chmod 755 $(DESTDIR)$(includedir))
641 --- libpcap0.8-0.8.3.orig/debian/patches/20_mac_syntax.dpatch
642 +++ libpcap0.8-0.8.3/debian/patches/20_mac_syntax.dpatch
645 +## 20_mac_syntax.dpatch by Torsten Landschoff <torsten@debian.org>
647 +## All lines beginning with `## DP:' are a description of the patch.
648 +## DP: Adds more possible syntaxes to input MAC addresses:
649 +## DP: - the nn.nn.nn.nn.nn.nn syntax
650 +## DP: - the hexadecimal syntax
652 +if [ $# -lt 1 ]; then
653 + echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
657 +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
658 +patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}"
661 + -patch) patch -p1 ${patch_opts} < $0;;
662 + -unpatch) patch -R -p1 ${patch_opts} < $0;;
664 + echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
671 +diff -urNad /home/romain/Work/Debian/libpcap/libpcap0.8/libpcap0.8-0.8.3/nametoaddr.c libpcap0.8-0.8.3/nametoaddr.c
672 +--- /home/romain/Work/Debian/libpcap/libpcap0.8/libpcap0.8-0.8.3/nametoaddr.c 2004-04-30 15:45:14.000000000 +0200
673 ++++ libpcap0.8-0.8.3/nametoaddr.c 2004-04-30 15:57:54.000000000 +0200
675 + e = ep = (u_char *)malloc(6);
679 ++ if (*s == ':' || *s == '.')
682 + if (isxdigit((unsigned char)*s)) {
683 +diff -urNad /home/romain/Work/Debian/libpcap/libpcap0.8/libpcap0.8-0.8.3/scanner.l libpcap0.8-0.8.3/scanner.l
684 +--- /home/romain/Work/Debian/libpcap/libpcap0.8/libpcap0.8-0.8.3/scanner.l 2004-04-30 15:45:14.000000000 +0200
685 ++++ libpcap0.8-0.8.3/scanner.l 2004-04-30 15:57:54.000000000 +0200
687 + N ([0-9]+|(0X|0x)[0-9A-Fa-f]+)
688 + B ([0-9A-Fa-f][0-9A-Fa-f]?)
689 + W ([0-9A-Fa-f][0-9A-Fa-f]?[0-9A-Fa-f]?[0-9A-Fa-f]?)
695 + {N} { yylval.i = stoi((char *)yytext); return NUM; }
696 + ({N}\.{N})|({N}\.{N}\.{N})|({N}\.{N}\.{N}\.{N}) {
697 + yylval.s = sdup((char *)yytext); return HID; }
698 +-{B}:{B}:{B}:{B}:{B}:{B} { yylval.e = pcap_ether_aton((char *)yytext);
699 ++({B}:{B}:{B}:{B}:{B}:{B})|({B}\.{B}\.{B}\.{B}\.{B}\.{B}) { yylval.e = pcap_ether_aton((char *)yytext);
706 + {B}:+({B}:+)+ { bpf_error("bogus ethernet address %s", yytext); }
707 ++{X}{12} { yylval.e = pcap_ether_aton((char *)yytext); return EID;}
709 + icmptype { yylval.i = 0; return NUM; }
710 + icmpcode { yylval.i = 1; return NUM; }
711 + icmp-echoreply { yylval.i = 0; return NUM; }
712 --- libpcap0.8-0.8.3.orig/debian/patches/00list
713 +++ libpcap0.8-0.8.3/debian/patches/00list
718 --- libpcap0.8-0.8.3.orig/debian/patches/30_man_fixes.dpatch
719 +++ libpcap0.8-0.8.3/debian/patches/30_man_fixes.dpatch
722 +## 30_man_fixes.dpatch by Romain Francoise <rfrancoise@debian.org>
724 +## All lines beginning with `## DP:' are a description of the patch.
725 +## DP: Misc. fixes to the upstream man page.
727 +if [ $# -lt 1 ]; then
728 + echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
732 +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
733 +patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}"
736 + -patch) patch -p1 ${patch_opts} < $0;;
737 + -unpatch) patch -R -p1 ${patch_opts} < $0;;
739 + echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
746 +diff -urNad /home/romain/Work/Debian/libpcap0.8/libpcap0.8-0.8.3/pcap.3 libpcap0.8-0.8.3/pcap.3
747 +--- /home/romain/Work/Debian/libpcap0.8/libpcap0.8-0.8.3/pcap.3 2004-07-21 19:41:53.000000000 +0200
748 ++++ libpcap0.8-0.8.3/pcap.3 2004-07-21 19:42:28.000000000 +0200
751 + specifies the name of the file to open. The file has
752 + the same format as those used by
757 + The name "-" in a synonym for
759 + live capture, or all the packets in the file when reading a
762 +-specifies a routine to be called with three arguments:
765 ++routine to be called with three arguments:
768 + pointer which is passed in from
769 +@@ -1168,7 +1170,7 @@
770 + closes the ``savefile.''
773 +-tcpdump(1), tcpslice(1)
774 ++tcpdump(8), tcpslice(1)
776 + The original authors are:
778 --- libpcap0.8-0.8.3.orig/debian/README.Debian
779 +++ libpcap0.8-0.8.3/debian/README.Debian
784 + If you receive messages telling you the packet type is not supported
785 + or is deprecated check that CONFIG_PACKET is set to either `Y' or `M'.
787 + You should also check that /etc/modules.conf has the line
789 + alias net-pf-17 af_packet
791 + Feel free to report bugs.
793 + -- Anand Kumria <wildfire@progsoc.org>, Tue, 28 Nov 2000 02:04:28 EST
794 --- libpcap0.8-0.8.3.orig/debian/libpcap0.8-dev.preinst
795 +++ libpcap0.8-0.8.3/debian/libpcap0.8-dev.preinst
800 +# Remove old symlink, if it exists
801 +if [ -L /usr/share/doc/libpcap-dev ]; then
802 + rm -f /usr/share/doc/libpcap-dev ;
806 --- libpcap0.8-0.8.3.orig/debian/libpcap0.8.postinst
807 +++ libpcap0.8-0.8.3/debian/libpcap0.8.postinst
811 +if [ "$1" = "configure" ]; then
817 --- libpcap0.8-0.8.3.orig/debian/libpcap0.8-dev.dirs
818 +++ libpcap0.8-0.8.3/debian/libpcap0.8-dev.dirs
823 --- libpcap0.8-0.8.3.orig/debian/libpcap0.8.docs
824 +++ libpcap0.8-0.8.3/debian/libpcap0.8.docs
828 --- libpcap0.8-0.8.3.orig/debian/libpcap0.8.postrm
829 +++ libpcap0.8-0.8.3/debian/libpcap0.8.postrm
833 +if [ "$1" = "remove" ]; then