diff options
Diffstat (limited to 'net-wireless/iwlwifi/iwlwifi-1.0.0_p1.ebuild')
-rw-r--r-- | net-wireless/iwlwifi/iwlwifi-1.0.0_p1.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/net-wireless/iwlwifi/iwlwifi-1.0.0_p1.ebuild b/net-wireless/iwlwifi/iwlwifi-1.0.0_p1.ebuild new file mode 100644 index 000000000000..440ebe4b4b43 --- /dev/null +++ b/net-wireless/iwlwifi/iwlwifi-1.0.0_p1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/iwlwifi/iwlwifi-1.0.0_p1.ebuild,v 1.1 2007/08/14 02:54:30 compnerd Exp $ + +inherit eutils linux-mod + +DESCRIPTION="Intel (R) PRO/Wireless 3945ABG Network Drivers" +HOMEPAGE="http://intellinuxwireless.org/?p=iwlwifi" +SRC_URI="http://intellinuxwireless.org/${PN}/downloads/${P//_p/-}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="ipw3945 ipw4965" + +DEPEND=">=virtual/linux-sources-2.6.22" +RDEPEND="ipw3945? ( net-wireless/iwl3945-ucode ) + ipw4965? ( net-wireless/iwl4965-ucode ) + !ipw3945? ( !ipw4965? ( net-wireless/iwl3945-ucode net-wireless/iwl4965-ucode ) )" + +S="${WORKDIR}/${P//_p/-}" + +pkg_setup() { + if kernel_is lt 2 6 22 ; then + eerror "iwlwifi requires a kernel >=2.6.22." + eerror "Please set your /usr/src/linux symlink accordingly." + die "invalid /usr/src/linux symlink" + else + CONFIG_CHECK="MAC80211" + fi + + BUILD_TARGETS="all" + BUILD_PARAMS="KSRC=${KV_DIR} M=${S}" + + linux-mod_pkg_setup + + if use ipw3945 ; then + MODULE_NAMES="iwl3945(net/wireless:${S}/compatible)" + + if ! use ipw4965 ; then + BUILD_PARAMS="${BUILD_PARAMS} CONFIG_IWL4965=n" + fi + + fi + + if use ipw4965 ; then + MODULE_NAMES="${MODULE_NAMES} iwl4965(net/wireless:${S}/compatible)" + + if ! use ipw3945 ; then + BUILD_PARAMS="${BUILD_PARAMS} CONFIG_IWL3945=n" + fi + fi + + if ! use ipw3945 && ! use ipw4965 ; then + einfo "Wireless card not selected, building all modules" + + MODULE_NAMES="iwl3945(net/wireless:${S}/compatible) iwl4965(net/wireless:${S}/compatible)" + BUILD_PARAMS="${BUILD_PARAMS} CONFIG_IWL3945=m CONFIG_IWL4965=m" + fi +} |