diff options
-rw-r--r-- | net-wireless/rt2x00-git/ChangeLog | 8 | ||||
-rw-r--r-- | net-wireless/rt2x00-git/Manifest | 4 | ||||
-rw-r--r-- | net-wireless/rt2x00-git/metadata.xml | 5 | ||||
-rw-r--r-- | net-wireless/rt2x00-git/rt2x00-git-20070513.ebuild | 87 |
4 files changed, 104 insertions, 0 deletions
diff --git a/net-wireless/rt2x00-git/ChangeLog b/net-wireless/rt2x00-git/ChangeLog new file mode 100644 index 000000000..0ff1350c1 --- /dev/null +++ b/net-wireless/rt2x00-git/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for net-wireless/rt2x00-git +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 14 May 2007; Jakub Moc <jakub@gentoo.org> +rt2x00-git-20070513.ebuild, + +metadata.xml: + New rt2x00 git version ebuild, based on ebuild by Dick Marinus. Bug 176148 + diff --git a/net-wireless/rt2x00-git/Manifest b/net-wireless/rt2x00-git/Manifest new file mode 100644 index 000000000..53dedbbee --- /dev/null +++ b/net-wireless/rt2x00-git/Manifest @@ -0,0 +1,4 @@ +DIST rt2x00-git-20070513.tar.gz 322930 RMD160 205f9891f0d7d06dfd8cafe92f0a70ebb0463cc9 SHA1 7b657bb96d65d6c041bd4bbf060657a3943dc876 SHA256 e38571b6e56f45236a37d5ef7f6c7cba8deea323cf2656a6b843f856082ae6ec +EBUILD rt2x00-git-20070513.ebuild 2790 RMD160 8f31b3914355753e37015685b5922b7ef1f01e60 SHA1 f4bada0e99c24dbb5aa24c9b571843d5ca954a92 SHA256 c116a2fdb95b07b0668353a54a51969e49ba1108c92807a94516e04adef72a18 +MISC ChangeLog 292 RMD160 1c12aa591a7708e525294977af9871269f216e81 SHA1 a28367dea3ddc0e7172614ae169ee96a8605f8af SHA256 3020c8c83432ee7370828e9f257e90b5c11c870494471c6619b9522960c4617e +MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42 diff --git a/net-wireless/rt2x00-git/metadata.xml b/net-wireless/rt2x00-git/metadata.xml new file mode 100644 index 000000000..7e3286984 --- /dev/null +++ b/net-wireless/rt2x00-git/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>maintainer-wanted</herd> +</pkgmetadata> diff --git a/net-wireless/rt2x00-git/rt2x00-git-20070513.ebuild b/net-wireless/rt2x00-git/rt2x00-git-20070513.ebuild new file mode 100644 index 000000000..a8db67157 --- /dev/null +++ b/net-wireless/rt2x00-git/rt2x00-git-20070513.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit linux-mod + +MY_PN="rt2x00-git" +DESCRIPTION="Ralink drivers for rt2400, rt2500, rt61 and rt73 chips (experimental git branch)" +HOMEPAGE="http://rt2x00.serialmonkey.com/" +SRC_URI="http://dev.gentooexperimental.org/~jakub/distfiles/${MY_PN}-${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +RT2X00_DEVICES="rt2400pci rt2500pci rt2500usb rt61pci rt73usb" +for x in ${RT2X00_DEVICES} ; do + IUSE="${IUSE} ${x}" +done + +DEPEND="net-wireless/mac80211" +RDEPEND="rt2400pci? ( net-wireless/eeprom_93cx6 ) + rt2500pci? ( net-wireless/eeprom_93cx6 ) + rt61pci? ( net-wireless/eeprom_93cx6 net-wireless/crc-itu-t ) + rt73usb? ( net-wireless/crc-itu-t )" + +S="${WORKDIR}/drivers/net/wireless/mac80211/rt2x00/" + +src_unpack() { + unpack ${A} + if use rt61pci || use rt73usb ; then + echo "CFLAGS += -I/usr/include/mac80211 -I/usr/include/crc-itu-t" \ + "-I/usr/include/eeprom_93cx6 -D CONFIG_RT2X00_LIB_FIRMWARE" >> ${S}/Makefile + else + echo "CFLAGS += -I/usr/include/mac80211 -I/usr/include/crc-itu-t" \ + "-I/usr/include/eeprom_93cx6" >> ${S}/Makefile + fi +} + +pkg_setup() { + # check whether any drivers are set in USE + local selected="n" + for i in ${RT2X00_DEVICES} ; do + if use ${i} ; then + selected="y" + break + fi + done + if [[ ${selected} == "n" ]] ; then + eerror "You didn't choose any rt2x00 driver to build!" + die "Add one or more of ${RT2X00_DEVICES} to your USE flags and try again." + fi + + CONFIG_CHECK="NET_RADIO" + ERROR_NET_RADIO="${P} requires support for Wireless LAN drivers (non-hamradio) & Wireless Extensions (CONFIG_NET_RADIO)." + + MODULE_NAMES="rt2x00lib(net/wireless/mac80211/rt2x00/)" + BUILD_PARAMS="CONFIG_RT2X00=m CONFIG_RT2X00_LIB=m" + + for i in ${RT2X00_DEVICES} ; do + use ${i} && MODULE_NAMES="${MODULE_NAMES} ${i}(net/wireless/mac80211/rt2x00/)" + use ${i} && BUILD_PARAMS="${BUILD_PARAMS} CONFIG_$(echo -n ${i} | tr '[:lower:]' '[:upper:]')=m" + done + + if use rt2400pci || use rt2500pci || use rt61pci ; then + MODULE_NAMES="${MODULE_NAMES} rt2x00pci(net/wireless/mac80211/rt2x00/)" + BUILD_PARAMS="${BUILD_PARAMS} CONFIG_RT2X00_LIB_PCI=m" + CONFIG_CHECK="${CONFIG_CHECK} PCI" + fi + + if use rt2500usb || use rt73usb ; then + MODULE_NAMES="${MODULE_NAMES} rt2x00usb(net/wireless/mac80211/rt2x00/)" + BUILD_PARAMS="${BUILD_PARAMS} CONFIG_RT2X00_LIB_USB=m" + CONFIG_CHECK="${CONFIG_CHECK} USB" + ERROR_FW_LOADER="${P} requires support for Firmware module loading (CONFIG_FW_LOADER)." + fi + + if use rt61pci || use rt73usb ; then + BUILD_PARAMS="${BUILD_PARAMS} CONFIG_RT2X00_LIB_FIRMWARE=m" + CONFIG_CHECK="${CONFIG_CHECK} FW_LOADER" + fi + + linux-mod_pkg_setup + BUILD_TARGETS="modules" + BUILD_PARAMS="${BUILD_PARAMS} -C ${KV_DIR} M=${S} V=1" +} |