diff options
Diffstat (limited to 'net-wireless/ipw2200/ipw2200-1.0.0.ebuild')
-rw-r--r-- | net-wireless/ipw2200/ipw2200-1.0.0.ebuild | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/net-wireless/ipw2200/ipw2200-1.0.0.ebuild b/net-wireless/ipw2200/ipw2200-1.0.0.ebuild new file mode 100644 index 000000000000..389c5264433f --- /dev/null +++ b/net-wireless/ipw2200/ipw2200-1.0.0.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/ipw2200/ipw2200-1.0.0.ebuild,v 1.1 2005/02/01 16:32:27 jbms Exp $ + +inherit linux-mod eutils + +FW_VERSION="2.2" + +DESCRIPTION="Driver for the Intel PRO/Wireless 2200BG miniPCI adapter" + +HOMEPAGE="http://ipw2200.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" + +IUSE="debug" +RDEPEND="=net-wireless/ipw2200-firmware-${FW_VERSION} + >=net-wireless/wireless-tools-27_pre23 + !net-wireless/ipw2100" + +BUILD_PARAMS="KSRC=${KV_DIR}" +BUILD_TARGETS="all" + +MODULE_NAMES="ipw2200(net:) + ieee80211(net:) + ieee80211_crypt(net:) + ieee80211_crypt_wep(net:) + ieee80211_crypt_ccmp(net:) + ieee80211_crypt_tkip(net:)" +MODULESD_IPW2100_DOCS="README.${PN}" + +CONFIG_CHECK="NET_RADIO CRYPTO_ARC4 CRYPTO_MICHAEL_MIC FW_LOADER CRC32" +NET_RADIO_ERROR="${P} requires support for Wireless LAN drivers (non-hamradio) & Wireless Extensions (CONFIG_NET_RADIO)." +CRYPTO_ARC4_ERROR="${P} requires support for ARC4 cipher algorithm (CONFIG_CRYPTO_ARC4)." +CRYPTO_MICHAEL_MIC_ERROR="${P} requires support for Michael MIC keyed digest algorithm (CONFIG_CRYPTO_MICHAEL_MIC)." +FW_LOADER_ERROR="${P} requires Hotplug firmware loading support (CONFIG_FW_LOADER)." +CRC32_ERROR="${P} requires support for CRC32 functions (CONFIG_CRC32)." + +pkg_setup() { + if linux_chkconfig_present CRYPTO_AES_586 && linux_chkconfig_present CRYPTO_AES; then + eerror "${P} requires support for AES cipher algorithms (i586) (CONFIG_CRYPTO_AES_586)." + eerror "This option is called CONFIG_CRYPTO_AES in kernels prior to 2.6.8." + die "CONFIG_CRYPTO_AES_586 support not detected" + fi + + linux-mod_pkg_setup +} + +src_unpack() { + unpack ${A} + + + einfo "Patching Makefile to enable WPA" + sed -i "s:^# CONFIG_IEEE80211_WPA=:CONFIG_IEEE80211_WPA=:" \ + ${S}/Makefile + + if ! use debug > /dev/null; then + einfo "Patching Makefile to disable debugging" + sed -i -e 's/CONFIG_IPW_DEBUG=y/CONFIG_IPW_DEBUG=n/' "${S}/Makefile" + sed -i -e 's/CONFIG_IEEE80211_DEBUG=y/CONFIG_IEEE80211_DEBUG=n/' "${S}/Makefile" + fi + + convert_to_m ${S}/Makefile +} + +src_install() { + linux-mod_src_install + + dodoc ISSUES CHANGES +} |