r349 - in /etchnhalf/madwifi-tools/debian: ./ README.debian changelog compat control copyright dfsg.files dirs madwifi-tools.madwifi.modprobe manpages patches/ patches/00list patches/01_athstats_disable_hal_phy_errors.dpatch post-down pre-up rules
kelmo-guest at users.alioth.debian.org
kelmo-guest at users.alioth.debian.org
Thu Jul 24 07:13:35 UTC 2008
Author: kelmo-guest
Date: Thu Jul 24 07:13:35 2008
New Revision: 349
URL: http://svn.debian.org/wsvn/?sc=1&rev=349
Log:
* Install /etc/modprobe.d/madwifi for the purpose of blacklisting ath5k and
allowing madwifi to function without conflict.
* Initial release.
* Add ${misc:Depends}.
* Clarify the origin of the source and the split.
* Add CDBS' utils.
Added:
etchnhalf/madwifi-tools/debian/
etchnhalf/madwifi-tools/debian/README.debian
etchnhalf/madwifi-tools/debian/changelog
etchnhalf/madwifi-tools/debian/compat
etchnhalf/madwifi-tools/debian/control
etchnhalf/madwifi-tools/debian/copyright
etchnhalf/madwifi-tools/debian/dfsg.files
etchnhalf/madwifi-tools/debian/dirs
etchnhalf/madwifi-tools/debian/madwifi-tools.madwifi.modprobe
etchnhalf/madwifi-tools/debian/manpages
etchnhalf/madwifi-tools/debian/patches/
etchnhalf/madwifi-tools/debian/patches/00list
etchnhalf/madwifi-tools/debian/patches/01_athstats_disable_hal_phy_errors.dpatch
etchnhalf/madwifi-tools/debian/post-down
etchnhalf/madwifi-tools/debian/pre-up
etchnhalf/madwifi-tools/debian/rules (with props)
Added: etchnhalf/madwifi-tools/debian/README.debian
URL: http://svn.debian.org/wsvn/etchnhalf/madwifi-tools/debian/README.debian?rev=349&op=file
==============================================================================
--- etchnhalf/madwifi-tools/debian/README.debian (added)
+++ etchnhalf/madwifi-tools/debian/README.debian Thu Jul 24 07:13:35 2008
@@ -1,0 +1,108 @@
+madwifi-tools
+=============
+
+The following paragraphs briefly describe the madwifi-tools. They are
+crucial to the normal operation of the MadWifi modules.
+
+
+1. VAP's
+========
+
+What are they and why are they so special?
+
+Virtual AP (VAP) mode [1], allows the operation of multiple concurrent virtual
+access points, and concurrent virtual interfaces running in both AP and station
+mode (only one station mode VAP can exist per device).
+
+By default, one station is created per device (emulating standard behaviour).
+The autocreation behaviour [2] can be manipulated by providing an option to the
+ath_pci module when it is loaded.
+
+Usage: modprobe ath_pci autocreate=[none|sta|ap|wds|adhoc|ahdemo|monitor]
+
+The following example would disable autocreation, and only the "base" device
+would be present:-
+
+ # modprobe ath_pci autocreate=none
+
+To make this behaviour default, create a /etc/modprobe.d/madwifi file with
+the following content:-
+
+ options ath_pci autocreate=none
+
+[1] http://madwifi.org/wiki/ngFeatures#VAPsandwlanconfig
+[2] http://madwifi.org/wiki/UserDocs/autocreate
+
+
+2. wlanconfig
+=============
+
+This is the master tool for creating and destroying VAP's [3]. On Debian
+systems it is located at /usr/sbin/wlanconfig. It's usage is well described in
+the wlanconfig(8) manpage.
+
+[3] http://madwifi.org/wiki/UserDocs#CreatingInterfacesinmadwifing
+
+
+3. Automating VAP creation in /etc/network/interfaces
+=====================================================
+
+Use pre-up/post-down routines to automate VAP creation and destruction as in
+the following example:-
+
+ iface ath0 inet static
+ pre-up wlanconfig ath0 create wlandev wifi0 wlanmode ap
+ post-down wlanconfig ath0 destroy
+ wireless-essid my-essid
+ ...
+
+
+4. Setting of country code
+==========================
+
+With some cards, and in some countries, you might benefit from country specific
+frequencies by passing the parameter "countrycode" to the ath_pci kernel
+module.
+
+Under 2.6 kernels, this can be done by creating a /etc/modprobe.d/madwifi file
+with the following content:-
+
+ options ath_pci countrycode=123
+
+An online list of country codes can be found at:-
+
+ <http://www.unicode.org/onlinedat/countries.html>
+
+Or in the iso-codes package under:-
+
+ /usr/share/xml/iso-codes/iso_3166.xml
+
+madwifi only recognizes a subset of these codes, eg. "France, Metropolitan"
+(249) won't be recognized while "France" (250) is.
+
+Passing a country code parameter forbids the use of "turbog" modes (where
+multiple frequencies are used to transmit data between turbog-capable chips).
+
+For more information on how and why madwifi must honor regdomain restrictions,
+please see http://madwifi.org/wiki/UserDocs/CountryCode.
+
+
+5. Debugging tools
+==================
+
+athdebug and 80211debug are two programs that can be used to control the amount
+of debugging output (dmesg and /var/log/messages). They are best described at:-
+
+ http://madwifi.org/wiki/DevDocs/AthDebug
+
+
+6. Futher Reading
+=================
+
+The 'madwifi-doc' package contains the madwifi users-guide, a comprhensive
+document containing all infomation pertaining to the administration of the
+kernel modules and userspace tools.
+
+The madwifi-doc packages installs the document to:-
+
+ /usr/share/doc/madwifi-doc/users-guide.pdf.gz
Added: etchnhalf/madwifi-tools/debian/changelog
URL: http://svn.debian.org/wsvn/etchnhalf/madwifi-tools/debian/changelog?rev=349&op=file
==============================================================================
--- etchnhalf/madwifi-tools/debian/changelog (added)
+++ etchnhalf/madwifi-tools/debian/changelog Thu Jul 24 07:13:35 2008
@@ -1,0 +1,18 @@
+madwifi-tools (1:0.9.2+dfsg-1etch1) stable; urgency=low
+
+ * Install /etc/modprobe.d/madwifi for the purpose of blacklisting ath5k and
+ allowing madwifi to function without conflict.
+
+ -- Kel Modderman <kel at otaku42.de> Thu, 24 Jul 2008 17:07:13 +1000
+
+madwifi-tools (1:0.9.2+dfsg-1) unstable; urgency=low
+
+ [ Kel Modderman ]
+ * Initial release.
+
+ [ Loic Minier ]
+ * Add ${misc:Depends}.
+ * Clarify the origin of the source and the split.
+ * Add CDBS' utils.
+
+ -- Kel Modderman <kel at otaku42.de> Thu, 24 Jul 2008 17:06:15 +1000
Added: etchnhalf/madwifi-tools/debian/compat
URL: http://svn.debian.org/wsvn/etchnhalf/madwifi-tools/debian/compat?rev=349&op=file
==============================================================================
--- etchnhalf/madwifi-tools/debian/compat (added)
+++ etchnhalf/madwifi-tools/debian/compat Thu Jul 24 07:13:35 2008
@@ -1,0 +1,1 @@
+5
Added: etchnhalf/madwifi-tools/debian/control
URL: http://svn.debian.org/wsvn/etchnhalf/madwifi-tools/debian/control?rev=349&op=file
==============================================================================
--- etchnhalf/madwifi-tools/debian/control (added)
+++ etchnhalf/madwifi-tools/debian/control Thu Jul 24 07:13:35 2008
@@ -1,0 +1,19 @@
+Source: madwifi-tools
+Section: contrib/net
+Priority: optional
+Maintainer: Debian madwifi team <pkg-madwifi-maintainers at lists.alioth.debian.org>
+Uploaders: Loic Minier <lool at dooz.org>, Kel Modderman <kelrin at tpg.com.au>, Matt Brown <debian at mattb.net.nz>, Alex Wallis <awol at otaku42.de>
+Build-Depends: cdbs, debhelper (>= 5), dpatch
+Standards-Version: 3.7.2
+
+Package: madwifi-tools
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Recommends: madwifi-doc, madwifi-source
+Replaces: madwifi-ng-tools
+Suggests: bridge-utils, hostapd, wpasupplicant, wireless-tools
+Description: tools for the Multiband Atheros Driver for WiFi
+ This package provides userspace tools for the madwifi driver. The tools are
+ required to use and manipulate the madwifi interfaces present in a system.
+ .
+ http://madwifi.org/
Added: etchnhalf/madwifi-tools/debian/copyright
URL: http://svn.debian.org/wsvn/etchnhalf/madwifi-tools/debian/copyright?rev=349&op=file
==============================================================================
--- etchnhalf/madwifi-tools/debian/copyright (added)
+++ etchnhalf/madwifi-tools/debian/copyright Thu Jul 24 07:13:35 2008
@@ -1,0 +1,65 @@
+This package was debianized by Kel Modderman <kelrin at tpg.com.au> on
+Tue, 05 Sep 2006 17:56:31 +1000.
+
+The original tarball was downloaded from <http://madwifi.org/>, and stripped
+from problematic files which belong to the "madwifi" source in Debian's
+non-free component. These problematic files included the "Hardware Abstraction
+Layer" and were available under binary form only.
+
+All the files in this source are distributed under a GPL or dual GPL/BSD
+license.
+
+On Debian GNU/Linux systems, the text of the GPL license can be found in
+/usr/share/common-licenses/GPL and the text of the BSD license in the same
+directory.
+
+The file tools/wireless_copy.h is Copyright (c) 1997-2005 Jean Tourrilhes
+and covered by the GPLv2 license.
+
+All other files contained in this distribution are covered by the following
+dual GPL/BSD license:
+
+ Copyright (c) 2002-2005 Sam Leffler, Errno Consulting
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer,
+ without modification.
+ 2. Redistributions in binary form must reproduce at minimum a disclaimer
+ similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any
+ redistribution must be conditioned upon including a substantially
+ similar Disclaimer requirement for further binary redistribution.
+ 3. Neither the names of the above-listed copyright holders nor the names
+ of any contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+ Alternatively, this software may be distributed under the terms of the
+ GNU General Public License ("GPL") version 2 as published by the Free
+ Software Foundation.
+
+ NO WARRANTY
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY
+ AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
+ THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY,
+ OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+ IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ THE POSSIBILITY OF SUCH DAMAGES.
+
+The files net80211/ieee80211_crypto.h net80211/_ieee80211.h
+net80211/ieee80211.h net80211/ieee80211_ioctl.h are covered by the above
+license but with the following copyright holders:
+
+ Copyright (c) 2001 Atsushi Onoe
+ Copyright (c) 2002-2005 Sam Leffler, Errno Consulting.
+
+The Debian packaging is (C) 2006, Kel Modderman <kelrin at tpg.com.au> and
+is licensed under the GPL. On Debian systems, the complete text of the GNU
+General Public License can be found in `/usr/share/common-licenses/GPL'.
Added: etchnhalf/madwifi-tools/debian/dfsg.files
URL: http://svn.debian.org/wsvn/etchnhalf/madwifi-tools/debian/dfsg.files?rev=349&op=file
==============================================================================
--- etchnhalf/madwifi-tools/debian/dfsg.files (added)
+++ etchnhalf/madwifi-tools/debian/dfsg.files Thu Jul 24 07:13:35 2008
@@ -1,0 +1,8 @@
+COPYRIGHT
+ath/if_athioctl.h
+tools
+include/compat.h
+net80211/_ieee80211.h
+net80211/ieee80211.h
+net80211/ieee80211_crypto.h
+net80211/ieee80211_ioctl.h
Added: etchnhalf/madwifi-tools/debian/dirs
URL: http://svn.debian.org/wsvn/etchnhalf/madwifi-tools/debian/dirs?rev=349&op=file
==============================================================================
--- etchnhalf/madwifi-tools/debian/dirs (added)
+++ etchnhalf/madwifi-tools/debian/dirs Thu Jul 24 07:13:35 2008
@@ -1,0 +1,2 @@
+sbin/
+usr/sbin/
Added: etchnhalf/madwifi-tools/debian/madwifi-tools.madwifi.modprobe
URL: http://svn.debian.org/wsvn/etchnhalf/madwifi-tools/debian/madwifi-tools.madwifi.modprobe?rev=349&op=file
==============================================================================
--- etchnhalf/madwifi-tools/debian/madwifi-tools.madwifi.modprobe (added)
+++ etchnhalf/madwifi-tools/debian/madwifi-tools.madwifi.modprobe Thu Jul 24 07:13:35 2008
@@ -1,0 +1,19 @@
+## ath5k (mac80211)
+## Comment out the following line, and uncomment all of the
+## madwifi modules below to use the athk module
+blacklist ath5k
+
+## madwifi (non-free)
+#blacklist ath_hal
+#blacklist ath_pci
+#blacklist ath_rate_amrr
+#blacklist ath_rate_onoe
+#blacklist ath_rate_sample
+#blacklist wlan
+#blacklist wlan_acl
+#blacklist wlan_ccmp
+#blacklist wlan_scan_ap
+#blacklist wlan_scan_sta
+#blacklist wlan_tkip
+#blacklist wlan_wep
+#blacklist wlan_xauth
Added: etchnhalf/madwifi-tools/debian/manpages
URL: http://svn.debian.org/wsvn/etchnhalf/madwifi-tools/debian/manpages?rev=349&op=file
==============================================================================
--- etchnhalf/madwifi-tools/debian/manpages (added)
+++ etchnhalf/madwifi-tools/debian/manpages Thu Jul 24 07:13:35 2008
@@ -1,0 +1,8 @@
+tools/man/80211debug.8
+tools/man/80211stats.8
+tools/man/athchans.8
+tools/man/athctrl.8
+tools/man/athdebug.8
+tools/man/athkey.8
+tools/man/athstats.8
+tools/man/wlanconfig.8
Added: etchnhalf/madwifi-tools/debian/patches/00list
URL: http://svn.debian.org/wsvn/etchnhalf/madwifi-tools/debian/patches/00list?rev=349&op=file
==============================================================================
--- etchnhalf/madwifi-tools/debian/patches/00list (added)
+++ etchnhalf/madwifi-tools/debian/patches/00list Thu Jul 24 07:13:35 2008
@@ -1,0 +1,1 @@
+01_athstats_disable_hal_phy_errors
Added: etchnhalf/madwifi-tools/debian/patches/01_athstats_disable_hal_phy_errors.dpatch
URL: http://svn.debian.org/wsvn/etchnhalf/madwifi-tools/debian/patches/01_athstats_disable_hal_phy_errors.dpatch?rev=349&op=file
==============================================================================
--- etchnhalf/madwifi-tools/debian/patches/01_athstats_disable_hal_phy_errors.dpatch (added)
+++ etchnhalf/madwifi-tools/debian/patches/01_athstats_disable_hal_phy_errors.dpatch Thu Jul 24 07:13:35 2008
@@ -1,0 +1,61 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## athstats_disable_hal_phy_errors.patch by Kel Modderman <kelrin at tpg.com.au>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Disable inclusion of HAL_PHYERR_* via the non-free ah_desc.h header
+## DP: Contributed by Pavel Roskin
+
+ at DPATCH@
+diff -Nrup madwifi-0.9.2/tools/athstats.c madwifi-0.9.2-athstats-phyerr/tools/athstats.c
+--- madwifi-0.9.2/tools/athstats.c 2006-05-05 14:20:50.000000000 +1000
++++ madwifi-0.9.2-athstats-phyerr/tools/athstats.c 2006-09-15 10:03:39.000000000 +1000
+@@ -61,9 +61,12 @@
+ #define __user
+
+ #include "wireless_copy.h"
+-#include "ah_desc.h"
++/*
++ * #include "ah_desc.h" not DFSG compat
++ */
+ #include "if_athioctl.h"
+
++#if 0
+ static const struct {
+ u_int phyerr;
+ const char* desc;
+@@ -88,6 +91,7 @@ static const struct {
+ { HAL_PHYERR_CCK_SERVICE, "CCK illegal service" },
+ { HAL_PHYERR_CCK_RESTART, "CCK restart" },
+ };
++#endif
+
+ static void
+ printstats(FILE *fd, const struct ath_stats *stats)
+@@ -97,7 +101,7 @@ printstats(FILE *fd, const struct ath_st
+ if (stats->ast_##x) fprintf(fd, "%u " fmt "\n", stats->ast_##x)
+ #define STATI(x,fmt) \
+ if (stats->ast_##x) fprintf(fd, "%d " fmt "\n", stats->ast_##x)
+- int i, j;
++ int i;
+
+ STAT(watchdog, "watchdog timeouts");
+ STAT(hardware, "hardware error interrupts");
+@@ -139,6 +143,7 @@ printstats(FILE *fd, const struct ath_st
+ for (i = 0; i < 32; i++) {
+ if (stats->ast_rx_phy[i] == 0)
+ continue;
++ #if 0
+ for (j = 0; j < N(phyerrdescriptions); j++)
+ if (phyerrdescriptions[j].phyerr == i)
+ break;
+@@ -150,6 +155,10 @@ printstats(FILE *fd, const struct ath_st
+ fprintf(fd, " %u %s\n",
+ stats->ast_rx_phy[i],
+ phyerrdescriptions[j].desc);
++ #endif
++ fprintf(fd,
++ " %u (phy error code %u)\n",
++ stats->ast_rx_phy[i], i);
+ }
+ }
+ STAT(be_nobuf, "no skbuff available for beacon");
Added: etchnhalf/madwifi-tools/debian/post-down
URL: http://svn.debian.org/wsvn/etchnhalf/madwifi-tools/debian/post-down?rev=349&op=file
==============================================================================
--- etchnhalf/madwifi-tools/debian/post-down (added)
+++ etchnhalf/madwifi-tools/debian/post-down Thu Jul 24 07:13:35 2008
@@ -1,0 +1,36 @@
+#!/bin/sh
+#
+# Debian ifupdown hook script for madwifi-ng
+#
+# Author: Matt Brown <matt at mattb.net.nz>
+# Modified by: Kel Modderman <kelrin at tpg.com.au>
+#
+# Copyright (C) 2005 - 2006 Matt Brown
+#
+# This 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 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.
+#
+# On Debian GNU/Linux systems, the text of the GPL license can be found in
+# /usr/share/common-licenses/GPL
+
+WLANCONFIG=/sbin/wlanconfig
+
+if [ ! -x "$WLANCONFIG" ]; then
+ exit 0
+fi
+
+if [ ! -n "$IF_MADWIFI_BASE" ]; then
+ exit 0
+fi
+
+# Destroy
+"$WLANCONFIG" "$IFACE" destroy
+
+exit
Added: etchnhalf/madwifi-tools/debian/pre-up
URL: http://svn.debian.org/wsvn/etchnhalf/madwifi-tools/debian/pre-up?rev=349&op=file
==============================================================================
--- etchnhalf/madwifi-tools/debian/pre-up (added)
+++ etchnhalf/madwifi-tools/debian/pre-up Thu Jul 24 07:13:35 2008
@@ -1,0 +1,79 @@
+#!/bin/sh
+#
+# Debian ifupdown hook script for madwifi-ng
+#
+# Author: Matt Brown <matt at mattb.net.nz>
+# Modified by: Kel Modderman <kelrin at tpg.com.au>
+#
+# Copyright (C) 2005 - 2006 Matt Brown
+#
+# This 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 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.
+#
+# On Debian GNU/Linux systems, the text of the GPL license can be found in
+# /usr/share/common-licenses/GPL
+
+
+WLANCONFIG=/sbin/wlanconfig
+
+if [ ! -x "$WLANCONFIG" ]; then
+ exit 0
+fi
+
+if [ ! -n "$IF_MADWIFI_BASE" ]; then
+ exit 0
+fi
+
+if [ "$VERBOSITY" = "1" ]; then
+ TO_NULL="/dev/stdout"
+else
+ TO_NULL="/dev/null"
+fi
+
+if [ -n "$IF_MADWIFI_MODE" ]; then
+ MODE="$IF_MADWIFI_MODE"
+elif [ -n "$IF_WIRELESS_MODE" ]; then
+ MODE="$IF_WIRELESS_MODE"
+else
+ exit 0
+fi
+
+if [ -d /proc/sys/net/$IFACE ]; then
+ $WLANCONFIG $IFACE destroy
+fi
+
+case "$MODE" in
+ Managed|managed|MANAGED)
+ MODE="sta"
+ ;;
+ Ad-Hoc|ad-hoc|AD-HOC)
+ MODE="adhoc"
+ ;;
+ Master|master|MASTER)
+ MODE="ap"
+ ;;
+ Monitor|monitor|MONITOR)
+ MODE="monitor"
+ ;;
+ sta|ap|wds|adhoc|ahdemo|monitor)
+ MODE="$MODE"
+ ;;
+ *)
+ MODE="sta"
+ ;;
+esac
+
+if [ -n "$IF_MADWIFI_OPTIONS" ]; then
+ $WLANCONFIG $IFACE create wlandev $IF_MADWIFI_BASE wlanmode $MODE "$IF_MADWIFI_OPTIONS" >$TO_NULL
+else
+ $WLANCONFIG $IFACE create wlandev $IF_MADWIFI_BASE wlanmode $MODE >$TO_NULL
+fi
+
+exit
Added: etchnhalf/madwifi-tools/debian/rules
URL: http://svn.debian.org/wsvn/etchnhalf/madwifi-tools/debian/rules?rev=349&op=file
==============================================================================
--- etchnhalf/madwifi-tools/debian/rules (added)
+++ etchnhalf/madwifi-tools/debian/rules Thu Jul 24 07:13:35 2008
@@ -1,0 +1,53 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/makefile.mk
+include /usr/share/cdbs/1/rules/dpatch.mk
+include /usr/share/cdbs/1/rules/utils.mk
+
+DEB_MAKE_INVOKE = $(MAKE) -C tools
+
+# DFSG tarball variables
+ORIGVER := $(shell dpkg-parsechangelog | sed -n 's/^Version.*:\(.*\)+dfsg-[0-9]*/\1/p')
+ORIGTAR := madwifi-$(ORIGVER).tar.gz
+ORIGURL := http://optusnet.dl.sourceforge.net/sourceforge/madwifi/$(ORIGTAR)
+ORIGDIR := madwifi-$(ORIGVER)
+DFSGDIR := madwifi-tools-$(ORIGVER)
+DFSGTAR := madwifi-tools_$(ORIGVER)+dfsg.orig.tar.gz
+
+install/madwifi-tools::
+ # may be required in early boot
+ install -m 0755 tools/wlanconfig debian/madwifi-tools/sbin/
+ # auxiliary tools
+ for t in 80211debug 80211stats athchans athctrl athdebug athkey athstats; do \
+ install -m 0755 tools/$$t debian/madwifi-tools/usr/sbin/; \
+ done
+ # ifupdown helper scripts
+ install -D -m 0755 debian/pre-up \
+ debian/madwifi-tools/etc/network/if-pre-up.d/madwifi
+ install -D -m 0755 debian/post-down \
+ debian/madwifi-tools/etc/network/if-post-down.d/madwifi
+ # modprobe.d blacklist
+ dh_installmodules -p madwifi-tools --name=madwifi
+
+get-orig-source:
+ @dh_testdir
+ @test -d ../tarballs || mkdir -p ../tarballs
+ @rm -rf ../tarballs/$(DFSGDIR) ../tarballs/$(ORIGDIR)
+
+ @wget -Nc -T10 -O ../tarballs/$(ORIGTAR) $(ORIGURL)
+
+ @test -f ../tarballs/$(ORIGTAR)
+ @tar xzf ../tarballs/$(ORIGTAR) -C ../tarballs
+ @test -d ../tarballs/$(ORIGDIR)
+
+ @mkdir -p ../tarballs/$(DFSGDIR)
+ @tar -C ../tarballs/$(ORIGDIR) -cf - \
+ -T debian/dfsg.files | \
+ tar -C ../tarballs/$(DFSGDIR) -xvf-
+
+ @tar czf ../tarballs/$(DFSGTAR) -C ../tarballs $(DFSGDIR)
+ @rm -rf ../tarballs/$(DFSGDIR) ../tarballs/$(ORIGDIR)
+ @echo ""
+ @echo ../tarballs/$(DFSGTAR)
+ @echo ""
Propchange: etchnhalf/madwifi-tools/debian/rules
------------------------------------------------------------------------------
svn:executable = *
More information about the Pkg-madwifi-maintainers
mailing list