summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-wireless')
-rw-r--r--net-wireless/crda/Manifest4
-rw-r--r--net-wireless/crda/crda-1.1.3-r2.ebuild68
-rw-r--r--net-wireless/crda/files/crda-1.1.3-add-jens-pub.patch31
-rw-r--r--net-wireless/crda/files/crda-1.1.3-missing-include.patch11
4 files changed, 114 insertions, 0 deletions
diff --git a/net-wireless/crda/Manifest b/net-wireless/crda/Manifest
new file mode 100644
index 0000000..e45d487
--- /dev/null
+++ b/net-wireless/crda/Manifest
@@ -0,0 +1,4 @@
+AUX crda-1.1.3-add-jens-pub.patch 1967 SHA256 2de68a511838b01713cd11c21691fb30b2986f7091b2a7d6db9dca248b0ac2c3 SHA512 33a8385d0fc2b5caaac85845064c7585139cc25ff35a9cb4833d9696a225b5c6d654682542cd592ec3b976d31a529a89e9906b25a7b48d03a22c2841534913bf WHIRLPOOL 5697f50889ac92fff9899b37812c2cc6638b8502cec2a696b8682c86204413c76ffe55287c1bb7cc4f499c2b67c6b21398dc3daa00dd8e31adfbf412806f2392
+AUX crda-1.1.3-missing-include.patch 231 SHA256 82fa9006d037b42df124d334a48bf06ec75d3b510eb7c464033798c05daede9c SHA512 d24f11a36e798e1da7951efbcd3925d7728a2519c75ff289bfaadc92090f17fb5b9b21010ad960fadfffe6c949b63eddc2b8282508fd5947486f31495cca2afc WHIRLPOOL 73be5658dec27b0fb079aafde7087cbcbaeb5bdaf66d29ea2d4a4cd7f689d1305a8ff95292ab3807271882b76fc3aaee4078df110cc1762d470252816d17d6dd
+DIST crda-1.1.3.tar.bz2 38697 SHA256 aa8a7fe92f0765986c421a5b6768a185375ac210393df0605ee132f6754825f0 SHA512 4ec37d3d51f5988af79c2eaadc1bce344f20d4d9833533838d308533ee02cb12d5ed193391679ae1231c8afe61b21defdb368614a6238f99fdc5824f6819cfed WHIRLPOOL bbcb31277b664243f9e494c494152cf0ebcb187360ba48aa07c8e96c83dd91098bc49f1edf0b196a9bf4071565ac389b2907fcc73e348780aa890e066895c282
+EBUILD crda-1.1.3-r2.ebuild 1666 SHA256 53f32a2fb2ded420f5066cbb3d6af8b2d7630b094df9c155e5818381e05bccee SHA512 bf89f67413ef834e569113e0a92662c1a17fd8742fb81a65b1fda63d39d7f25b9205eed41b31db76ca3390198608f5cde59f157e57f81ac584d3c2f12d0bd22b WHIRLPOOL e56a5cffe13b38989fdfe692c12659c4a2fae1ba8f6fb22ff80e251009163b7fa91f653bd604e22ca35d20db380c42ace78f0b6ed581ffd8b66b1b28719a0540
diff --git a/net-wireless/crda/crda-1.1.3-r2.ebuild b/net-wireless/crda/crda-1.1.3-r2.ebuild
new file mode 100644
index 0000000..7dd9545
--- /dev/null
+++ b/net-wireless/crda/crda-1.1.3-r2.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+inherit eutils toolchain-funcs python-any-r1 udev
+
+DESCRIPTION="Central Regulatory Domain Agent for wireless networks"
+HOMEPAGE="https://wireless.kernel.org/en/developers/Regulatory"
+SRC_URI="http://linuxwireless.org/download/crda/${P}.tar.bz2"
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~arm64 ia64 ~mips ppc ppc64 sparc x86"
+IUSE=""
+
+RDEPEND="dev-libs/openssl:0
+ dev-libs/libnl:3
+ net-wireless/wireless-regdb"
+DEPEND="${RDEPEND}
+ ${PYTHON_DEPS}
+ $(python_gen_any_dep 'dev-python/m2crypto[${PYTHON_USEDEP}]')
+ virtual/pkgconfig"
+
+python_check_deps() {
+ has_version --host-root "dev-python/m2crypto[${PYTHON_USEDEP}]"
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-missing-include.patch
+ epatch "${FILESDIR}"/${P}-add-jens-pub.patch
+ sed -i \
+ -e "s:\<pkg-config\>:$(tc-getPKG_CONFIG):" \
+ Makefile || die
+}
+
+_emake() {
+ # The source hardcodes /usr/lib/crda/ paths (ignoring all make vars
+ # that look like it should change it). We want to use /usr/lib/
+ # anyways as this file is not ABI specific and we want to share it
+ # among all ABIs rather than pointlessly duplicate it.
+ #
+ # The trailing slash on SBINDIR is required by the source.
+ emake \
+ PREFIX="${EPREFIX}/usr" \
+ SBINDIR='$(PREFIX)/sbin/' \
+ UDEV_RULE_DIR="$(get_udevdir)/rules.d" \
+ REG_BIN=/usr/lib/crda/regulatory.bin \
+ USE_OPENSSL=1 \
+ CC="$(tc-getCC)" \
+ V=1 \
+ "$@"
+}
+
+src_compile() {
+ _emake all_noverify
+}
+
+src_test() {
+ _emake verify
+}
+
+src_install() {
+ _emake DESTDIR="${D}" install
+ keepdir /etc/wireless-regdb/pubkeys
+}
diff --git a/net-wireless/crda/files/crda-1.1.3-add-jens-pub.patch b/net-wireless/crda/files/crda-1.1.3-add-jens-pub.patch
new file mode 100644
index 0000000..09ea17f
--- /dev/null
+++ b/net-wireless/crda/files/crda-1.1.3-add-jens-pub.patch
@@ -0,0 +1,31 @@
+diff -Nru crda-1.1.3.orig/pubkeys/jens.key.pub.pem crda-1.1.3/pubkeys/jens.key.pub.pem
+--- crda-1.1.3.orig/pubkeys/jens.key.pub.pem 1970-01-01 01:00:00.000000000 +0100
++++ crda-1.1.3/pubkeys/jens.key.pub.pem 2016-04-09 23:30:08.750728633 +0200
+@@ -0,0 +1,27 @@
++-----BEGIN RSA PRIVATE KEY-----
++MIIEpAIBAAKCAQEAthNHSlHh3U+TSql7rXvWXU+91H/daG+M46jYHKeUfHi7V3Be
++6EVCIohRC2RcUu+qf0eMV2XjbT/6/Rtl1VFrqT1H6enVYtsYvKpOkMb79rgnlNWQ
++3M5zek9FJCI3LtuMOqdEiq4UsCmvoKNSWvbDcSlSOfGC1xF1Byut8Och71+c5eof
++KbdxBJLysAw0OlCigkAJzSKmE3m+EKMXm8viWzEQqHxz8AiCZQIorqRkGJrx8v+P
++UIDXFFakaxybWLtwSOGrXmzaCp8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qy0zAHjjXeaVOYZlmEN6mErD+Of4CI6PMeQuiNy/5NbqPqIYY+2zl4qRmyZm
++649PpQKBgQDIP5xo4k7xEkgD/pkbV6pfotLBfn556+moKzqpepnGBJff5GvA/7rb
++h4A4gs/je8RmaTBPF+1OKqe3t5d0s5bL3E6TYSDf7iJVcWVMseFyp2seg3JqkvHU
++kfTAYb4o8YYpCYZ6CACyx5ZaXQnk3SGpwgiu9s7Wj67YdguBp1Fajg==
++-----END RSA PRIVATE KEY-----
diff --git a/net-wireless/crda/files/crda-1.1.3-missing-include.patch b/net-wireless/crda/files/crda-1.1.3-missing-include.patch
new file mode 100644
index 0000000..a472e23
--- /dev/null
+++ b/net-wireless/crda/files/crda-1.1.3-missing-include.patch
@@ -0,0 +1,11 @@
+diff --git a/reglib.c b/reglib.c
+index bc81974..1fafd37 100644
+--- a/reglib.c
++++ b/reglib.c
+@@ -9,6 +9,7 @@
+ #include <fcntl.h>
+ #include <stdbool.h>
+ #include <unistd.h>
++#include <string.h>
+
+ #include <arpa/inet.h> /* ntohl */