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

Contents of /net-wireless/madwifi-driver/madwifi-driver-0.1_pre20040824-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Fri Jan 7 16:43:17 2005 UTC (15 years, 8 months ago) by solar
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
- version bump for 2.6.x kernels

1 solar 1.1 # Copyright 1999-2004 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 solar 1.2 # $Header: /var/cvsroot/gentoo-x86/net-wireless/madwifi-driver/madwifi-driver-0.1_pre20040824-r1.ebuild,v 1.1 2004/08/29 04:41:33 solar Exp $
4 solar 1.1
5     # All work on madwifi is pretty much done under the WPA branch. At some
6     # point in the near future it should be merged back into HEAD.
7     # cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/madwifi co -r WPA madwifi
8    
9     inherit eutils kernel-mod
10    
11     DESCRIPTION="Wireless driver for Atheros chipset a/b/g cards"
12     HOMEPAGE="http://madwifi.sourceforge.net/"
13    
14     # Point to any required sources; these will be automatically downloaded by
15     # Portage.
16     SRC_URI="mirror://gentoo/$P.tar.bz2"
17    
18     LICENSE="GPL-2"
19     SLOT="0"
20    
21     KEYWORDS="~x86"
22     IUSE=""
23     DEPEND=""
24    
25     S=${WORKDIR}
26    
27     pkg_setup() {
28     if [[ "${KV}" > "2.5" ]] ; then
29     cd ${ROOT}/usr/src/linux
30     if [[ "${KV}" > "2.6.8" ]] ; then
31     ./scripts/mod/modpost ./vmlinux
32     else
33     ./scripts/modpost ./vmlinux
34     fi
35     fi
36     }
37    
38     src_unpack() {
39     check_KV
40     unpack ${A}
41     cd ${S}
42    
43     # http://article.gmane.org/gmane.linux.drivers.madwifi.user/4033
44     epatch ${FILESDIR}/madwifi-multi-ssid-support.patch
45    
46     if kernel-mod_is_2_6_kernel && [ ${KV_PATCH} -gt 5 ]; then
47     for dir in ath ath_hal net80211; do
48     sed -i -e "s:SUBDIRS=:M=:" ${S}/${dir}/Makefile
49     done
50    
51     [[ "${KV_PATCH}" -ge 8 ]] && epatch ${FILESDIR}/${PN}-2.6.8-20040814-proc_dointvec.patch
52     fi
53     }
54    
55     src_compile() {
56     unset ARCH
57     make clean
58     make KERNELPATH="${ROOT}/usr/src/linux" KERNELRELEASE="${KV}" || die
59     }
60    
61     src_install() {
62     unset ARCH
63     make KERNELPATH="${ROOT}/usr/src/linux" KERNELRELEASE="${KV}" \
64     DESTDIR="${D}" install || die
65    
66     dodoc README
67     }
68    
69     pkg_postinst() {
70    
71     [ -r "${ROOT}/usr/src/linux/System.map" ] && \
72     depmod -ae -F "${ROOT}/usr/src/linux/System.map" -b "${ROOT}" -r ${KV}
73    
74     einfo ""
75     einfo "The madwifi drivers create an interface named 'athX'"
76     einfo "Create /etc/init.d/net.ath0 and add a line for athX"
77     einfo "in /etc/conf.d/net like 'iface_ath0=\"dhcp\"'"
78     einfo ""
79     }

  ViewVC Help
Powered by ViewVC 1.1.20