Patchwork [v5] wireless-regdb: new package

login
register
mail settings
Submitter Dimitrios Siganos
Date April 9, 2013, 1:22 p.m.
Message ID <1365513739-19763-1-git-send-email-dimitris@siganos.org>
Download mbox | patch
Permalink /patch/235082/
State Accepted
Commit 3d9ce2f563b78ccc40af80f7d20b7a260a8ab3fd
Headers show

Comments

Dimitrios Siganos - April 9, 2013, 1:22 p.m.
Signed-off-by: Dimitrios Siganos <dimitris@siganos.org>
---
 package/Config.in                        |    1 +
 package/wireless-regdb/Config.in         |   10 ++++++++++
 package/wireless-regdb/wireless-regdb.mk |   18 ++++++++++++++++++
 3 files changed, 29 insertions(+)
 create mode 100644 package/wireless-regdb/Config.in
 create mode 100644 package/wireless-regdb/wireless-regdb.mk

 Placed linville.key.pub.pem to the default location /etc/wireless-regdb/pubkeys.
Gustavo Zacarias - April 9, 2013, 6:43 p.m.
On 04/09/2013 10:22 AM, Dimitrios Siganos wrote:
> Signed-off-by: Dimitrios Siganos <dimitris@siganos.org>

Acked-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Tested-by: Gustavo Zacarias <gustavo@zacarias.com.ar>

> +++ b/package/wireless-regdb/Config.in
> @@ -0,0 +1,10 @@
> +config BR2_PACKAGE_WIRELESS_REGDB
> +	bool "wireless-regdb"
> +	help
> +	  Wireless regulatory database.
> +
> +	  Wireless regulatory database for CRDA. The database lists the
> +	  allowed radio frequencies for each local jurisdiction.
> +
> +	  http://linuxwireless.org/en/developers/Regulatory
> +

Stray newline here but Peter can fix that.
Thanks for taking your time respining.
Regards.
Peter Korsgaard - April 21, 2013, 9:11 p.m.
>>>>> "Dimitrios" == Dimitrios Siganos <dimitris@siganos.org> writes:

 Dimitrios> Signed-off-by: Dimitrios Siganos <dimitris@siganos.org>

Committed, thanks.

Patch

diff --git a/package/Config.in b/package/Config.in
index 69d87f0..2a3268e 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -759,6 +759,7 @@  source "package/vtun/Config.in"
 if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
 source "package/wget/Config.in"
 endif
+source "package/wireless-regdb/Config.in"
 source "package/wireless_tools/Config.in"
 source "package/wireshark/Config.in"
 source "package/wpa_supplicant/Config.in"
diff --git a/package/wireless-regdb/Config.in b/package/wireless-regdb/Config.in
new file mode 100644
index 0000000..89a6147
--- /dev/null
+++ b/package/wireless-regdb/Config.in
@@ -0,0 +1,10 @@ 
+config BR2_PACKAGE_WIRELESS_REGDB
+	bool "wireless-regdb"
+	help
+	  Wireless regulatory database.
+
+	  Wireless regulatory database for CRDA. The database lists the
+	  allowed radio frequencies for each local jurisdiction.
+
+	  http://linuxwireless.org/en/developers/Regulatory
+
diff --git a/package/wireless-regdb/wireless-regdb.mk b/package/wireless-regdb/wireless-regdb.mk
new file mode 100644
index 0000000..b4e038c
--- /dev/null
+++ b/package/wireless-regdb/wireless-regdb.mk
@@ -0,0 +1,18 @@ 
+#############################################################
+#
+# wireless-regdb
+#
+#############################################################
+
+WIRELESS_REGDB_VERSION = 2013.01.11
+WIRELESS_REGDB_SOURCE = wireless-regdb-$(WIRELESS_REGDB_VERSION).tar.bz2
+WIRELESS_REGDB_SITE = http://kernel.org/pub/software/network/wireless-regdb
+WIRELESS_REGDB_LICENSE = ISC
+WIRELESS_REGDB_LICENSE_FILES = LICENSE
+
+define WIRELESS_REGDB_INSTALL_TARGET_CMDS
+    install -m 644 -D -T $(@D)/regulatory.bin $(TARGET_DIR)/usr/lib/crda/regulatory.bin
+    install -m 644 -D -T $(@D)/linville.key.pub.pem $(TARGET_DIR)/etc/wireless-regdb/pubkeys/linville.key.pub.pem
+endef
+
+$(eval $(generic-package))