summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Brix Andersen <brix@gentoo.org>2005-01-04 00:05:28 +0000
committerHenrik Brix Andersen <brix@gentoo.org>2005-01-04 00:05:28 +0000
commit06dd6a8c7a621bbfc222b544a8bc89516516af95 (patch)
tree76f2e686d3aefaaa0febde119c715a6cf2bec845 /net-wireless/orinoco/orinoco-0.15_rc2-r1.ebuild
parentStable on x86. Optimized the ebuild a bit. (Manifest recommit) (diff)
downloadgentoo-2-06dd6a8c7a621bbfc222b544a8bc89516516af95.tar.gz
gentoo-2-06dd6a8c7a621bbfc222b544a8bc89516516af95.tar.bz2
gentoo-2-06dd6a8c7a621bbfc222b544a8bc89516516af95.zip
Ported to use linux-mod.eclass, bumping because of modules.d file additions.
Diffstat (limited to 'net-wireless/orinoco/orinoco-0.15_rc2-r1.ebuild')
-rw-r--r--net-wireless/orinoco/orinoco-0.15_rc2-r1.ebuild73
1 files changed, 73 insertions, 0 deletions
diff --git a/net-wireless/orinoco/orinoco-0.15_rc2-r1.ebuild b/net-wireless/orinoco/orinoco-0.15_rc2-r1.ebuild
new file mode 100644
index 000000000000..fdd01f98acdf
--- /dev/null
+++ b/net-wireless/orinoco/orinoco-0.15_rc2-r1.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/orinoco/orinoco-0.15_rc2-r1.ebuild,v 1.1 2005/01/04 00:05:28 brix Exp $
+
+inherit pcmcia linux-mod
+
+MY_P=${P/_/}
+S=${WORKDIR}/${MY_P}
+
+DESCRIPTION="ORiNOCO wireless driver"
+HOMEPAGE="http://www.nongnu.org/orinoco/"
+SRC_URI="${SRC_URI} http://www.ozlabs.org/people/dgibson/dldwd/${MY_P}.tar.gz"
+LICENSE="GPL-2 MPL-1.1"
+
+KEYWORDS="~x86 ~ppc"
+IUSE="pcmcia"
+SLOT="0"
+
+RDEPEND="net-wireless/wireless-tools"
+
+BUILD_TARGETS="all"
+
+CONFIG_CHECK="NET_RADIO !HERMES"
+NET_RADIO_ERROR="${P} requires support for Wireless LAN drivers (non-hamradio) & Wireless Extensions (CONFIG_NET_RADIO)."
+HERMES_ERROR="${P} requires Hermes chipset 802.11b support (Orinoco/Prism2/Symbol) (CONFIG_HERMES) to be DISABLED."
+
+pkg_setup() {
+ MODULE_NAMES="hermes(net:)
+ orinoco(net:)
+ orinoco_nortel(net:)
+ orinoco_pci(net:)
+ orinoco_plx(net:)
+ orinoco_tmd(net:)"
+
+ if use pcmcia; then
+ MODULE_NAMES="${MODULE_NAMES} orinoco_cs(net:) spectrum_cs(net:)"
+ fi
+
+ linux-mod_pkg_setup
+}
+
+src_unpack() {
+ unpack ${A}
+
+ pcmcia_src_unpack
+
+ if [ -n "${PCMCIA_VERSION}" ]; then
+ sed -i "s:^\(PCMCIA_CS\) =.*:\1 = ${PCMCIA_SOURCE_DIR}:" \
+ ${S}/Makefile
+ fi
+
+ sed -i "s:^\(KERNEL_SRC\) =.*:\1 = ${ROOT}/usr/src/linux/:" \
+ ${S}/Makefile
+
+ convert_to_m ${S}/Makefile
+}
+
+src_compile() {
+ pcmcia_configure
+
+ linux-mod_src_compile
+}
+
+src_install() {
+ if use pcmcia; then
+ insinto /etc/pcmcia
+ doins hermes.conf
+ fi
+
+ dodoc README.orinoco
+
+ linux-mod_src_install
+}