summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-wireless/ipw2100/ipw2100-1.0.1.ebuild')
-rw-r--r--net-wireless/ipw2100/ipw2100-1.0.1.ebuild17
1 files changed, 10 insertions, 7 deletions
diff --git a/net-wireless/ipw2100/ipw2100-1.0.1.ebuild b/net-wireless/ipw2100/ipw2100-1.0.1.ebuild
index be7298734d4a..8f0e5e52d5ac 100644
--- a/net-wireless/ipw2100/ipw2100-1.0.1.ebuild
+++ b/net-wireless/ipw2100/ipw2100-1.0.1.ebuild
@@ -1,16 +1,18 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/ipw2100/ipw2100-1.0.1.ebuild,v 1.1 2004/11/19 18:21:33 brix Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/ipw2100/ipw2100-1.0.1.ebuild,v 1.2 2004/11/20 17:41:24 brix Exp $
inherit kernel-mod eutils
FW_VERSION="1.3"
+PATCH_2_4_VERSION="1"
DESCRIPTION="Driver for the Intel PRO/Wireless 2100 3B miniPCI adapter"
HOMEPAGE="http://ipw2100.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tgz
- mirror://gentoo/${PN}-fw-${FW_VERSION}.tgz"
+ mirror://gentoo/${PN}-fw-${FW_VERSION}.tgz
+ mirror://gentoo/${P}-2.4-v${PATCH_2_4_VERSION}.patch.gz"
LICENSE="GPL-2 ipw2100-fw"
SLOT="0"
@@ -26,11 +28,6 @@ RDEPEND=">=sys-apps/hotplug-20030805-r2
pkg_setup() {
local DIE=0
- if kernel-mod_is_2_4_kernel
- then
- die "${P} does not support building against kernel 2.4.x"
- fi
-
if ! kernel-mod_configoption_present NET_RADIO
then
eerror ""
@@ -93,6 +90,12 @@ pkg_setup() {
src_unpack() {
unpack ${A}
+ if kernel-mod_is_2_4_kernel
+ then
+ cd ${S}
+ epatch ${WORKDIR}/${P}-2.4-v${PATCH_2_4_VERSION}.patch
+ fi
+
einfo "Patching Makefile to enable WPA"
sed -i "s:^# CONFIG_IEEE80211_WPA=:CONFIG_IEEE80211_WPA=:" \
${S}/Makefile