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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Apr 25 15:16:23 2005 UTC (15 years, 2 months ago) by solar
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
- remove older snapshots that were using kernel-mod.eclass and updated snapshot
(Portage version: 2.0.51.20)

1 # Copyright 1999-2005 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_pre20050106.ebuild,v 1.1 2005/01/07 16:43:17 solar Exp $
4
5 # Be sure when we bump madwifi-driver that we also bump madwifi-tools at
6 # the same time as they use the same snapshot tarball.
7 # cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/madwifi login
8 # cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/madwifi co -r HEAD madwifi
9 # cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/madwifi logout
10
11 inherit eutils kernel-mod
12
13 DESCRIPTION="Wireless driver for Atheros chipset a/b/g cards"
14 HOMEPAGE="http://madwifi.sourceforge.net/"
15
16 # Point to any required sources; these will be automatically downloaded by
17 # Portage.
18 SRC_URI="mirror://gentoo/${P}.tar.bz2"
19
20 LICENSE="GPL-2"
21 SLOT="0"
22
23 #KEYWORDS="~x86 ~amd64"
24 KEYWORDS="-*"
25 IUSE=""
26 DEPEND="app-arch/sharutils"
27 RDEPEND=""
28
29 S=${WORKDIR}
30
31 pkg_setup() {
32 check_KV
33 if [[ "${KV}" > "2.5" ]] ; then
34 if [[ "${KV}" < "2.6.6" ]] ; then
35 cd ${ROOT}/usr/src/linux
36 [ -x ./scripts/modpost ] \
37 && ./scripts/modpost ./vmlinux
38 fi
39 fi
40 use x86 && TARGET=i386-elf
41 use amd64 && TARGET=x86_64-elf
42 export TARGET
43 }
44
45 src_unpack() {
46 check_KV
47 unpack ${A}
48 cd ${S}
49
50 #epatch ${FILESDIR}/madwifi-multi-ssid-support.patch
51
52 if kernel-mod_is_2_6_kernel && [ ${KV_PATCH} -gt 5 ]; then
53 for dir in ath ath_hal net80211; do
54 sed -i -e "s:SUBDIRS=:M=:" ${S}/${dir}/Makefile
55 done
56 fi
57 }
58
59 src_compile() {
60 unset ARCH
61 make clean
62
63 make KERNELPATH="${ROOT}/usr/src/linux" KERNELRELEASE="${KV}" \
64 TARGET="${TARGET}" || die
65 }
66
67 src_install() {
68 unset ARCH
69 make KERNELPATH="${ROOT}/usr/src/linux" KERNELRELEASE="${KV}" \
70 TARGET="${TARGET}" DESTDIR="${D}" install || die
71
72 dodoc README COPYRIGHT
73 }
74
75 pkg_postinst() {
76
77 [ -r "${ROOT}/usr/src/linux/System.map" ] && \
78 depmod -ae -F "${ROOT}/usr/src/linux/System.map" -b "${ROOT}" -r ${KV}
79
80 einfo ""
81 einfo "The madwifi drivers create an interface named 'athX'"
82 einfo "Create /etc/init.d/net.ath0 and add a line for athX"
83 einfo "in /etc/conf.d/net like 'iface_ath0=\"dhcp\"'"
84 einfo ""
85 }

  ViewVC Help
Powered by ViewVC 1.1.20