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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Sep 6 18:46:51 2004 UTC (15 years, 11 months ago) by solar
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
updated the cvs snapshot of madwifi-driver. The WPA branch was merged back into HEAD

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_pre20040824.ebuild,v 1.1 2004/08/24 18:42:51 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"
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 ./scripts/modpost ./vmlinux
31 fi
32 }
33
34 src_unpack() {
35 check_KV
36 unpack ${A}
37 cd ${S}
38 if kernel-mod_is_2_6_kernel && [ ${KV_PATCH} -gt 5 ]; then
39 for dir in ath ath_hal net80211; do
40 sed -i -e "s:SUBDIRS=:M=:" ${S}/${dir}/Makefile
41 done
42 fi
43 }
44
45 src_compile() {
46 unset ARCH
47 make clean
48 make KERNELPATH="${ROOT}/usr/src/linux" KERNELRELEASE="${KV}" || die
49 }
50
51 src_install() {
52 unset ARCH
53 make KERNELPATH="${ROOT}/usr/src/linux" KERNELRELEASE="${KV}" \
54 DESTDIR="${D}" install || die
55
56 dodoc README
57 }
58
59 pkg_postinst() {
60
61 test -r "${ROOT}/usr/src/linux/System.map" && \
62 depmod -ae -F "${ROOT}/usr/src/linux/System.map" -b "${ROOT}" -r ${KV}
63
64 einfo ""
65 einfo "The madwifi drivers create an interface named 'athX'"
66 einfo "Create /etc/init.d/net.ath0 and add a line for athX"
67 einfo "in /etc/conf.d/net like 'iface_ath0=\"dhcp\"'"
68 einfo ""
69 }

  ViewVC Help
Powered by ViewVC 1.1.20