# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit linux-mod DESCRIPTION="Intel (R) PRO/Wireless 3945ABG Network Connection" HOMEPAGE="http://intellinuxwireless.org/?p=iwlwifi" SRC_URI="http://intellinuxwireless.org/${PN}/downloads/${P}.tgz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="" DEPEND="" RDEPEND="net-wireless/iwlwifi-ucode" BUILD_TARGETS="modules" MODULE_NAMES="iwl3945(net/wireless:${S}/compatible:${S}/compatible)" KV_OBJ="ko" CONFIG_CHECK="MAC80211" ERROR_MAC80211="${P} requires support for the MAC80211 Networking Stack" BUILD_PARAMS="MAC80211_INC=${KV_DIR}/include/net/ KSRC=${KV_DIR} KSRC_OUTPUT=${KV_OUT_DIR}" pkg_setup() { if kernel_is lt 2 6 18; then die "${P} needs a kernel >=2.6.18" fi linux-mod_pkg_setup } src_unpack() { unpack "${A}" cd "${S}" # somehow the return value is 1, but it should be 0 if the script # reaches the end.. echo 'exit 0' >> scripts/generate_compatible }