summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Brix Andersen <brix@gentoo.org>2005-10-29 09:52:37 +0000
committerHenrik Brix Andersen <brix@gentoo.org>2005-10-29 09:52:37 +0000
commitf953f3b2384a129f228d43541fbd0597fb74da14 (patch)
tree751dfbd038a441a3ee1e84d9bc46e4fc7dbfd363 /net-wireless/ieee80211
parentbuild & install manpages (diff)
downloadgentoo-2-f953f3b2384a129f228d43541fbd0597fb74da14.tar.gz
gentoo-2-f953f3b2384a129f228d43541fbd0597fb74da14.tar.bz2
gentoo-2-f953f3b2384a129f228d43541fbd0597fb74da14.zip
Add work-around for linux-2.6.14+, bug #110762.
(Portage version: 2.0.51.22-r3)
Diffstat (limited to 'net-wireless/ieee80211')
-rw-r--r--net-wireless/ieee80211/ChangeLog6
-rw-r--r--net-wireless/ieee80211/files/remove-old70
-rw-r--r--net-wireless/ieee80211/ieee80211-1.1.5-r1.ebuild4
-rw-r--r--net-wireless/ieee80211/ieee80211-1.1.5.ebuild4
-rw-r--r--net-wireless/ieee80211/ieee80211-1.1.6.ebuild30
5 files changed, 94 insertions, 20 deletions
diff --git a/net-wireless/ieee80211/ChangeLog b/net-wireless/ieee80211/ChangeLog
index 2e4db884eefe..7c2157333df4 100644
--- a/net-wireless/ieee80211/ChangeLog
+++ b/net-wireless/ieee80211/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-wireless/ieee80211
# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/ieee80211/ChangeLog,v 1.14 2005/10/21 18:13:01 brix Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/ieee80211/ChangeLog,v 1.15 2005/10/29 09:52:37 brix Exp $
+
+ 29 Oct 2005; Henrik Brix Andersen <brix@gentoo.org> +files/remove-old,
+ ieee80211-1.1.5.ebuild, ieee80211-1.1.5-r1.ebuild, ieee80211-1.1.6.ebuild:
+ Add work-around for linux-2.6.14+, bug #110762.
*ieee80211-1.1.6 (21 Oct 2005)
diff --git a/net-wireless/ieee80211/files/remove-old b/net-wireless/ieee80211/files/remove-old
new file mode 100644
index 000000000000..73a2575f1c0e
--- /dev/null
+++ b/net-wireless/ieee80211/files/remove-old
@@ -0,0 +1,70 @@
+#!/bin/bash -x
+
+if [ "$1" == "" ]; then
+ KERN=/lib/modules/`uname -r`/build
+else
+ KERN="$1"
+fi
+
+echo ${KERN} | grep "/\$" || KERN="${KERN}/"
+
+function ask_comment()
+{
+ while true; do
+ read -p "Above definitions found. Comment out? [y], n "
+ case ${REPLY} in
+
+ n) return 1;;
+
+ ""|y) sed -i \
+ -e "s:^\(CONFIG_IEEE80211.*\):#\1:" \
+ ${KERN}/.config || return 1
+ sed -i -r \
+ -e "s:^(#(un)?def.*CONFIG_IEEE80211.*):/*\1*/:" \
+ ${KERN}/include/linux/autoconf.h || return 1
+ return 0;;
+
+ *) continue;;
+ esac
+ done || return 1
+}
+
+function ask_remove()
+{
+ while true; do
+ read -p "Above files found. Remove? [y],n "
+ case ${REPLY} in
+
+ n) return 1;;
+
+ ""|y) find ${KERN} -type f -name 'ieee80211*' | \
+ while read fn; do
+ [ ! -d $fn ] && (rm -f ${fn} || return 1)
+ done || return 1
+ return 0;;
+
+ *) continue;;
+ esac
+ done || return 1
+}
+
+function do_check()
+{
+ echo -e "Checking in ${1} for ieee80211 components...\n"
+
+ FILES=`find ${1} -type f -name 'ieee80211*'`
+
+ if [ -n "${FILES}" ]; then
+ echo -e "${FILES}\n" | sed -e "s# #\n#"
+ ask_remove || return 1
+ fi
+
+ ( egrep "^(CONFIG_IEEE80211.*)" ${1}/.config || \
+ egrep "^#(un)?def.*(CONFIG_IEEE80211.*)" \
+ ${1}/include/linux/autoconf.h ) && \
+ (ask_comment || return 1)
+
+ return 0
+}
+
+do_check ${KERN}
diff --git a/net-wireless/ieee80211/ieee80211-1.1.5-r1.ebuild b/net-wireless/ieee80211/ieee80211-1.1.5-r1.ebuild
index 027dd912e04c..df00345bbd2b 100644
--- a/net-wireless/ieee80211/ieee80211-1.1.5-r1.ebuild
+++ b/net-wireless/ieee80211/ieee80211-1.1.5-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/ieee80211/ieee80211-1.1.5-r1.ebuild,v 1.1 2005/10/20 13:22:24 brix Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/ieee80211/ieee80211-1.1.5-r1.ebuild,v 1.2 2005/10/29 09:52:37 brix Exp $
inherit eutils linux-mod
@@ -48,7 +48,7 @@ pkg_setup() {
eerror "ieee80211 subsystem, which needs to be removed before"
eerror "${P} can be installed. This can be accomplished by running:"
eerror
- eerror " # rm -i ${KV_DIR}/include/net/ieee80211.h"
+ eerror " # /bin/sh ${FILESDIR}/remove-old ${KV_DIR}"
eerror
eerror "Please note that this will make it impossible to use some of the"
eerror "in-kernel IEEE 802.11 wireless LAN drivers (eg. orinoco)."
diff --git a/net-wireless/ieee80211/ieee80211-1.1.5.ebuild b/net-wireless/ieee80211/ieee80211-1.1.5.ebuild
index ca2ce4f4a18c..bb7c7ee143bb 100644
--- a/net-wireless/ieee80211/ieee80211-1.1.5.ebuild
+++ b/net-wireless/ieee80211/ieee80211-1.1.5.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/ieee80211/ieee80211-1.1.5.ebuild,v 1.2 2005/10/19 13:06:03 brix Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/ieee80211/ieee80211-1.1.5.ebuild,v 1.3 2005/10/29 09:52:37 brix Exp $
inherit eutils linux-mod
@@ -48,7 +48,7 @@ pkg_setup() {
eerror "ieee80211 subsystem, which needs to be removed before"
eerror "${P} can be installed. This can be accomplished by running:"
eerror
- eerror " # rm -i ${KV_DIR}/include/net/ieee80211.h"
+ eerror " # /bin/sh ${FILESDIR}/remove-old ${KV_DIR}"
eerror
eerror "Please note that this will make it impossible to use some of the"
eerror "in-kernel IEEE 802.11 wireless LAN drivers (eg. orinoco)."
diff --git a/net-wireless/ieee80211/ieee80211-1.1.6.ebuild b/net-wireless/ieee80211/ieee80211-1.1.6.ebuild
index 33b599bcda56..b3b450ae9bc1 100644
--- a/net-wireless/ieee80211/ieee80211-1.1.6.ebuild
+++ b/net-wireless/ieee80211/ieee80211-1.1.6.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/ieee80211/ieee80211-1.1.6.ebuild,v 1.1 2005/10/21 18:13:01 brix Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/ieee80211/ieee80211-1.1.6.ebuild,v 1.2 2005/10/29 09:52:37 brix Exp $
inherit linux-mod
@@ -42,20 +42,6 @@ pkg_setup() {
die "${P} does not support building against kernel 2.4.x"
fi
- if [[ -f ${KV_DIR}/include/net/ieee80211.h ]]; then
- eerror
- eerror "You kernel source contains an incomptible version of the"
- eerror "ieee80211 subsystem, which needs to be removed before"
- eerror "${P} can be installed. This can be accomplished by running:"
- eerror
- eerror " # rm -i ${KV_DIR}/include/net/ieee80211.h"
- eerror
- eerror "Please note that this will make it impossible to use some of the"
- eerror "in-kernel IEEE 802.11 wireless LAN drivers (eg. orinoco)."
- eerror
- die "Incompatible in-kernel ieee80211 subsystem detected"
- fi
-
if ! (linux_chkconfig_present CRYPTO_AES_586 || \
linux_chkconfig_present CRYPTO_AES_X86_64 || \
linux_chkconfig_present CRYPTO_AES); then
@@ -71,6 +57,20 @@ src_unpack() {
unpack ${A}
+ if [[ -f ${KV_DIR}/include/net/ieee80211.h ]]; then
+ eerror
+ eerror "You kernel source contains an incomptible version of the"
+ eerror "ieee80211 subsystem, which needs to be removed before"
+ eerror "${P} can be installed. This can be accomplished by running:"
+ eerror
+ eerror " # /bin/sh ${FILESDIR}/remove-old ${KV_DIR}"
+ eerror
+ eerror "Please note that this will make it impossible to use some of the"
+ eerror "in-kernel IEEE 802.11 wireless LAN drivers (eg. orinoco)."
+ eerror
+ die "Incompatible in-kernel ieee80211 subsystem detected"
+ fi
+
use debug && debug="y"
sed -i -e "s:^\(CONFIG_IEEE80211_DEBUG\)=.*:\1=${debug}:" ${S}/Makefile
}