diff options
author | Mike Frysinger <vapier@gentoo.org> | 2014-02-12 21:01:37 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2014-02-12 21:01:37 +0000 |
commit | 0f504abc734ee39ae7c4c8b9cb09516f3dd73f4f (patch) | |
tree | fe17c194f4b7d71818de4f439bf14c2a74a459b1 /net-wireless | |
parent | Fix LICENSE, bug 452914. (diff) | |
download | gentoo-2-0f504abc734ee39ae7c4c8b9cb09516f3dd73f4f.tar.gz gentoo-2-0f504abc734ee39ae7c4c8b9cb09516f3dd73f4f.tar.bz2 gentoo-2-0f504abc734ee39ae7c4c8b9cb09516f3dd73f4f.zip |
Update to python-any-r1. Respect $EPREFIX. Fix path to regulatory.bin. Move binaries from /sbin to /usr/sbin #463808 by Michał Górny.
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key D2E96200)
Diffstat (limited to 'net-wireless')
-rw-r--r-- | net-wireless/crda/ChangeLog | 10 | ||||
-rw-r--r-- | net-wireless/crda/crda-1.1.3-r1.ebuild | 63 |
2 files changed, 71 insertions, 2 deletions
diff --git a/net-wireless/crda/ChangeLog b/net-wireless/crda/ChangeLog index b4ca9a4b7900..60c3f528244e 100644 --- a/net-wireless/crda/ChangeLog +++ b/net-wireless/crda/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-wireless/crda -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/crda/ChangeLog,v 1.56 2013/01/28 07:35:43 ssuominen Exp $ +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/crda/ChangeLog,v 1.57 2014/02/12 21:01:37 vapier Exp $ + +*crda-1.1.3-r1 (12 Feb 2014) + + 12 Feb 2014; Mike Frysinger <vapier@gentoo.org> +crda-1.1.3-r1.ebuild: + Update to python-any-r1. Respect $EPREFIX. Fix path to regulatory.bin. Move + binaries from /sbin to /usr/sbin #463808 by Michał Górny. 28 Jan 2013; Samuli Suominen <ssuominen@gentoo.org> crda-1.1.3.ebuild: Migrate to udev.eclass for correct fallback rules.d directory and remove diff --git a/net-wireless/crda/crda-1.1.3-r1.ebuild b/net-wireless/crda/crda-1.1.3-r1.ebuild new file mode 100644 index 000000000000..00790046d1e6 --- /dev/null +++ b/net-wireless/crda/crda-1.1.3-r1.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/crda/crda-1.1.3-r1.ebuild,v 1.1 2014/02/12 21:01:37 vapier Exp $ + +EAPI=4 + +PYTHON_COMPAT=( python{2_5,2_6,2_7} ) +inherit eutils toolchain-funcs python-any-r1 udev + +DESCRIPTION="Central Regulatory Domain Agent for wireless networks" +HOMEPAGE="http://wireless.kernel.org/en/developers/Regulatory" +SRC_URI="http://linuxwireless.org/download/crda/${P}.tar.bz2" + +LICENSE="ISC" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" +IUSE="" + +RDEPEND="dev-libs/openssl:0 + dev-libs/libnl:3 + net-wireless/wireless-regdb" +DEPEND="${RDEPEND} + dev-python/m2crypto + =dev-lang/python-2* + virtual/pkgconfig" + +src_prepare() { + epatch "${FILESDIR}"/${P}-missing-include.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="$(udev_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 +} |