diff options
author | Henrik Brix Andersen <brix@gentoo.org> | 2006-01-16 22:48:50 +0000 |
---|---|---|
committer | Henrik Brix Andersen <brix@gentoo.org> | 2006-01-16 22:48:50 +0000 |
commit | c42dbe797dbd5f5692553e7ec4750ade7f1edfd0 (patch) | |
tree | 76e18e5f7f3b67e0a9ea1b76a333dfdf40134074 /net-wireless/ieee80211/files | |
parent | Install net-snmp-config even with USE=minimal. Fixes bug 104193. (diff) | |
download | historical-c42dbe797dbd5f5692553e7ec4750ade7f1edfd0.tar.gz historical-c42dbe797dbd5f5692553e7ec4750ade7f1edfd0.tar.bz2 historical-c42dbe797dbd5f5692553e7ec4750ade7f1edfd0.zip |
Version bump.
Package-Manager: portage-2.0.53
Diffstat (limited to 'net-wireless/ieee80211/files')
-rw-r--r-- | net-wireless/ieee80211/files/digest-ieee80211-1.1.9 | 1 | ||||
-rw-r--r-- | net-wireless/ieee80211/files/remove-old | 27 |
2 files changed, 17 insertions, 11 deletions
diff --git a/net-wireless/ieee80211/files/digest-ieee80211-1.1.9 b/net-wireless/ieee80211/files/digest-ieee80211-1.1.9 new file mode 100644 index 000000000000..e9c680dc4ded --- /dev/null +++ b/net-wireless/ieee80211/files/digest-ieee80211-1.1.9 @@ -0,0 +1 @@ +MD5 cab4c5cd1ace1e0837cbf8b586ba1422 ieee80211-1.1.9.tgz 66280 diff --git a/net-wireless/ieee80211/files/remove-old b/net-wireless/ieee80211/files/remove-old index 2441480d7a49..cf354e684003 100644 --- a/net-wireless/ieee80211/files/remove-old +++ b/net-wireless/ieee80211/files/remove-old @@ -1,12 +1,17 @@ #!/bin/sh -x +KERN=/lib/modules/`uname -r` if [ -z "$1" ]; then - KERN=/lib/modules/`uname -r`/build + if [ -d ${KERN}/source ]; then + KSRC=${KERN}/source + else + KSRC=${KERN}/build + fi else - KERN="$1" + KSRC="$1" fi -echo ${KERN} | grep "/\$" || KERN="${KERN}/" +echo ${KSRC} | grep "/\$" || KSRC="${KSRC}/" ask_comment() { @@ -19,10 +24,10 @@ ask_comment() ""|y) sed -i \ -e "s:^\(CONFIG_IEEE80211.*\):#\1:" \ - ${KERN}/.config || return 1 + ${KSRC}/.config || return 1 sed -i -r \ -e "s:^(#(un)?def.*CONFIG_IEEE80211.*):/*\1*/:" \ - ${KERN}/include/linux/autoconf.h || return 1 + ${KSRC}/include/linux/autoconf.h || return 1 return 0;; *) continue;; @@ -40,7 +45,7 @@ ask_remove() n) return 1;; - ""|y) find ${KERN} -type f -name 'ieee80211*' | \ + ""|y) find ${KSRC} -type f -name 'ieee80211*' | \ while read fn; do [ ! -d $fn ] && (rm -f ${fn} || return 1) done || return 1 @@ -53,9 +58,9 @@ ask_remove() do_check() { - echo "Checking in ${1} for ieee80211 components..." + echo "Checking in ${KSRC} for ieee80211 components..." - FILES=`find ${1} -type f -name 'ieee80211*'` + FILES=`find ${KSRC} -type f -name 'ieee80211*'` if [ -n "${FILES}" ]; then for file in $FILES; do @@ -64,12 +69,12 @@ do_check() ask_remove || return 1 fi - ( egrep "^(CONFIG_IEEE80211.*)" ${1}/.config || \ + ( egrep "^(CONFIG_IEEE80211.*)" ${KSRC}/.config || \ egrep "^#(un)?def.*(CONFIG_IEEE80211.*)" \ - ${1}/include/linux/autoconf.h ) && \ + ${KSRC}/include/linux/autoconf.h ) && \ (ask_comment || return 1) return 0 } -do_check ${KERN} +do_check |