--- wireless-tools-29~pre22.orig/Makefile
+++ wireless-tools-29~pre22/Makefile
@@ -73,8 +73,8 @@
 # Install directories
 INSTALL_DIR= $(PREFIX)/sbin/
 INSTALL_LIB= $(PREFIX)/lib/
-INSTALL_INC= $(PREFIX)/include/
-INSTALL_MAN= $(PREFIX)/man/
+INSTALL_INC= $(PREFIX)/usr/include/
+INSTALL_MAN= $(PREFIX)/usr/share/man/
 
 # Various commands
 RM = rm -f
@@ -102,9 +102,9 @@
 endif
 
 # Other flags
-CFLAGS=-Os -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow \
+#CFLAGS=-Os -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow \
 	-Wpointer-arith -Wcast-qual -Winline -I.
-#CFLAGS=-O2 -W -Wall -Wstrict-prototypes -I.
+CFLAGS=-O2 -W -Wall -Wstrict-prototypes -I.
 DEPFLAGS=-MMD
 XCFLAGS=$(CFLAGS) $(DEPFLAGS) $(WARN) $(HEADERS) $(WELIB_FLAG) $(WEDEF_FLAG)
 PICFLAG=-fPIC
@@ -183,12 +183,14 @@
 
 # How could you live without those manapages ?
 install-man::
-	install -m 755 -d $(INSTALL_MAN)/man8/
-	install -m 644 $(MANPAGES8) $(INSTALL_MAN)/man8/
-	install -m 755 -d $(INSTALL_MAN)/man7/
-	install -m 644 $(MANPAGES7) $(INSTALL_MAN)/man7/
-	install -m 755 -d $(INSTALL_MAN)/man5/
-	install -m 644 $(MANPAGES5) $(INSTALL_MAN)/man5/
+	for lang in . cs fr; do \
+		install -m 755 -d $(INSTALL_MAN)/$$lang/man8/; \
+		install -m 644 $$lang/$(MANPAGES8) $(INSTALL_MAN)/$$lang/man8/; \
+		install -m 755 -d $(INSTALL_MAN)/$$lang/man7/; \
+		install -m 644 $$lang/$(MANPAGES7) $(INSTALL_MAN)/$$lang/man7/; \
+		install -m 755 -d $(INSTALL_MAN)/$$lang/man5/; \
+		install -m 644 $$lang/$(MANPAGES5) $(INSTALL_MAN)/$$lang/man5/; \
+	done
 
 install-iwmulticall:: iwmulticall
 	install -m 755 -d $(INSTALL_DIR)
--- wireless-tools-29~pre22.orig/debian/libiw-dev.docs
+++ wireless-tools-29~pre22/debian/libiw-dev.docs
@@ -0,0 +1 @@
+README
--- wireless-tools-29~pre22.orig/debian/libiw29.install
+++ wireless-tools-29~pre22/debian/libiw29.install
@@ -0,0 +1 @@
+debian/tmp/lib/*.so.*
--- wireless-tools-29~pre22.orig/debian/changelog
+++ wireless-tools-29~pre22/debian/changelog
@@ -0,0 +1,438 @@
+wireless-tools (29~pre22-1~bpo40+1) etch-backports; urgency=low
+
+  * etch backport.
+
+ -- Robert Millan <rmh@aybabtu.com>  Tue, 18 Sep 2007 21:09:24 +0200
+
+wireless-tools (29~pre22-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Guus Sliepen <guus@debian.org>  Sun, 01 Jul 2007 18:03:58 +0200
+
+wireless-tools (29~pre21-2) unstable; urgency=low
+
+  * Don't look at LINUX_VERSION_CODE, only use generic header files in
+    iwlib.h. Closes: #425485
+
+ -- Guus Sliepen <guus@debian.org>  Tue, 22 May 2007 10:27:46 +0200
+
+wireless-tools (29~pre21-1) unstable; urgency=low
+
+  * New upstream release. Closes: #421569
+
+ -- Guus Sliepen <guus@debian.org>  Thu, 03 May 2007 13:55:01 +0200
+
+wireless-tools (29~pre20-1) unstable; urgency=low
+
+  * New upstream release.
+  * Update debian/copyright and remove section about kernel versions from
+    README.Debian.
+  * Fix compiler warning about wrong format specifiers in iwlist.c.
+
+ -- Guus Sliepen <guus@debian.org>  Sun, 22 Apr 2007 12:51:43 +0200
+
+wireless-tools (29~pre18-1) experimental; urgency=low
+
+  * New upstream release.
+
+ -- Guus Sliepen <guus@debian.org>  Wed, 18 Apr 2007 10:18:16 +0200
+
+wireless-tools (29~pre17-1) experimental; urgency=low
+
+  * New upstream release. Closes: #398018
+  * Add LSB section to the ifrename init script.
+
+ -- Guus Sliepen <guus@debian.org>  Tue, 27 Mar 2007 10:39:33 +0200
+
+wireless-tools (28+29pre10-1) experimental; urgency=low
+
+  * New upstream release.
+
+ -- Guus Sliepen <guus@debian.org>  Thu,  4 May 2006 22:13:07 +0200
+
+wireless-tools (28+29pre9-2) experimental; urgency=low
+
+  * Compile with default gcc version. Closes: #364885
+
+ -- Guus Sliepen <guus@debian.org>  Wed, 26 Apr 2006 14:22:02 +0200
+
+wireless-tools (28+29pre9-1) experimental; urgency=low
+
+  * New upstream release.
+
+ -- Guus Sliepen <guus@debian.org>  Fri, 14 Apr 2006 22:46:20 +0200
+
+wireless-tools (28+29pre7-1) experimental; urgency=low
+
+  * New upstream release.
+
+ -- Guus Sliepen <guus@debian.org>  Tue, 11 Apr 2006 20:10:21 +0200
+
+wireless-tools (28-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Guus Sliepen <guus@debian.org>  Tue, 11 Apr 2006 19:52:34 +0200
+
+wireless-tools (27+28pre16-1) unstable; urgency=low
+
+  * New upstream release.
+  * Move the symlink /lib/libiw.so back to /usr/lib. Closes: #360372
+
+ -- Guus Sliepen <guus@debian.org>  Wed,  5 Apr 2006 13:51:59 +0200
+
+wireless-tools (27+28pre15-1) unstable; urgency=low
+
+  * New upstream release.
+  * Move udeb library dependency to shlib file (patch from Frans Pop).
+    Closes: #357802
+
+ -- Guus Sliepen <guus@debian.org>  Tue, 21 Mar 2006 12:30:13 +0100
+
+wireless-tools (27+28pre14-1) unstable; urgency=low
+
+  * New upstream release.
+  * Move static library to /usr/lib. Closes: #350707
+  * Remove /etc/iftab on purge. Closes: #345991
+
+ -- Guus Sliepen <guus@debian.org>  Tue, 14 Feb 2006 12:29:31 +0100
+
+wireless-tools (27+28pre13-1) unstable; urgency=low
+
+  * New upstream release.
+  * Stricter version dependency on libiw28. Closes: #345146
+
+ -- Guus Sliepen <guus@debian.org>  Fri, 30 Dec 2005 19:18:46 +0100
+
+wireless-tools (27+28pre11-1) unstable; urgency=low
+
+  * New upstream release.
+  * Fix installation of translated manpages.
+
+ -- Guus Sliepen <guus@debian.org>  Fri,  2 Dec 2005 12:30:21 +0100
+
+wireless-tools (27+28pre10-1) unstable; urgency=low
+
+  * New upstream release. Closes: #272662
+
+ -- Guus Sliepen <guus@debian.org>  Mon, 17 Oct 2005 01:17:10 +0200
+
+wireless-tools (27+28pre9-1) unstable; urgency=low
+
+  * New upstream release.
+  * Put manpages in the right packages. Closes: #323223
+  * Fix mistake in ifrename's init script that prevented it from running.
+
+ -- Guus Sliepen <guus@debian.org>  Wed,  7 Sep 2005 12:59:48 +0200
+
+wireless-tools (27+28pre8-1) unstable; urgency=low
+
+  * New upstream release.
+  * Use hyphens instead of underscores in README.Debian. Closes: #309805
+
+ -- Guus Sliepen <guus@debian.org>  Mon, 13 Jun 2005 11:41:28 +0200
+
+wireless-tools (27-3) unstable; urgency=low
+
+  * Add a post-down script that reverts any wireless setting present in
+    /etc/network/interfaces to sane defaults. Closes: #303782
+  * Add missing wireless-ap option. Closes: #303784
+  * Add init script that runs ifrename on system startup. Closes: #243382
+
+ -- Guus Sliepen <guus@debian.org>  Wed, 13 Apr 2005 12:51:03 +0200
+
+wireless-tools (27-2) unstable; urgency=low
+
+  * Backport fix from 28pre4 for MadWiFi scanning.
+  * Backport fix from 28pre4 for dashes in interface names. Closes: #289657
+
+ -- Guus Sliepen <guus@debian.org>  Sat,  5 Feb 2005 12:21:30 +0100
+
+wireless-tools (27-1) unstable; urgency=low
+
+  * New upstream release, that "hopefully will help the prompt release of the
+    new stable Debian ;-)" Thanks, Jean!
+
+ -- Guus Sliepen <guus@debian.org>  Sat,  6 Nov 2004 15:03:40 +0100
+
+wireless-tools (26+27pre28-1) unstable; urgency=low
+
+  * New upstream release. Closes: #271574
+
+ -- Guus Sliepen <guus@debian.org>  Thu, 28 Oct 2004 16:12:36 +0200
+
+wireless-tools (26+27pre26-2) unstable; urgency=low
+
+  * Fill in version number in libiw27.shlibs by hand. Closes: #275550
+
+ -- Guus Sliepen <guus@debian.org>  Fri,  8 Oct 2004 22:36:29 +0200
+
+wireless-tools (26+27pre26-1) unstable; urgency=low
+
+  * New upstream release.
+  * Fix -c option. Closes: #272522
+  * Let wireless-tools depend on same version of libiw.
+    Closes: #269520, #272431
+
+ -- Guus Sliepen <guus@debian.org>  Wed,  6 Oct 2004 16:49:49 +0200
+
+wireless-tools (26+27pre25-2) unstable; urgency=low
+
+  * Really remove version requirements from description.
+
+ -- Guus Sliepen <guus@debian.org>  Wed, 18 Aug 2004 13:00:03 +0000
+
+wireless-tools (26+27pre25-1) unstable; urgency=low
+
+  * New upstream release. Closes: #264533
+  * Drop kernel version requirements from description. Closes: #263342
+
+ -- Guus Sliepen <guus@debian.org>  Wed, 18 Aug 2004 14:55:22 +0200
+
+wireless-tools (26+27pre22-1) unstable; urgency=low
+
+  * New upstream release.
+  * Fix encoding of French manpages. Closes: #247302
+  * Use hyphens instead of underscores in wireless(7) and related
+    documentation. Closes: #245436
+  * Add Provides: libiw27 to libiw27-udeb. Closes: #250334
+  * Make iw_get_basic_config() idiot kernel driver proof. Closes: #251277
+
+ -- Guus Sliepen <guus@debian.org>  Wed,  2 Jun 2004 16:30:27 +0000
+
+wireless-tools (26+27pre21-1) unstable; urgency=low
+
+  * New upstream release.
+  * Apply patch from upstream author to if-pre-up.d script,
+    so options are processed in more or less the same order as the
+    PCMCIA scripts do. Closes: #246062
+  * Use underscores in wireless(7). Closes: #245436
+
+ -- Guus Sliepen <guus@debian.org>  Thu, 29 Apr 2004 15:19:30 +0200
+
+wireless-tools (26+27pre20-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Guus Sliepen <guus@debian.org>  Thu, 15 Apr 2004 15:30:17 +0200
+
+wireless-tools (26+27pre18-1) unstable; urgency=low
+
+  * New upstream release.
+  * Remove build-depends on di-packages-build, since debhelper can now
+    create udebs. Closes: #239492
+
+ -- Guus Sliepen <guus@debian.org>  Tue, 30 Mar 2004 21:19:02 +0200
+
+wireless-tools (26+27pre16-1) unstable; urgency=low
+
+  * New upstream release. Closes: #236670
+  * Create a new binary package ifrename.
+
+ -- Guus Sliepen <guus@debian.org>  Sat, 13 Mar 2004 12:17:28 +0100
+
+wireless-tools (26+27pre15-1) unstable; urgency=low
+
+  * New upstream release. Closes: #236136
+
+ -- Guus Sliepen <guus@debian.org>  Sun,  7 Mar 2004 15:30:50 +0100
+
+wireless-tools (26+27pre10-3) unstable; urgency=low
+
+  * Add patch for compatibility with drivers using old version of wireless
+    extensions. Closes: #235032
+
+ -- Guus Sliepen <guus@debian.org>  Fri, 27 Feb 2004 11:03:13 +0100
+
+wireless-tools (26+27pre10-2) unstable; urgency=low
+
+  * Make sure wireless-tools package depends on latest version of libiw27.
+    Closes: #234078
+  * Build udeb for libiw. Closes: #234677
+
+ -- Guus Sliepen <guus@debian.org>  Wed, 25 Feb 2004 12:24:55 +0100
+
+wireless-tools (26+27pre10-1) unstable; urgency=low
+
+  * New upstream release.
+  * Make sure README.Debian is in the debs. Closes: #231848
+
+ -- Guus Sliepen <guus@debian.org>  Sat, 21 Feb 2004 16:47:25 +0100
+
+wireless-tools (26+27pre9-2) unstable; urgency=low
+
+  * Build udeb binaries without needing -lm. Closes: #230146
+
+ -- Guus Sliepen <guus@debian.org>  Sun,  1 Feb 2004 17:02:20 +0100
+
+wireless-tools (26+27pre9-1) unstable; urgency=low
+
+  * New upstream release. Closes: #225951
+  * Reduce size of binaries in udeb. Closes: #228797
+
+ -- Guus Sliepen <guus@debian.org>  Wed, 21 Jan 2004 15:48:52 +0100
+
+wireless-tools (26+27pre7-3) unstable; urgency=low
+
+  * Fix typo in pre-up script.
+
+ -- Guus Sliepen <guus@debian.org>  Sun, 18 Jan 2004 15:34:38 +0100
+
+wireless-tools (26+27pre7-2) unstable; urgency=low
+
+  * Provide udeb package. Closes: #225587
+
+ -- Guus Sliepen <guus@debian.org>  Sat, 10 Jan 2004 19:36:31 +0100
+
+wireless-tools (26+27pre7-1) unstable; urgency=low
+
+  * New upstream release. Closes: #197909
+  * Don't quote options, except nick, nwid and nick. Closes: #224305
+  * Add extra directives for powermanagement (see README.Debian).
+
+ -- Guus Sliepen <guus@debian.org>  Sun, 14 Dec 2003 10:41:03 +0100
+
+wireless-tools (26-6) unstable; urgency=low
+
+  * Use eval for $IF_WIRELESS_KEY. Closes: #224079
+
+ -- Guus Sliepen <guus@debian.org>  Tue, 16 Dec 2003 18:38:35 +0100
+
+wireless-tools (26-5) unstable; urgency=low
+
+  * Use $IFACE in the pre-up script again. Closes: #223285
+
+ -- Guus Sliepen <guus@debian.org>  Tue,  9 Dec 2003 11:17:41 +0100
+
+wireless-tools (26-4) unstable; urgency=low
+
+  * There should be no need to know the details of iwconfig's command line
+    parsing, therefore pre-up directives in /etc/network/interfaces may
+    contain spaces and do not need to be quoted. Support for multiple keys
+    is added using new directives (see README.Debian). Closes: #220473
+  * Fix typo in manpage. Closes: #221844
+
+ -- Guus Sliepen <guus@debian.org>  Sat, 22 Nov 2003 13:08:37 +0100
+
+wireless-tools (26-3) unstable; urgency=low
+
+  * Build copies of the tools for each version of wireless extensions,
+    use iwredir to select the right copy at runtime. Closes: #220240, #210249
+
+ -- Guus Sliepen <guus@debian.org>  Tue, 11 Nov 2003 23:09:42 +0100
+
+wireless-tools (26-2) unstable; urgency=low
+
+  * Quote environment variables passed to pre-up script. Closes: #219212
+
+ -- Guus Sliepen <guus@debian.org>  Wed,  5 Nov 2003 10:31:54 +0100
+
+wireless-tools (26-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Guus Sliepen <guus@debian.org>  Wed, 18 Jun 2003 13:53:45 +0200
+
+wireless-tools (25-4) unstable; urgency=low
+
+  * Make sure conffiles are not registered twice. Closes: #196362
+  * libiw-dev belongs to section libdevel.
+  * Correct dependency on debhelper.
+
+ -- Guus Sliepen <guus@debian.org>  Sat, 14 Jun 2003 18:10:29 +0200
+
+wireless-tools (25-3) unstable; urgency=low
+
+  * Add libiw-dev package so people can compile statically against libiw.
+    No shared library yet, the API hasn't stabilised and the soname changes
+    way too often.
+
+ -- Guus Sliepen <guus@debian.org>  Tue, 21 Jan 2003 15:31:19 +0100
+
+wireless-tools (25-2) unstable; urgency=low
+
+  * Set channel/frequency after setting mode in pre-up script. Closes: #164012
+
+ -- Guus Sliepen <guus@debian.org>  Thu, 10 Oct 2002 20:40:08 +0200
+
+wireless-tools (25-1) unstable; urgency=low
+
+  * New upstream release. Closes: #150632
+  * Compile with private copy of wireless extensions v15. Closes: #150055
+
+ -- Guus Sliepen <guus@debian.org>  Tue, 20 Aug 2002 14:24:34 +0200
+
+wireless-tools (24-1) unstable; urgency=low
+
+  * New upstream release. Closes: #144555, #144814
+
+ -- Guus Sliepen <guus@sliepen.warande.net>  Sun, 28 Apr 2002 10:08:28 +0200
+
+wireless-tools (23-2) unstable; urgency=low
+
+  * Use eval when executing $IWCONFIG. Closes: #141417
+
+ -- Guus Sliepen <guus@sliepen.warande.net>  Sun,  7 Apr 2002 14:06:59 +0200
+
+wireless-tools (23-1) unstable; urgency=low
+
+  * New upstream release.
+  * Added "key" and "commit" commands for the if-pre-up.d script.
+    Closes: #129890
+
+ -- Guus Sliepen <guus@sliepen.warande.net>  Fri, 25 Jan 2002 11:29:45 +0100
+
+wireless-tools (22+23beta3-3) unstable; urgency=low
+
+  * Fixed if-pre-up.d script. Closes: #113128
+
+ -- Guus Sliepen <guus@sliepen.warande.net>  Wed, 12 Dec 2001 23:40:17 +0100
+
+wireless-tools (22+23beta3-2) unstable; urgency=low
+
+  * Don't build libraries for now. Closes: #120538
+  * Fix gcc-3.0 compiler warnings.
+
+ -- Guus Sliepen <guus@sliepen.warande.net>  Wed, 21 Nov 2001 20:25:08 +0100
+
+wireless-tools (22+23beta3-1) unstable; urgency=low
+
+  * I have taken over this package from Björn Andersson.
+    Closes: #81295, #90421, #91909, #93904, #96229, #103935, #104565, #105437, #107762
+  * New upstream release. Closes: #117130
+  * Added if-pre-up.d script. Closes: #113128
+
+ -- Guus Sliepen <guus@sliepen.warande.net>  Tue, 20 Nov 2001 11:58:21 +0100
+
+wireless-tools (21+22beta2-0.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * New upstream release. Closes: #107762, #104565, #96229, #93904, #81295
+  * Show "mode" option. Closes: #103935
+  * Correct URL in README file. Closes: #91909
+  * Put binaries in /sbin since they might be required for booting properly.
+    Closes: #105437
+  * Added manpage for iwgetid.
+  * Fixed lintian warnings and errors.
+
+ -- Guus Sliepen <guus@sliepen.warande.net>  Tue,  7 Aug 2001 11:57:07 +0200
+
+wireless-tools (20-1.1) unstable; urgency=low
+
+  * Bugsquash party NMU to fix a release-critical bug.
+  * Patch from Gerhard Muntingh <smunt@dds.nl> to avoid using <linux/in.h>
+    (closes: #90421).
+
+ -- Colin Watson <cjwatson@debian.org>  Sat, 14 Apr 2001 00:49:19 +0100
+
+wireless-tools (20-1) unstable; urgency=low
+
+  * initial release
+  * Sponsored upload for Björn Andersson <bjorn@lifix.fi>
+
+ -- Joey Hess <joeyh@debian.org>  Sat,  1 Apr 2000 11:55:23 +0300
+
+Local variables:
+mode: debian-changelog
+End:
--- wireless-tools-29~pre22.orig/debian/ifrename.docs
+++ wireless-tools-29~pre22/debian/ifrename.docs
@@ -0,0 +1,2 @@
+HOTPLUG.txt
+README
--- wireless-tools-29~pre22.orig/debian/libiw-dev.links
+++ wireless-tools-29~pre22/debian/libiw-dev.links
@@ -0,0 +1 @@
+/lib/libiw.so.29 /usr/lib/libiw.so
--- wireless-tools-29~pre22.orig/debian/README.Debian
+++ wireless-tools-29~pre22/debian/README.Debian
@@ -0,0 +1,50 @@
+/etc/network/interfaces
+-----------------------
+
+You can now add extra statements to the iface sections of the files in
+/etc/network/interfaces that are specific for wireless interfaces. They are of
+the form:
+
+    wireless-<function> <value>
+
+Before the interface is brought up, such a statement will result in the
+execution of the following command:
+
+    iwconfig <interface> <function> <value>
+
+If you bring the interface down, then for each wireless-<function> statement
+given it will execute a corresponding iwconfig command that reverts that
+function back to sane defaults.  For example, if you specified a wireless-key,
+if you run ifdown it will set the wireless key to "off".
+
+If you want to specify a nick, nwid or essid with spaces in them, you must not
+surround them with quotes.
+
+To specify multiple keys the following statements are also available:
+
+    wireless-key<number> <key>
+    wireless-defaultkey <number>
+    wireless-keymode restricted|open
+
+To finetune powermanagement the following statments are also available:
+
+    wireless-powerperiod <period>
+    wireless-powertimeout <timeout>
+
+Example:
+
+iface eth0 inet static
+    address 192.168.1.2
+    network 192.168.1.0
+    netmask 255.255.255.0
+    broadcast 192.168.1.255
+    wireless-essid Home
+    wireless-mode ad-hoc
+
+Example of multiple keys:
+
+    wireless-key1 0123-4567-89ab-cdef
+    wireless-key2 12345678
+    wireless-key3 s:password
+    wireless-defaultkey 2
+    wireless-keymode open
--- wireless-tools-29~pre22.orig/debian/ifrename.install
+++ wireless-tools-29~pre22/debian/ifrename.install
@@ -0,0 +1,5 @@
+debian/tmp/sbin/ifrename
+debian/tmp/usr/share/man/man8/ifrename.8
+debian/tmp/usr/share/man/man5/iftab.5
+debian/tmp/usr/share/man/*/man8/ifrename.8
+debian/tmp/usr/share/man/*/man5/iftab.5
--- wireless-tools-29~pre22.orig/debian/control
+++ wireless-tools-29~pre22/debian/control
@@ -0,0 +1,73 @@
+Source: wireless-tools
+Section: net
+Priority: extra
+Maintainer: Guus Sliepen <guus@debian.org>
+Standards-Version: 3.7.2
+Build-Depends: debhelper (>= 5.0.22)
+
+Package: wireless-tools
+Section: net
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: Tools for manipulating Linux Wireless Extensions 
+ This package contains the Wireless tools, used to manipulate
+ the Linux Wireless Extensions. The Wireless Extension is an interface
+ allowing you to set Wireless LAN specific parameters and get the
+ specific stats.
+
+Package: ifrename
+Section: net
+Architecture: any
+Depends: ${shlibs:Depends}
+Conflicts: wireless-tools (<< 27+28pre9)
+Description: Rename network interfaces based on various static criteria
+ Ifrename allow the user to decide what name a network interface will have.
+ Ifrename can use a variety of selectors to specify how interface names match
+ the network interfaces on the system, the most common selector is the
+ interface MAC address.
+
+Package: libiw29
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: Wireless tools - library
+ Wireless tools are used to manipulate the Linux Wireless Extensions. The
+ Wireless Extension is an interface allowing you to set Wireless LAN specific
+ parameters and get the specific stats.
+ .
+ This package contains the dynamic library libiw.
+
+Package: libiw-dev
+Section: libdevel
+Architecture: any
+Depends: libiw29 (= ${Source-Version}), libc6-dev
+Description: Wireless tools - development files
+ Wireless tools are used to manipulate the Linux Wireless Extensions. The
+ Wireless Extension is an interface allowing you to set Wireless LAN specific
+ parameters and get the specific stats.
+ .
+ This package contains the header files and static version of libiw.
+
+Package: wireless-tools-udeb
+Section: debian-installer
+Architecture: any
+XC-Package-Type: udeb
+Depends: ${shlibs:Depends}
+Description: Tools for manipulating Linux Wireless Extensions
+ This package contains the Wireless tools, used to manipulate the Linux
+ Wireless Extensions. The Wireless Extension is an interface allowing you to
+ set Wireless LAN specific parameters and get the specific stats.
+ .
+ This is a udeb of the wireless tools.
+
+Package: libiw29-udeb
+Section: debian-installer
+Architecture: any
+XC-Package-Type: udeb
+Depends: ${shlibs:Depends}
+Description: Tools for manipulating Linux Wireless Extensions
+ This package contains the Wireless tools, used to manipulate the Linux
+ Wireless Extensions. The Wireless Extension is an interface allowing you to
+ set Wireless LAN specific parameters and get the specific stats.
+ .
+ This is a udeb of the wireless tools.
--- wireless-tools-29~pre22.orig/debian/wireless-tools.install
+++ wireless-tools-29~pre22/debian/wireless-tools.install
@@ -0,0 +1,5 @@
+debian/tmp/sbin/iw*
+debian/tmp/usr/share/man/man8/iw*.8
+debian/tmp/usr/share/man/man7/*.7
+debian/tmp/usr/share/man/*/man8/iw*.8
+debian/tmp/usr/share/man/*/man7/*.7
--- wireless-tools-29~pre22.orig/debian/ifrename.init
+++ wireless-tools-29~pre22/debian/ifrename.init
@@ -0,0 +1,37 @@
+#!/bin/sh
+#
+### BEGIN INIT INFO
+# Provides:          ifrename
+# Required-Start:    mountkernfs
+# Required-Stop:     
+# Should-Start:      
+# Should-Stop:       
+# Default-Start:     S
+# Default-Stop:      
+# Short-Description: Rename network interface names
+# Description:       Ifrename allow the user to decide what name a network
+#                    interface will have.  Ifrename can use a variety of
+#                    selectors to specify how interface names match the network
+#                    interfaces on the system, the most common selector is the
+#                    interface MAC address.
+### END INIT INFO
+
+NAME=ifrename
+IFRENAME=/sbin/ifrename
+IFTAB=/etc/iftab
+
+test -x $IFRENAME || exit 0
+test -f $IFTAB || exit 0
+
+case "$1" in
+	start|reload|force-reload|restart)
+		$IFRENAME -d -p
+	;;
+	stop)
+	;;
+	*)
+		echo "Usage: invoke-rc.d $NAME {start|stop|reload|force-reload|restart}"
+	;;
+esac
+
+exit 0
--- wireless-tools-29~pre22.orig/debian/compat
+++ wireless-tools-29~pre22/debian/compat
@@ -0,0 +1 @@
+5
--- wireless-tools-29~pre22.orig/debian/rules
+++ wireless-tools-29~pre22/debian/rules
@@ -0,0 +1,56 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+UDEB_CFLAGS=-Os -I.
+
+build: build-stamp
+build-stamp:
+	dh_testdir
+	$(MAKE) all libiw.a
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp
+	-$(MAKE) realclean
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+	$(MAKE) install install-static PREFIX="`pwd`/debian/tmp"
+	dh_link
+	dh_install
+	install -D debian/pre-up debian/wireless-tools/etc/network/if-pre-up.d/wireless-tools
+	install -D debian/post-down debian/wireless-tools/etc/network/if-post-down.d/wireless-tools
+	$(MAKE) clean
+	$(MAKE) BUILD_NOLIBM=y CFLAGS="$(UDEB_CFLAGS)" PREFIX="`pwd`/debian/tmp"
+	dh_install -pwireless-tools-udeb iwconfig iwgetid sbin/
+	dh_install -plibiw29-udeb libiw.so.29 lib/
+
+binary-indep: build install
+
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+#	dh_installmanpages
+	dh_installdocs
+	dh_installchangelogs CHANGELOG.h 
+	dh_installinit --no-start -- start 40 S .
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_makeshlibs --add-udeb=libiw29-udeb
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
--- wireless-tools-29~pre22.orig/debian/post-down
+++ wireless-tools-29~pre22/debian/post-down
@@ -0,0 +1,60 @@
+#!/bin/sh
+
+IWCONFIG=/sbin/iwconfig
+
+if [ ! -x $IWCONFIG ]; then
+  exit 0
+fi
+
+if [ -n "$IF_WIRELESS_MODE" ]; then
+  $IWCONFIG "$IFACE" mode auto
+fi
+
+if [ -n "$IF_WIRELESS_AP" ]; then
+  $IWCONFIG "$IFACE" ap off
+fi
+
+if [ -n "$IF_WIRELESS_RATE" ]; then
+  $IWCONFIG "$IFACE" rate auto
+fi
+
+if [ -n "$IF_WIRELESS_RTS" ]; then
+  $IWCONFIG "$IFACE" rts auto
+fi
+
+if [ -n "$IF_WIRELESS_FRAG" ]; then
+  $IWCONFIG "$IFACE" frag auto
+fi
+
+if [ -n "$IF_WIRELESS_POWER" ]; then
+  $IWCONFIG "$IFACE" power off
+fi
+
+if [ -n "$IF_WIRELESS_TXPOWER" ]; then
+  $IWCONFIG "$IFACE" txpower auto
+fi
+
+if [ -n "$IF_WIRELESS_ENC" ]; then
+  $IWCONFIG "$IFACE" enc off
+fi
+
+if [ -n "$IF_WIRELESS_KEY" ]; then
+  $IWCONFIG "$IFACE" key off
+fi
+
+if [ -n "$IF_WIRELESS_DEFAULTKEY" ]; then
+  $IWCONFIG "$IFACE" key off
+fi
+
+if [ -n "$IF_WIRELESS_NWID" ]; then
+  $IWCONFIG "$IFACE" nwid off
+fi
+
+if [ -n "$IF_WIRELESS_ESSID" ]; then
+  $IWCONFIG "$IFACE" essid any
+fi
+
+if [ -n "$IF_WIRELESS_COMMIT" ]; then
+  $IWCONFIG "$IFACE" commit
+fi
+
--- wireless-tools-29~pre22.orig/debian/libiw29.shlibs
+++ wireless-tools-29~pre22/debian/libiw29.shlibs
@@ -0,0 +1,2 @@
+libiw 29 libiw29 (>= 28+29pre7)
+udeb: libiw 29 libiw29-udeb (>= 28+29pre7)
--- wireless-tools-29~pre22.orig/debian/pre-up
+++ wireless-tools-29~pre22/debian/pre-up
@@ -0,0 +1,108 @@
+#!/bin/sh
+
+IWCONFIG=/sbin/iwconfig
+
+if [ ! -x $IWCONFIG ]; then
+  exit 0
+fi
+
+if [ -n "$IF_WIRELESS_SENS" ]; then
+  $IWCONFIG "$IFACE" sens $IF_WIRELESS_SENS
+fi
+
+if [ -n "$IF_WIRELESS_MODE" ]; then
+  $IWCONFIG "$IFACE" mode $IF_WIRELESS_MODE
+fi
+
+if [ -n "$IF_WIRELESS_AP" ]; then
+  $IWCONFIG "$IFACE" ap $IF_WIRELESS_AP
+fi
+
+if [ -n "$IF_WIRELESS_RATE" ]; then
+  $IWCONFIG "$IFACE" rate $IF_WIRELESS_RATE
+fi
+
+if [ -n "$IF_WIRELESS_RTS" ]; then
+  $IWCONFIG "$IFACE" rts $IF_WIRELESS_RTS
+fi
+
+if [ -n "$IF_WIRELESS_FRAG" ]; then
+  $IWCONFIG "$IFACE" frag $IF_WIRELESS_FRAG
+fi
+
+if [ -n "$IF_WIRELESS_POWER" ]; then
+  $IWCONFIG "$IFACE" power $IF_WIRELESS_POWER
+fi
+
+if [ -n "$IF_WIRELESS_POWERPERIOD" ]; then
+  $IWCONFIG "$IFACE" power period $IF_WIRELESS_POWERPERIOD
+fi
+
+if [ -n "$IF_WIRELESS_POWERTIMEOUT" ]; then
+  $IWCONFIG "$IFACE" power timeout $IF_WIRELESS_POWERTIMEOUT
+fi
+
+if [ -n "$IF_WIRELESS_TXPOWER" ]; then
+  $IWCONFIG "$IFACE" txpower $IF_WIRELESS_TXPOWER
+fi
+
+if [ -n "$IF_WIRELESS_RETRY" ]; then
+  $IWCONFIG "$IFACE" retry $IF_WIRELESS_RETRY
+fi
+
+if [ -n "$IF_WIRELESS_ENC" ]; then
+  eval $IWCONFIG "$IFACE" enc $IF_WIRELESS_ENC
+fi
+
+if [ -n "$IF_WIRELESS_KEY" ]; then
+  eval $IWCONFIG "$IFACE" key $IF_WIRELESS_KEY
+fi
+
+if [ -n "$IF_WIRELESS_KEY1" ]; then
+  $IWCONFIG "$IFACE" key [1] "$IF_WIRELESS_KEY1"
+fi
+
+if [ -n "$IF_WIRELESS_KEY2" ]; then
+  $IWCONFIG "$IFACE" key [2] "$IF_WIRELESS_KEY2"
+fi
+
+if [ -n "$IF_WIRELESS_KEY3" ]; then
+  $IWCONFIG "$IFACE" key [3] "$IF_WIRELESS_KEY3"
+fi
+
+if [ -n "$IF_WIRELESS_KEY4" ]; then
+  $IWCONFIG "$IFACE" key [4] "$IF_WIRELESS_KEY4"
+fi
+
+if [ -n "$IF_WIRELESS_DEFAULTKEY" ]; then
+  $IWCONFIG "$IFACE" key ["$IF_WIRELESS_DEFAULTKEY"]
+fi
+
+if [ -n "$IF_WIRELESS_KEYMODE" ]; then
+  $IWCONFIG "$IFACE" key "$IF_WIRELESS_KEYMODE"
+fi
+
+if [ -n "$IF_WIRELESS_FREQ" ]; then
+  $IWCONFIG "$IFACE" freq $IF_WIRELESS_FREQ
+fi
+
+if [ -n "$IF_WIRELESS_CHANNEL" ]; then
+  $IWCONFIG "$IFACE" channel $IF_WIRELESS_CHANNEL
+fi
+
+if [ -n "$IF_WIRELESS_NICK" ]; then
+  $IWCONFIG "$IFACE" nick "$IF_WIRELESS_NICK"
+fi
+
+if [ -n "$IF_WIRELESS_NWID" ]; then
+  $IWCONFIG "$IFACE" nwid "$IF_WIRELESS_NWID"
+fi
+
+if [ -n "$IF_WIRELESS_ESSID" ]; then
+  $IWCONFIG "$IFACE" essid "$IF_WIRELESS_ESSID"
+fi
+
+if [ -n "$IF_WIRELESS_COMMIT" ]; then
+  $IWCONFIG "$IFACE" commit
+fi
+
--- wireless-tools-29~pre22.orig/debian/wireless-tools.docs
+++ wireless-tools-29~pre22/debian/wireless-tools.docs
@@ -0,0 +1,4 @@
+DISTRIBUTIONS.txt
+PCMCIA.txt
+HOTPLUG.txt
+README
--- wireless-tools-29~pre22.orig/debian/libiw-dev.install
+++ wireless-tools-29~pre22/debian/libiw-dev.install
@@ -0,0 +1,2 @@
+debian/tmp/lib/*.a usr/lib/
+debian/tmp/usr/include/*
--- wireless-tools-29~pre22.orig/debian/ifrename.postrm
+++ wireless-tools-29~pre22/debian/ifrename.postrm
@@ -0,0 +1,7 @@
+#!/bin/sh -e
+
+if [ "$1" = "purge" ]; then
+	rm -f /etc/iftab
+fi
+
+#DEBHELPER#
--- wireless-tools-29~pre22.orig/debian/copyright
+++ wireless-tools-29~pre22/debian/copyright
@@ -0,0 +1,26 @@
+This package was debianized by Björn Andersson <bjorn@lifix.fi> on
+Sat,  1 Apr 2000 11:55:23 +0300.
+
+The current Debian maintainer is Guus Sliepen <guus@debian.org>.
+
+It was downloaded from: http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html
+
+Upstream Author: Jean Tourrilhes <jt@hpl.hp.com>
+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301,
+    USA.
+
+On Debian systems, the complete text of the GNU General Public
+License, version 2, can be found in /usr/share/common-licenses/GPL-2.
--- wireless-tools-29~pre22.orig/iwlib.c
+++ wireless-tools-29~pre22/iwlib.c
@@ -667,6 +667,7 @@
 {
   struct iwreq		wrq;
 
+  memset((char *) &wrq, 0, sizeof(struct iwreq));
   memset((char *) info, 0, sizeof(struct wireless_config));
 
   /* Get wireless name */
