diff options
Diffstat (limited to 'net-wireless/ipw2100/ipw2100-1.0.5.ebuild')
-rw-r--r-- | net-wireless/ipw2100/ipw2100-1.0.5.ebuild | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/net-wireless/ipw2100/ipw2100-1.0.5.ebuild b/net-wireless/ipw2100/ipw2100-1.0.5.ebuild index b0636af863c8..0ba3d9680a4f 100644 --- a/net-wireless/ipw2100/ipw2100-1.0.5.ebuild +++ b/net-wireless/ipw2100/ipw2100-1.0.5.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/ipw2100/ipw2100-1.0.5.ebuild,v 1.1 2005/02/08 23:13:19 brix Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-wireless/ipw2100/ipw2100-1.0.5.ebuild,v 1.1.1.1 2005/11/30 09:45:31 chriswhite Exp $ -inherit linux-mod eutils +inherit eutils linux-mod FW_VERSION="1.3" @@ -13,14 +13,15 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tgz" LICENSE="GPL-2" SLOT="0" -KEYWORDS="~x86" +KEYWORDS="x86" IUSE="debug" -RDEPEND="=net-wireless/ipw2100-firmware-${FW_VERSION} - >=net-wireless/wireless-tools-27_pre23 +DEPEND="!net-wireless/ieee80211 !net-wireless/ipw2200" +RDEPEND="${DEPEND} + =net-wireless/ipw2100-firmware-${FW_VERSION} + >=net-wireless/wireless-tools-27_pre23" -BUILD_PARAMS="KSRC=${KV_DIR}" BUILD_TARGETS="all" MODULE_NAMES="ipw2100(net:) @@ -32,24 +33,26 @@ MODULE_NAMES="ipw2100(net:) MODULESD_IPW2100_DOCS="README.ipw2100" 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)." +ERROR_NET_RADIO="${P} requires support for Wireless LAN drivers (non-hamradio) & Wireless Extensions (CONFIG_NET_RADIO)." +ERROR_CRYPTO_ARC4="${P} requires support for ARC4 cipher algorithm (CONFIG_CRYPTO_ARC4)." +ERROR_CRYPTO_MICHAEL_MIC="${P} requires support for Michael MIC keyed digest algorithm (CONFIG_CRYPTO_MICHAEL_MIC)." +ERROR_FW_LOADER="${P} requires Hotplug firmware loading support (CONFIG_FW_LOADER)." +ERROR_CRC32="${P} requires support for CRC32 functions (CONFIG_CRC32)." pkg_setup() { if kernel_is 2 4; then die "${P} does not support building against kernel 2.4.x" fi - if linux_chkconfig_present CRYPTO_AES_586 && linux_chkconfig_present CRYPTO_AES; then + 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 + + BUILD_PARAMS="KSRC=${KV_DIR}" } src_unpack() { @@ -57,16 +60,16 @@ src_unpack() { unpack ${A} + cd ${S} + epatch ${FILESDIR}/${P}-suspend2.patch + epatch ${FILESDIR}/${P}-is_multicast_ether_addr.patch + use debug && debug="y" sed -i \ -e "s:^\(CONFIG_IPW_DEBUG\)=.*:\1=$debug:" \ -e "s:^\(CONFIG_IEEE80211_DEBUG\)=.*:\1=$debug:" \ ${S}/Makefile - einfo "Patching Makefile to enable WPA" - sed -i "s:^# CONFIG_IEEE80211_WPA=:CONFIG_IEEE80211_WPA=:" \ - ${S}/Makefile - convert_to_m ${S}/Makefile } |