[net-wireless/ralink*] drivers are being merged into kernel

This commit is contained in:
Fabio Erculiani
2010-02-27 09:26:41 +01:00
parent 5a9e985a71
commit 2afc43c095
4 changed files with 0 additions and 127 deletions
-2
View File
@@ -1,2 +0,0 @@
DIST 2009_0420_RT2860_Linux_STA_V2.1.0.0.tar.gz 643376 RMD160 8ff9a47431c8048aa435d177d34caee7bc3c86eb SHA1 28750e998fee298b0eb18ceeaed5fc0998b1375a SHA256 325a8aedf8b8bde4b9d011b1d7c7a892d78f17714a64f374bf19ccbdc435137a
EBUILD ralink-rt2860-2.1.0.0.ebuild 1512 RMD160 651c35bde1db97ade75216e8d9ef1f5dc482bc10 SHA1 3e5afd173f44749f5e04f2b47659f7211f837711 SHA256 e67282c322b7283f2a6f01228ed87f8dd53bcc53e3f2cb8895ecf55b91ff9de3
@@ -1,57 +0,0 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header$
inherit eutils linux-mod
DESCRIPTION="Driver for the RaLink RT2860 wireless chipset"
HOMEPAGE="http://www.ralinktech.com/"
LICENSE="GPL-2"
MY_RELDATE="2009_0420"
MY_P="${MY_RELDATE}_RT2860_Linux_STA_V${PV}"
SRC_URI="http://www.ralinktech.com.tw/data/drivers/${MY_P}.tar.gz"
KEYWORDS="-* ~amd64 ~x86"
IUSE="networkmanager"
SLOT="0"
DEPEND=""
RDEPEND="net-wireless/wireless-tools"
S="${WORKDIR}/DPO_RT2860_LinuxSTA_V${PV}"
MODULE_NAMES="rt2860sta(wireless:${S}/os/linux)"
BUILD_PARAMS="-j1 -C \${KERNEL_DIR} M=\"${S}/os/linux\" PLATFORM=PC CHIPSET=2860 \
RT28xx_DIR=\"${S}\" RT28xx_MODE=STA"
BUILD_TARGETS="clean modules"
CONFIG_CHECK="WIRELESS_EXT"
ERROR_WIRELESS_EXT="${P} requires support for Wireless LAN drivers (non-hamradio) & Wireless Extensions (CONFIG_WIRELESS_EXT)."
src_compile() {
if kernel_is 2 6; then
cp -f os/linux/Makefile.6 os/linux/Makefile
elif kernel_is 2 4; then
cp -f os/linux/Makefile.4 os/linux/Makefile
else
die "Your kernel version is not supported!"
fi
sed -i -e "s:^HAS_WPA_SUPPLICANT=n:HAS_WPA_SUPPLICANT=y:g" os/linux/config.mk
use networkmanager && sed -i -e \
"s:^HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n:HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y:g" \
os/linux/config.mk
linux-mod_src_compile
}
src_install() {
linux-mod_src_install
dodoc iwpriv_usage.txt README_STA
insinto /etc/Wireless/RT2860STA
insopts -m 0600
doins RT2860STA.dat
}
-2
View File
@@ -1,2 +0,0 @@
DIST 2009_0302_RT2870_Linux_STA_v2.1.0.0.tar.bz2 536265 RMD160 8c31ee8620235f10e38f1dce100474e4218690e4 SHA1 99c2af5d1397e1663ad9facfd35785b5df8d3a2c SHA256 b26e54118bb90df8db253d5634a3d812ea0fbdc735c03a30c03410a90a080a7e
EBUILD ralink-rt2870-2.1.0.0.ebuild 1432 RMD160 2656e353b2dd90ad29cf58ee75540ffdc5f84605 SHA1 24ed870708a93f299d8a16c66e9e6f9edde5f56b SHA256 7e93ac594f646d7b8b6ce82f5383051cce06128ca519f961f1a862c93bd89d68
@@ -1,66 +0,0 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils linux-mod
DESCRIPTION="Driver for the RaLink RT2870 USB wireless chipsets"
HOMEPAGE="http://www.ralinktech.com/ralink/Home/Support/Linux.html"
LICENSE="GPL-2"
RESTRICT="nomirror"
MY_P="2009_0302_RT2870_Linux_STA_v${PV}"
SRC_URI="http://www.ralinktech.com.tw/data/drivers/${MY_P}.tar.bz2"
KEYWORDS="-* ~amd64 x86"
IUSE="debug"
SLOT="0"
DEPEND=""
RDEPEND="net-wireless/wireless-tools"
S="${WORKDIR}/${MY_P}"
MODULE_NAMES="rt2870sta(net:${S}/os/linux)"
#BUILD_TARGETS=" "
MODULESD_RT2870_ALIASES=('ra? rt2870')
CONFIG_CHECK="WIRELESS_EXT"
ERROR_WIRELESS_EXT="${P} requires support for Wireless LAN drivers (non-hamradio) & Wireless Extensions (CONFIG_WIRELESS_EXT)."
src_compile() {
cd "${S}"
if kernel_is 2 6; then
cp os/linux/Makefile.6 os/linux/Makefile
elif kernel_is 2 4; then
cp os/linux/Makefile.4 os/linux/Makefile
else
die "Your kernel version is not supported!"
fi
myarch=${ARCH}
unset ARCH
emake || die "make failed"
ARCH=${myarch}
#linux-mod_src_compile
}
src_install() {
linux-mod_src_install
dodoc README_STA iwpriv_usage.txt
insinto /etc/Wireless/RT2870STA
insopts -m 0600
doins RT2870STA.dat
insopts -m 0644
doins common/rt2870.bin
}
pkg_postinst() {
linux-mod_pkg_postinst
einfo
einfo "Thanks to RaLink for releasing open drivers!"
einfo
}