[pkg-wpa-devel] r1367 - in /crda/trunk/debian: ./ README.source changelog compat control copyright crda.default install patches/ patches/do_not_verify_regulatory_bin.patch patches/regulatory_rules_setregdomain.patch patches/series rules setregdomain watch

kelmo-guest at users.alioth.debian.org kelmo-guest at users.alioth.debian.org
Sun May 10 17:14:32 UTC 2009


Author: kelmo-guest
Date: Sun May 10 17:14:32 2009
New Revision: 1367

URL: http://svn.debian.org/wsvn/pkg-wpa/?sc=1&rev=1367
Log:
[svn-inject] Applying Debian modifications to trunk

Added:
    crda/trunk/debian/
    crda/trunk/debian/README.source
    crda/trunk/debian/changelog
    crda/trunk/debian/compat
    crda/trunk/debian/control
    crda/trunk/debian/copyright
    crda/trunk/debian/crda.default
    crda/trunk/debian/install
    crda/trunk/debian/patches/
    crda/trunk/debian/patches/do_not_verify_regulatory_bin.patch
    crda/trunk/debian/patches/regulatory_rules_setregdomain.patch
    crda/trunk/debian/patches/series
    crda/trunk/debian/rules   (with props)
    crda/trunk/debian/setregdomain
    crda/trunk/debian/watch

Added: crda/trunk/debian/README.source
URL: http://svn.debian.org/wsvn/pkg-wpa/crda/trunk/debian/README.source?rev=1367&op=file
==============================================================================
--- crda/trunk/debian/README.source (added)
+++ crda/trunk/debian/README.source Sun May 10 17:14:32 2009
@@ -1,0 +1,57 @@
+This package uses quilt to manage all modifications to the upstream
+source.  Changes are stored in the source package as diffs in
+debian/patches and applied during the build.
+
+To configure quilt to use debian/patches instead of patches, you want
+either to export QUILT_PATCHES=debian/patches in your environment
+or use this snippet in your ~/.quiltrc:
+
+    for where in ./ ../ ../../ ../../../ ../../../../ ../../../../../; do
+        if [ -e ${where}debian/rules -a -d ${where}debian/patches ]; then
+                export QUILT_PATCHES=debian/patches
+        fi
+    done
+
+To get the fully patched source after unpacking the source package, cd to
+the root level of the source package and run:
+
+    quilt push -a
+
+The last patch listed in debian/patches/series will become the current
+patch.
+
+To add a new set of changes, first run quilt push -a, and then run:
+
+    quilt new <patch>
+
+where <patch> is a descriptive name for the patch, used as the filename in
+debian/patches.  Then, for every file that will be modified by this patch,
+run:
+
+    quilt add <file>
+
+before editing those files.  You must tell quilt with quilt add what files
+will be part of the patch before making changes or quilt will not work
+properly.  After editing the files, run:
+
+    quilt refresh
+
+to save the results as a patch.
+
+Alternately, if you already have an external patch and you just want to
+add it to the build system, run quilt push -a and then:
+
+    quilt import -P <patch> /path/to/patch
+    quilt push -a
+
+(add -p 0 to quilt import if needed). <patch> as above is the filename to
+use in debian/patches.  The last quilt push -a will apply the patch to
+make sure it works properly.
+
+To remove an existing patch from the list of patches that will be applied,
+run:
+
+    quilt delete <patch>
+
+You may need to run quilt pop -a to unapply patches first before running
+this command.

Added: crda/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-wpa/crda/trunk/debian/changelog?rev=1367&op=file
==============================================================================
--- crda/trunk/debian/changelog (added)
+++ crda/trunk/debian/changelog Sun May 10 17:14:32 2009
@@ -1,0 +1,5 @@
+crda (1.0.2-1) unstable; urgency=low
+
+  * Initial release
+
+ -- Kel Modderman <kel at otaku42.de>  Sun, 10 May 2009 22:13:26 +1000

Added: crda/trunk/debian/compat
URL: http://svn.debian.org/wsvn/pkg-wpa/crda/trunk/debian/compat?rev=1367&op=file
==============================================================================
--- crda/trunk/debian/compat (added)
+++ crda/trunk/debian/compat Sun May 10 17:14:32 2009
@@ -1,0 +1,1 @@
+7

Added: crda/trunk/debian/control
URL: http://svn.debian.org/wsvn/pkg-wpa/crda/trunk/debian/control?rev=1367&op=file
==============================================================================
--- crda/trunk/debian/control (added)
+++ crda/trunk/debian/control Sun May 10 17:14:32 2009
@@ -1,0 +1,18 @@
+Source: crda
+Section: admin
+Priority: optional
+Maintainer: Kel Modderman <kel at otaku42.de>
+Build-Depends: debhelper (>= 7.0.50), quilt(>= 0.46-7), libnl-dev, pkg-config
+Standards-Version: 3.8.1
+Homepage: http://wireless.kernel.org/en/developers/Regulatory/
+
+Package: crda
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, wireless-regdb, iw
+Description: wireless Central Regulatory Domain Agent
+ This package provides a Central Regulatory Domain Agent (CRDA) to be used by
+ the Linux kernel cf80211 wireless subsystem to query and apply the regulatory
+ domain settings wireless devices may operate within for a given location.
+ .
+ CRDA queries operational frequency regulations stored within the regulatory
+ database provided by the wireless-regd package.

Added: crda/trunk/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-wpa/crda/trunk/debian/copyright?rev=1367&op=file
==============================================================================
--- crda/trunk/debian/copyright (added)
+++ crda/trunk/debian/copyright Sun May 10 17:14:32 2009
@@ -1,0 +1,36 @@
+Upstream-Name: crda
+Upstream-Maintainer: Luis R. Rodriguez <mcgrof at gmail.com>
+Upstream-Source: git://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/crda.git
+
+Files: *
+Copyright: Copyright (c) 2008, Luis R. Rodriguez <mcgrof at gmail.com>
+Copyright: Copyright (c) 2008, Johannes Berg <johannes at sipsolutions.net>
+Copyright: Copyright (c) 2008, Michael Green <Michael.Green at Atheros.com>
+License: ISC
+
+Files: nl80211.h
+Copyright: Copyright 2006, 2007, 2008 Johannes Berg <johannes at sipsolutions.net>
+Copyright: Copyright 2008 Michael Wu <flamingice at sourmilk.net>
+Copyright: Copyright 2008 Luis Carlos Cobo <luisca at cozybit.com>
+Copyright: Copyright 2008 Michael Buesch <mb at bu3sch.de>
+Copyright: Copyright 2008 Luis R. Rodriguez <lrodriguez at atheros.com>
+Copyright: Copyright 2008 Jouni Malinen <jouni.malinen at atheros.com>
+Copyright: Copyright 2008 Colin McCabe <colin at cozybit.com>
+License: ISC
+
+Files: debian/*
+Copyright: Copyright (c) 2009, Kel Modderman <kel at otaku42.de>
+License: ISC
+
+License: ISC
+ Permission to use, copy, modify, and/or distribute this software for any
+ purpose with or without fee is hereby granted, provided that the above
+ copyright notice and this permission notice appear in all copies.
+
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

Added: crda/trunk/debian/crda.default
URL: http://svn.debian.org/wsvn/pkg-wpa/crda/trunk/debian/crda.default?rev=1367&op=file
==============================================================================
--- crda/trunk/debian/crda.default (added)
+++ crda/trunk/debian/crda.default Sun May 10 17:14:32 2009
@@ -1,0 +1,16 @@
+# Set REGDOMAIN to a ISO/IEC 3166-1 alpha2 country code so that iw(8) may set
+# the initial regulatory domain setting for IEEE 802.11 devices which operate
+# on this system.
+#
+# Governments assert the right to regulate usage of radio spectrum within
+# their respective territories so make sure you select a ISO/IEC 3166-1 alpha2
+# country code suitable for your location or you may infringe on local
+# legislature. See `/usr/share/zoneinfo/zone.tab' for a table of timezone
+# descriptions containing ISO/IEC 3166-1 alpha2 country codes.
+#
+# If left blank, a country code will be selected based on the timezone
+# configuration of the system by finding a country code in
+# `/usr/share/zoneinfo/zone.tab' which matches up with the timezone name
+# in `/etc/timezone', if configured.
+
+REGDOMAIN=

Added: crda/trunk/debian/install
URL: http://svn.debian.org/wsvn/pkg-wpa/crda/trunk/debian/install?rev=1367&op=file
==============================================================================
--- crda/trunk/debian/install (added)
+++ crda/trunk/debian/install Sun May 10 17:14:32 2009
@@ -1,0 +1,1 @@
+debian/setregdomain lib/crda

Added: crda/trunk/debian/patches/do_not_verify_regulatory_bin.patch
URL: http://svn.debian.org/wsvn/pkg-wpa/crda/trunk/debian/patches/do_not_verify_regulatory_bin.patch?rev=1367&op=file
==============================================================================
--- crda/trunk/debian/patches/do_not_verify_regulatory_bin.patch (added)
+++ crda/trunk/debian/patches/do_not_verify_regulatory_bin.patch Sun May 10 17:14:32 2009
@@ -1,0 +1,32 @@
+Do not verify the sigature of regulatory.bin nor build crda and regdbdump
+binaries with support for verifying cryptographic signatures.
+
+This avoids an extra build dependency (wireless-regdb) for regulatory database
+verficiation and is neccessary to support our wireless-regdb package which
+does not sign the regulatory.bin file. Be careful to manually verify that
+regdbdump can parse the binary reulatory database file before each upload!
+
+--- a/Makefile
++++ b/Makefile
+@@ -24,7 +24,7 @@ PUBKEY_DIR?=pubkeys
+ 
+ CFLAGS += -Wall -g
+ 
+-all: $(REG_BIN) crda intersect verify
++all: crda intersect regdbdump
+ 
+ ifeq ($(USE_OPENSSL),1)
+ CFLAGS += -DUSE_OPENSSL `pkg-config --cflags openssl`
+@@ -32,12 +32,6 @@ LDLIBS += `pkg-config --libs openssl`
+ 
+ reglib.o: keys-ssl.c
+ 
+-else
+-CFLAGS += -DUSE_GCRYPT
+-LDLIBS += -lgcrypt
+-
+-reglib.o: keys-gcrypt.c
+-
+ endif
+ MKDIR ?= mkdir -p
+ INSTALL ?= install

Added: crda/trunk/debian/patches/regulatory_rules_setregdomain.patch
URL: http://svn.debian.org/wsvn/pkg-wpa/crda/trunk/debian/patches/regulatory_rules_setregdomain.patch?rev=1367&op=file
==============================================================================
--- crda/trunk/debian/patches/regulatory_rules_setregdomain.patch (added)
+++ crda/trunk/debian/patches/regulatory_rules_setregdomain.patch Sun May 10 17:14:32 2009
@@ -1,0 +1,12 @@
+Execute our setregdomain script when an ieee80211 device is added to the
+system to set a suitable default regulatory domain with iw.
+
+--- a/udev/regulatory.rules
++++ b/udev/regulatory.rules
+@@ -1,5 +1,5 @@
+ # Runs CRDA for kernel wireless regulatory events.
+ # For more information see:
+ # http://wireless.kernel.org/en/developers/Regulatory/CRDA
+-
++SUBSYSTEM=="ieee80211", ACTION=="add", RUN+="/lib/crda/setregdomain"
+ KERNEL=="regulatory*", ACTION=="change", SUBSYSTEM=="platform", RUN+="$(SBINDIR)/crda"

Added: crda/trunk/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-wpa/crda/trunk/debian/patches/series?rev=1367&op=file
==============================================================================
--- crda/trunk/debian/patches/series (added)
+++ crda/trunk/debian/patches/series Sun May 10 17:14:32 2009
@@ -1,0 +1,2 @@
+do_not_verify_regulatory_bin.patch
+regulatory_rules_setregdomain.patch

Added: crda/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-wpa/crda/trunk/debian/rules?rev=1367&op=file
==============================================================================
--- crda/trunk/debian/rules (added)
+++ crda/trunk/debian/rules Sun May 10 17:14:32 2009
@@ -1,0 +1,7 @@
+#!/usr/bin/make -f
+%:
+	dh --with quilt $@
+
+override_dh_fixperms:
+	dh_fixperms
+	chmod 755 debian/crda/lib/crda/setregdomain

Propchange: crda/trunk/debian/rules
------------------------------------------------------------------------------
    svn:executable = *

Added: crda/trunk/debian/setregdomain
URL: http://svn.debian.org/wsvn/pkg-wpa/crda/trunk/debian/setregdomain?rev=1367&op=file
==============================================================================
--- crda/trunk/debian/setregdomain (added)
+++ crda/trunk/debian/setregdomain Sun May 10 17:14:32 2009
@@ -1,0 +1,58 @@
+#!/bin/sh
+
+REGDOM_CONFIG=/etc/default/crda
+TZDATA_CONFIG=/etc/timezone
+TZDATA_MATRIX=/usr/share/zoneinfo/zone.tab
+
+REGDOMAIN=
+TIME_ZONE=
+ZONE_CODE=
+
+setreg_err()
+{
+	echo "setregdomain: Unable to set initial regulatory domain!"
+	echo "setregdomain: $@."
+	echo "setregdomain: Read $REGDOM_CONFIG for more information"
+	exit 1
+}
+
+setreg_ftw()
+{
+	local DOMAIN
+	DOMAIN="$1"
+	shift
+	
+	iw reg set "$DOMAIN"
+	IWRETV=$?
+
+	if [ "$IWRETV" -ne 0 ]; then
+		echo "setregdomain: Failed to set regulatory domain to:" \
+		     "$DOMAIN ($@)."
+	else
+		echo "setregdomain: Regulatory domain set to: $DOMAIN ($@)."
+	fi
+
+	exit "$IWRETV"
+}
+
+if [ -s "$REGDOM_CONFIG" ]; then
+	. $REGDOM_CONFIG
+	if [ -n "$REGDOMAIN" ]; then
+		setreg_ftw "$REGDOMAIN" "$REGDOM_CONFIG"
+	fi
+fi
+
+if [ -s "$TZDATA_CONFIG" ] && [ -s "$TZDATA_MATRIX" ]; then
+	TIME_ZONE="$(cat $TZDATA_CONFIG)"
+	_TIMEZONE="$(echo $TIME_ZONE | sed -e 's# #_#g' -e 's#/#\\\\/#g')"
+	ZONE_CODE="$(sed -r -n '/'$_TIMEZONE'/s/^([A-Z]{2})\s+.*/\1/p' \
+			$TZDATA_MATRIX)"
+	if [ -n "$ZONE_CODE" ]; then
+		setreg_ftw "$ZONE_CODE" "$TZDATA_CONFIG - $TIME_ZONE"
+	else
+		setreg_err "Domain could not be determined from timezone" \
+			   "information in $TZDATA_CONFIG."
+	fi
+fi
+
+setreg_err "Failed to guess regulatory domain settings"

Added: crda/trunk/debian/watch
URL: http://svn.debian.org/wsvn/pkg-wpa/crda/trunk/debian/watch?rev=1367&op=file
==============================================================================
--- crda/trunk/debian/watch (added)
+++ crda/trunk/debian/watch Sun May 10 17:14:32 2009
@@ -1,0 +1,2 @@
+version=3
+http://wireless.kernel.org/download/crda/crda-(.*)\.tar\.bz2 debian uupdate




More information about the Pkg-wpa-devel mailing list