diff options
author | Stephen Diener <sediener@gentoo.org> | 2003-12-20 01:50:16 +0000 |
---|---|---|
committer | Stephen Diener <sediener@gentoo.org> | 2003-12-20 01:50:16 +0000 |
commit | 028bdeab9cebbdd3e2ddeb0969387a751a49408e (patch) | |
tree | ca10077f89011cc1cf058596a1e4f6d6866d3275 /net-wireless/madwifi-driver | |
parent | modified to work with 2.6 kernels (diff) | |
download | gentoo-2-028bdeab9cebbdd3e2ddeb0969387a751a49408e.tar.gz gentoo-2-028bdeab9cebbdd3e2ddeb0969387a751a49408e.tar.bz2 gentoo-2-028bdeab9cebbdd3e2ddeb0969387a751a49408e.zip |
modified to work with 2.6 kernels
Diffstat (limited to 'net-wireless/madwifi-driver')
4 files changed, 84 insertions, 3 deletions
diff --git a/net-wireless/madwifi-driver/ChangeLog b/net-wireless/madwifi-driver/ChangeLog index 767b268a3b31..a0c66bb829c7 100644 --- a/net-wireless/madwifi-driver/ChangeLog +++ b/net-wireless/madwifi-driver/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-wireless/madwifi-driver # Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/madwifi-driver/ChangeLog,v 1.4 2003/12/13 22:15:50 sediener Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-wireless/madwifi-driver/ChangeLog,v 1.5 2003/12/20 01:50:05 sediener Exp $ + +*madwifi-driver-0.1_pre20031213-r1 (19 Dec 2003) + + 19 Dec 2003; Stephen Diener <sediener@gentoo.org> + madwifi-driver-0.1_pre20031213-r1.ebuild: + Modified to work with 2.6 kernels: thanks to flokno@gmx.net and Jani Vaarala + <flame@pymgyprojects.com> for debugging *madwifi-driver-0.1_pre20031213 (13 Dec 2003) diff --git a/net-wireless/madwifi-driver/Manifest b/net-wireless/madwifi-driver/Manifest index b19d5a4538ca..b4810b7a268d 100644 --- a/net-wireless/madwifi-driver/Manifest +++ b/net-wireless/madwifi-driver/Manifest @@ -1,8 +1,8 @@ -MD5 35201b36dbe76ed612096845434e6180 madwifi-driver-0.1_pre20031213-r1.ebuild 1418 +MD5 65d850941fb621369b1321167798cbd6 madwifi-driver-0.1_pre20031213-r1.ebuild 1556 MD5 06746914d38bf276109f25c176b37c58 madwifi-driver-0.1_pre20031110.ebuild 1202 MD5 822453b9a567b6f115ae62b7da74986c madwifi-driver-0.1_pre20031213.ebuild 1202 MD5 d078f5860d158f1827f749764ac2bff7 madwifi-driver-0.1_pre20030702.ebuild 1295 -MD5 662e4ce64dcac225577f3214fc36813e ChangeLog 867 +MD5 09067b72aa39561b781fb4ad51ae0d39 ChangeLog 1135 MD5 39a4faeaba4c44c4418b809c6d546384 madwifi-driver-0.1_pre20030802.ebuild 1296 MD5 19fd766bac8e110b4620363a1ace26dd metadata.xml 159 MD5 e00b943f3c94116d21cae2f156eddb3f files/digest-madwifi-driver-0.1_pre20031213-r1 83 diff --git a/net-wireless/madwifi-driver/files/digest-madwifi-driver-0.1_pre20031213-r1 b/net-wireless/madwifi-driver/files/digest-madwifi-driver-0.1_pre20031213-r1 new file mode 100644 index 000000000000..b564f9c3933b --- /dev/null +++ b/net-wireless/madwifi-driver/files/digest-madwifi-driver-0.1_pre20031213-r1 @@ -0,0 +1 @@ +MD5 c4930c0cfbe1136e6f1d930c78325bdb madwifi-driver-0.1_pre20031213.tar.bz2 461152 diff --git a/net-wireless/madwifi-driver/madwifi-driver-0.1_pre20031213-r1.ebuild b/net-wireless/madwifi-driver/madwifi-driver-0.1_pre20031213-r1.ebuild new file mode 100644 index 000000000000..8b4d30e08871 --- /dev/null +++ b/net-wireless/madwifi-driver/madwifi-driver-0.1_pre20031213-r1.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/madwifi-driver/madwifi-driver-0.1_pre20031213-r1.ebuild,v 1.1 2003/12/20 01:50:06 sediener Exp $ + +DESCRIPTION="Wireless driver for Atheros chipset a/b/g cards" +HOMEPAGE="http://madwifi.sourceforge.net/" + +# Point to any required sources; these will be automatically downloaded by +# Portage. +SRC_URI="mirror://gentoo/$P.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" + +KEYWORDS="~x86" +IUSE="" +DEPEND="" + +S=${WORKDIR} + +pkg_setup() { + + if [[ "${KV}" > "2.5" ]] ; then + cd /usr/src/linux + ./scripts/modpost ./vmlinux + fi + +} + +src_unpack() { + check_KV + unpack ${A} + + einfo "${KV}" + + cd ${S} + mv Makefile.inc ${T} + sed -e "s:\$(shell uname -r):${KV}:" \ + -e "s:\${DEPTH\}/../:/usr/src/:" \ + ${T}/Makefile.inc > Makefile.inc +} + +src_compile() { + make clean + make || die +} + +src_install() { + dodir /lib/modules/${KV}/net + insinto /lib/modules/${KV}/net + + # dealing with 2.6.0 kernel modules .ko naming + if [[ "${KV}" > "2.5" ]] ; then +# ewarn "Kernel Version 2.5 or higher" + doins ${S}/wlan/wlan.ko ${S}/ath_hal/ath_hal.ko ${S}/driver/ath_pci.ko + else +# ewarn "Kernel Version under 2.5" + doins ${S}/wlan/wlan.o ${S}/ath_hal/ath_hal.o ${S}/driver/ath_pci.o + fi + + dodoc README +} + +pkg_postinst() { + + depmod -a + + einfo "" + einfo "The madwifi drivers create an interface named 'athX'" + einfo "Create /etc/init.d/net.ath0 and add a line for athX" + einfo "in /etc/conf.d/net like 'iface_ath0=\"dhcp\"'" + einfo "" +} |