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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Tue Oct 19 18:49:42 2004 UTC (15 years, 9 months ago) by solar
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Flushed a few of the older ebuilds and added a new 20041019 snapshot for kernel 2.6.9 - madwifi-multi-ssid.patch still appears to be needed

1 agriffis 1.2 # Copyright 1999-2004 Gentoo Foundation
2 sediener 1.1 # Distributed under the terms of the GNU General Public License v2
3 solar 1.3 # $Header: /var/cvsroot/gentoo-x86/net-wireless/madwifi-driver/madwifi-driver-0.1_pre20040212.ebuild,v 1.2 2004/06/25 00:46:35 agriffis Exp $
4 sediener 1.1
5     DESCRIPTION="Wireless driver for Atheros chipset a/b/g cards"
6     HOMEPAGE="http://madwifi.sourceforge.net/"
7    
8     # Point to any required sources; these will be automatically downloaded by
9     # Portage.
10     SRC_URI="mirror://gentoo/$P.tar.bz2"
11    
12     LICENSE="GPL-2"
13     SLOT="0"
14    
15     KEYWORDS="~x86"
16     IUSE=""
17     DEPEND=""
18    
19     S=${WORKDIR}
20    
21     pkg_setup() {
22    
23     if [[ "${KV}" > "2.5" ]] ; then
24     cd /usr/src/linux
25     ./scripts/modpost ./vmlinux
26     fi
27    
28     }
29    
30     src_unpack() {
31     check_KV
32     unpack ${A}
33    
34     einfo "${KV}"
35    
36     cd ${S}
37     mv Makefile.inc ${T}
38     sed -e "s:\$(shell uname -r):${KV}:" \
39     -e "s:\${DEPTH\}/../:/usr/src/:" \
40     ${T}/Makefile.inc > Makefile.inc
41     }
42    
43     src_compile() {
44     make clean
45     make || die
46     }
47    
48     src_install() {
49     dodir /lib/modules/${KV}/net
50     insinto /lib/modules/${KV}/net
51    
52     # dealing with 2.6.0 kernel modules .ko naming
53     if [[ "${KV}" > "2.5" ]] ; then
54     # ewarn "Kernel Version 2.5 or higher"
55     doins ${S}/wlan/wlan.ko ${S}/ath_hal/ath_hal.ko ${S}/driver/ath_pci.ko
56     else
57     # ewarn "Kernel Version under 2.5"
58     doins ${S}/wlan/wlan.o ${S}/ath_hal/ath_hal.o ${S}/driver/ath_pci.o
59     fi
60    
61     dodoc README
62     }
63    
64     pkg_postinst() {
65    
66     depmod -a
67    
68     einfo ""
69     einfo "The madwifi drivers create an interface named 'athX'"
70     einfo "Create /etc/init.d/net.ath0 and add a line for athX"
71     einfo "in /etc/conf.d/net like 'iface_ath0=\"dhcp\"'"
72     einfo ""
73     }

  ViewVC Help
Powered by ViewVC 1.1.20