# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EGIT_REPO_URI="http://git.sipsolutions.net/iw.git" inherit git toolchain-funcs linux-info DESCRIPTION="nl80211 based CLI configuration utility for wireless devices" HOMEPAGE="http://git.sipsolutions.net/?p=iw.git" SRC_URI="" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64" IUSE="" # technically 1.0_pre8, but it's not in the tree nor did I test it RDEPEND=">=dev-libs/libnl-1.1" DEPEND="${RDEPEND}" CONFIG_CHECK="NL80211" ERROR_NL80211="NL80211 must be enabled in your kernel but isn't." src_unpack() { get_version git_src_unpack cd "${S}" cp defconfig .config || die # Use the right kernel location sed -i \ -e "s:\(CONFIG_KERNEL_LOC.*=\).*:\1 ${KERNEL_DIR}:g" \ .config || die } src_compile() { emake \ || die "emake failed" # CC=$(tc-getCC) \ # CFLAGS="${CFLAGS}" \ # LDFLAGS="${LDFLAGS}" \ } src_install() { dobin iw || die "emake install failed" }