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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show 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.2: +1 -1 lines
FILE REMOVED
- version bump for 2.6.x kernels

1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-wireless/madwifi-driver/madwifi-driver-0.1_pre20040906.ebuild,v 1.2 2004/10/19 18:49:42 solar Exp $
4
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 mirror://gentoo/${PN}-${PV}-gentoo.patch.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 check_KV
29 if [[ "${KV}" > "2.5" ]] ; then
30 if [[ "${KV}" < "2.6.6" ]] ; then
31 cd ${ROOT}/usr/src/linux
32 [ -x ./scripts/modpost ] \
33 && ./scripts/modpost ./vmlinux
34 fi
35 fi
36 }
37
38 src_unpack() {
39 check_KV
40 unpack ${A}
41 cd ${S}
42
43 epatch ${DISTDIR}/${PN}-${PV}-gentoo.patch.bz2
44
45 if kernel-mod_is_2_6_kernel && [ ${KV_PATCH} -gt 5 ]; then
46 for dir in ath ath_hal net80211; do
47 sed -i -e "s:SUBDIRS=:M=:" ${S}/${dir}/Makefile
48 done
49 fi
50 }
51
52 src_compile() {
53 unset ARCH
54 make clean
55 make KERNELPATH="${ROOT}/usr/src/linux" KERNELRELEASE="${KV}" || die
56 }
57
58 src_install() {
59 unset ARCH
60 make KERNELPATH="${ROOT}/usr/src/linux" KERNELRELEASE="${KV}" \
61 DESTDIR="${D}" install || die
62
63 dodoc README COPYRIGHT
64 }
65
66 pkg_postinst() {
67
68 [ -r "${ROOT}/usr/src/linux/System.map" ] && \
69 depmod -ae -F "${ROOT}/usr/src/linux/System.map" -b "${ROOT}" -r ${KV}
70
71 einfo ""
72 einfo "The madwifi drivers create an interface named 'athX'"
73 einfo "Create /etc/init.d/net.ath0 and add a line for athX"
74 einfo "in /etc/conf.d/net like 'iface_ath0=\"dhcp\"'"
75 einfo ""
76 }

  ViewVC Help
Powered by ViewVC 1.1.20