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.2-r4.ebuild

59 lines
1.4 KiB

# 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.2-r4.ebuild,v 1.10 2014/08/10 20:34:52 slyfox Exp $
EAPI=4
inherit eutils toolchain-funcs python
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
>=virtual/udev-171"
DEPEND="${RDEPEND}
dev-python/m2crypto
=dev-lang/python-2*
virtual/pkgconfig"
src_prepare() {
epatch "${FILESDIR}"/libnl31-support.diff
python_convert_shebangs 2 utils/key2pub.py
sed -i \
-e "s:\<pkg-config\>:$(tc-getPKG_CONFIG):" \
Makefile || die
}
src_compile() {
emake \
UDEV_RULE_DIR="$($(tc-getPKG_CONFIG) --variable=udevdir udev)/rules.d" \
REG_BIN=/usr/$(get_libdir)/crda/regulatory.bin \
USE_OPENSSL=1 \
CC="$(tc-getCC)" \
all_noverify V=1
}
src_test() {
emake USE_OPENSSL=1 CC="$(tc-getCC)" verify
}
src_install() {
emake \
UDEV_RULE_DIR="$($(tc-getPKG_CONFIG) --variable=udevdir udev)/rules.d" \
REG_BIN=/usr/$(get_libdir)/crda/regulatory.bin \
USE_OPENSSL=1 \
DESTDIR="${D}" \
install
keepdir /etc/wireless-regdb/pubkeys
}