Skip to contentSkip to conversation

python-m2crypto-native: Add recipe

PATCH In review Eric Benard 2 participants 5 messages May 4, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 python-m2crypto-native: Add recipe

- this package is needed to compile crda

---
 recipes/python/python-m2crypto-native_0.18.2.bb |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
 create mode 100644 recipes/python/python-m2crypto-native_0.18.2.bb
recipes/python/python-m2crypto-native_0.18.2.bb new file +12 -0
new file mode 100644
index 0000000..4a28464
@@ -0,0 +1,12 @@
+require python-m2crypto_${PV}.bb
+inherit native
+
+FILESPATH = "${FILE_DIRNAME}/python-m2crypto"
+DEPENDS = "python-native"
+
+do_stage() {
+	distutils_stage_all
+}
+
+SRC_URI[md5sum] = "445dce53fcfc7ec8f6fd31f54da8a067"
+SRC_URI[sha256sum] = "62ed44c8b2d392bdc757981ac37f05d808a0d917e4f9d95de2fbf3c2bdad41a7"
Signature · 1 line
1.6.3.3
#1 lore raw

PATCH 2/2 crda: add version 1.1.1

- http://wireless.kernel.org/en/developers/Regulatory/CRDA
- CRDA acts as the udev helper for communication between the kernel and userspace for regulatory compliance.

---
 recipes/crda/crda_1.1.1.bb |   29 +++++++++++++++++++++++++++++
 1 files changed, 29 insertions(+), 0 deletions(-)
 create mode 100644 recipes/crda/crda_1.1.1.bb
recipes/crda/crda_1.1.1.bb new file +29 -0
new file mode 100644
index 0000000..f1d43a9
@@ -0,0 +1,29 @@
+DESCRIPTION = "Wireless Central Regulatory Domain Agent"
+HOMEPAGE = "http://wireless.kernel.org/en/developers/Regulatory/CRDA"
+SECTION = "base"
+PRIORITY = "optional"
+LICENSE = "ISC"
+PR = "r0"
+
+DEPENDS = "libgcrypt libnl python-native python-m2crypto-native"
+RDEPENDS = "udev"
+
+SRC_URI = "http://wireless.kernel.org/download/crda/${P}.tar.bz2;name=crda \
+	http://wireless.kernel.org/download/wireless-regdb/regulatory.bins/2009.11.25-regulatory.bin;name=reg \
+	"
+
+do_install() {
+	oe_runmake DESTDIR=${D} install
+	install -d ${D}/usr/lib/crda/
+	install -m 0644 ${WORKDIR}/2009.11.25-regulatory.bin ${D}/usr/lib/crda/regulatory.bin
+}
+
+SRC_URI[crda.md5sum] = "5fc77af68b3e21736b8ef2f8b061c810"
+SRC_URI[crda.sha256sum] = "59b4760da44a8f803caeaaa7fb97e0c6bd3f35f40445b28258e7f14c2fbe13b5"
+SRC_URI[reg.md5sum] = "873b5c55a26c8ba7674e083f51cb10aa"
+SRC_URI[reg.sha256sum] = "3ac77fa4d8034e4f5bc484adc4b073c3636dea26803e5e695cc54c15b629154a"
+
+FILES_${PN} += "\
+	/lib/udev/rules.d/85-regulatory.rules \
+	/usr/lib/crda/regulatory.bin \
+	"
\ No newline at end of file
Signature · 1 line
1.6.3.3
#2 lore raw

PATCH 1/1 python-m2crypto: add native

- this package is needed to compile crda

---
 recipes/python/python-m2crypto_0.18.2.bb |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
recipes/python/python-m2crypto_0.18.2.bb +3 -0
index 7a2af1e..74a212d 100644
@@ -20,3 +20,6 @@ export STAGING_LIBDIR
 
 SRC_URI[md5sum] = "445dce53fcfc7ec8f6fd31f54da8a067"
 SRC_URI[sha256sum] = "62ed44c8b2d392bdc757981ac37f05d808a0d917e4f9d95de2fbf3c2bdad41a7"
+
+NATIVE_INSTALL_WORKS = "1"
+BBCLASSEXTEND = "native"
Signature · 1 line
1.6.3.3
#3 lore raw
In reply to Eric Benard
Quoted 3 lines · Eric Benard

- this package is needed to compile crda

Any reason we can't use BBCLASSEXTENDS?

Quoted 23 lines
---
 recipes/python/python-m2crypto-native_0.18.2.bb |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
 create mode 100644 recipes/python/python-m2crypto-native_0.18.2.bb
recipes/python/python-m2crypto-native_0.18.2.bb new file +12 -0
new file mode 100644
index 0000000..4a28464
@@ -0,0 +1,12 @@
+require python-m2crypto_${PV}.bb
+inherit native
+
+FILESPATH = "${FILE_DIRNAME}/python-m2crypto"
+DEPENDS = "python-native"
+
+do_stage() {
+	distutils_stage_all
+}
+
+SRC_URI[md5sum] = "445dce53fcfc7ec8f6fd31f54da8a067"
+SRC_URI[sha256sum] = "62ed44c8b2d392bdc757981ac37f05d808a0d917e4f9d95de2fbf3c2bdad41a7"
Signature · 2 lines
Tom Rini <[email protected]>
Mentor Graphics Corporation
#4 lore raw
Quoted 7 lines · Tom Rini
Quoted 3 lines · Eric Benard

- this package is needed to compile crda

Any reason we can't use BBCLASSEXTENDS?

no good reason found, actually testing and patch should follow.

Thanks
Eric