--- /dev/null
+# ChangeLog for net-wireless/ralink-rt61
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/ralink-rt61/ChangeLog,v 1.1 2006/11/30 21:50:53 genstef Exp $
+
+*ralink-rt61-1.1.0.0 (30 Nov 2006)
+
+ 30 Nov 2006; Stefan Schweizer <genstef@gentoo.org>
+ +files/rt61-wireless-ext-v21.diff, +metadata.xml,
+ +ralink-rt61-1.1.0.0.ebuild:
+ New ebuild thanks to Sebastian <sebastian_ml@gmx.net> in bug 151560
+
--- /dev/null
+AUX rt61-wireless-ext-v21.diff 564 RMD160 7d517675f9a0c0bef65353d12ccdb18a036a3984 SHA1 6e6fe754884dd6086ee28031f0451d2d65c92852 SHA256 84310cf0a10fe3aa40934f23a988a3189b37af75dd4c1ce4afd702001143008d
+MD5 490cec9ff19f09f41e43a47c8a05b6f0 files/rt61-wireless-ext-v21.diff 564
+RMD160 7d517675f9a0c0bef65353d12ccdb18a036a3984 files/rt61-wireless-ext-v21.diff 564
+SHA256 84310cf0a10fe3aa40934f23a988a3189b37af75dd4c1ce4afd702001143008d files/rt61-wireless-ext-v21.diff 564
+DIST RT61_Linux_STA_Drv1.1.0.0.tar.gz 374892 RMD160 49419a851adefe0821be62549b91218126b02055 SHA1 b8ecd10245a4c8161422951e336b3eaaf16a52c0 SHA256 f427c2c6de4b294dc930c9eefeb743b93b90c8d89eed026ba2aacd7cce6e8c98
+EBUILD ralink-rt61-1.1.0.0.ebuild 1350 RMD160 584195b44f9901b0eb0e65dea6ba230dea3c4b3b SHA1 a783cebae6aa9d6c4a33d714aee5462a826256fb SHA256 c0d7866e2b092089b7d0dc91d4bbe82459ddd0def6f53e94b1d10ebf3e94c298
+MD5 b61a9ecfc70c0e6238f173635e70dc1e ralink-rt61-1.1.0.0.ebuild 1350
+RMD160 584195b44f9901b0eb0e65dea6ba230dea3c4b3b ralink-rt61-1.1.0.0.ebuild 1350
+SHA256 c0d7866e2b092089b7d0dc91d4bbe82459ddd0def6f53e94b1d10ebf3e94c298 ralink-rt61-1.1.0.0.ebuild 1350
+MISC ChangeLog 465 RMD160 083ae68a2687ea09694f1f7a6312985a8dac65e3 SHA1 7aa35b86be642c5e1db4aba09adcef283792d5ab SHA256 a4e58fde871f939a706dd0030f5444aacbb70578b7f247354ca59934bc69f973
+MD5 259fbdc6a11e0d71004f70c15717cbe7 ChangeLog 465
+RMD160 083ae68a2687ea09694f1f7a6312985a8dac65e3 ChangeLog 465
+SHA256 a4e58fde871f939a706dd0030f5444aacbb70578b7f247354ca59934bc69f973 ChangeLog 465
+MISC metadata.xml 159 RMD160 54af1e9a61e5ed1b49b2bbbf3ef2278999c66b13 SHA1 bce3da4745192397c9a08bdbcf7e4914eac9b77b SHA256 ed3a0d440cfa5672284f4172ebde0ea6506c1a38e9a3ed9f14f3d2c093aac42f
+MD5 19fd766bac8e110b4620363a1ace26dd metadata.xml 159
+RMD160 54af1e9a61e5ed1b49b2bbbf3ef2278999c66b13 metadata.xml 159
+SHA256 ed3a0d440cfa5672284f4172ebde0ea6506c1a38e9a3ed9f14f3d2c093aac42f metadata.xml 159
+MD5 d573d3f6987e7ea21a3225366ba14df9 files/digest-ralink-rt61-1.1.0.0 277
+RMD160 69da93b18eb30ec3720717ddd51b533d57ebf616 files/digest-ralink-rt61-1.1.0.0 277
+SHA256 74ca8186d6a39f9db9d40d0d88a263b2e392ae067de9973c8e4e49f6b3db7c04 files/digest-ralink-rt61-1.1.0.0 277
--- /dev/null
+MD5 cc375eba143c70be19718247fa8c18ba RT61_Linux_STA_Drv1.1.0.0.tar.gz 374892
+RMD160 49419a851adefe0821be62549b91218126b02055 RT61_Linux_STA_Drv1.1.0.0.tar.gz 374892
+SHA256 f427c2c6de4b294dc930c9eefeb743b93b90c8d89eed026ba2aacd7cce6e8c98 RT61_Linux_STA_Drv1.1.0.0.tar.gz 374892
--- /dev/null
+diff -Nur RT61_Linux_STA_Drv1.1.0.0.old/Module/rtmp_main.c RT61_Linux_STA_Drv1.1.0.0/Module/rtmp_main.c
+--- RT61_Linux_STA_Drv1.1.0.0.old/Module/rtmp_main.c 2006-11-22 03:19:57.000000000 +0100
++++ RT61_Linux_STA_Drv1.1.0.0/Module/rtmp_main.c 2006-11-30 20:56:15.000000000 +0100
+@@ -194,7 +194,9 @@
+ net_dev->get_stats = RT61_get_ether_stats;\r
+ \r
+ #if WIRELESS_EXT >= 12\r
++#if WIRELESS_EXT < 17\r
+ net_dev->get_wireless_stats = RT61_get_wireless_stats;\r
++#endif\r
+ net_dev->wireless_handlers = (struct iw_handler_def *) &rt61_iw_handler_def;\r
+ #endif\r
+ \r
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>mobile</herd>
+</pkgmetadata>
--- /dev/null
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/ralink-rt61/ralink-rt61-1.1.0.0.ebuild,v 1.1 2006/11/30 21:50:53 genstef Exp $
+
+inherit eutils linux-mod
+
+DESCRIPTION="Driver for the RaLink RT61 wireless chipset"
+HOMEPAGE="http://www.ralinktech.com/"
+LICENSE="GPL-2"
+
+MY_P=${P/${PN}-/RT61_Linux_STA_Drv}
+
+SRC_URI="http://www.ralinktech.com/drivers/Linux/${MY_P}.tar.gz"
+
+KEYWORDS="-* ~amd64 ~x86"
+IUSE=""
+SLOT="0"
+
+RDEPEND="net-wireless/wireless-tools"
+
+S="${WORKDIR}/${MY_P}"
+
+MODULE_NAMES="rt61(net:${S}/Module)"
+BUILD_TARGETS=" "
+MODULESD_RT61_ALIASES=('ra? rt61')
+
+CONFIG_CHECK="NET_RADIO"
+ERROR_NET_RADIO="${P} requires support for Wireless LAN drivers (non-hamradio) & Wireless Extensions (CONFIG_NET_RADIO)."
+
+src_compile() {
+ epatch ${FILESDIR}/rt61-wireless-ext-v21.diff
+ if kernel_is 2 6; then
+ cp Module/Makefile.6 Module/Makefile
+ elif kernel_is 2 4; then
+ cp Module/Makefile.4 Module/Makefile
+ else
+ die "Your kernel version is not supported!"
+ fi
+
+ linux-mod_src_compile
+}
+
+src_install() {
+ linux-mod_src_install
+
+ dodoc Module/{ReleaseNote,STA_iwpriv_ATE_usage.txt,readme,iwpriv_usage.txt}
+
+ insinto /etc/Wireless/RT61STA
+ insopts -m 0600
+ doins Module/rt61sta.dat
+ insopts -m 0644
+ doins Module/{rt2561,rt2561s,rt2661}.bin
+}