/[gentoo-x86]/net-wireless/madwifi-driver/madwifi-driver-0.1_pre20030702.ebuild
Gentoo

Contents of /net-wireless/madwifi-driver/madwifi-driver-0.1_pre20030702.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Feb 12 06:27:40 2004 UTC (16 years, 5 months ago) by sediener
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Cleared out all but the last three monthly snapshots.  Added Febs snap.

1 # Copyright 1999-2003 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/net-wireless/madwifi-driver/madwifi-driver-0.1_pre20030702.ebuild,v 1.1 2003/07/18 19:37:01 latexer Exp $
4
5 MY_PN="${PN/-driver/}"
6 MY_PV="${PV/0.1_pre/}"
7 MY_P="${MY_PN}-${MY_PV}"
8 DESCRIPTION="Wireless driver for Atheros chipset a/b/g cards"
9 HOMEPAGE="http://madwifi.sourceforge.net/"
10
11 # Point to any required sources; these will be automatically downloaded by
12 # Portage.
13 SRC_URI="mirror://sourceforge/${MY_PN}/${MY_P}.tgz"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17
18 KEYWORDS="~x86"
19 IUSE=""
20 DEPEND=""
21
22 S=${WORKDIR}/${MY_P}
23
24 src_unpack() {
25 check_KV
26 unpack ${A}
27
28 einfo "${KV}"
29
30 cd ${S}
31 mv Makefile.inc ${T}
32 sed -e "s:\$(shell uname -r):${KV}:" \
33 -e "s:\${DEPTH\}/../:/usr/src/:" \
34 ${T}/Makefile.inc > Makefile.inc
35 }
36
37 src_compile() {
38 make clean
39 make || die
40 }
41
42 src_install() {
43 dodir /lib/modules/${KV}/net
44 insinto /lib/modules/${KV}/net
45 doins ${S}/wlan/wlan.o ${S}/ath_hal/ath_hal.o ${S}/driver/ath_pci.o
46
47 dodoc README
48 }
49
50 pkg_postinst() {
51 depmod -a
52 einfo ""
53 einfo "The madwifi drivers create an interface named 'athX'"
54 einfo "Create /etc/init.d/net.ath0 and add a line for athX"
55 einfo "in /etc/conf.d/net like 'iface_ath0=\"dhcp\"'"
56 einfo ""
57 }

  ViewVC Help
Powered by ViewVC 1.1.20