You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-wireless/crda/crda-1.1.3-r1.ebuild

68 lines
1.7 KiB

# Copyright 1999-2015 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.14 2015/04/14 13:15:00 ago Exp $
EAPI=5
PYTHON_COMPAT=( python2_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 ~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
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
}