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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Mon Apr 25 15:16:23 2005 UTC (15 years, 3 months ago) by solar
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +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_pre20041019.ebuild,v 1.3 2005/01/07 16:43:17 solar Exp $
4
5 # cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/madwifi login
6 # cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/madwifi co -r HEAD madwifi
7 # cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/madwifi logout
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 #SRC_URI="${SRC_URI} mirror://gentoo/${PN}-${PV}-gentoo.patch.bz2"
18
19 LICENSE="GPL-2"
20 SLOT="0"
21
22 KEYWORDS="~x86"
23 IUSE=""
24 DEPEND="app-arch/sharutils"
25 RDEPEND=""
26
27 S=${WORKDIR}
28
29 pkg_setup() {
30 check_KV
31 if [[ "${KV}" > "2.5" ]] ; then
32 if [[ "${KV}" < "2.6.6" ]] ; then
33 cd ${ROOT}/usr/src/linux
34 [ -x ./scripts/modpost ] \
35 && ./scripts/modpost ./vmlinux
36 fi
37 fi
38 }
39
40 src_unpack() {
41 check_KV
42 unpack ${A}
43 cd ${S}
44
45 epatch ${FILESDIR}/madwifi-multi-ssid-support.patch
46
47 if kernel-mod_is_2_6_kernel && [ ${KV_PATCH} -gt 5 ]; then
48 for dir in ath ath_hal net80211; do
49 sed -i -e "s:SUBDIRS=:M=:" ${S}/${dir}/Makefile
50 done
51 fi
52 }
53
54 src_compile() {
55 unset ARCH
56 make clean
57 make KERNELPATH="${ROOT}/usr/src/linux" KERNELRELEASE="${KV}" || die
58 }
59
60 src_install() {
61 unset ARCH
62 make KERNELPATH="${ROOT}/usr/src/linux" KERNELRELEASE="${KV}" \
63 DESTDIR="${D}" install || die
64
65 dodoc README COPYRIGHT
66 }
67
68 pkg_postinst() {
69
70 [ -r "${ROOT}/usr/src/linux/System.map" ] && \
71 depmod -ae -F "${ROOT}/usr/src/linux/System.map" -b "${ROOT}" -r ${KV}
72
73 einfo ""
74 einfo "The madwifi drivers create an interface named 'athX'"
75 einfo "Create /etc/init.d/net.ath0 and add a line for athX"
76 einfo "in /etc/conf.d/net like 'iface_ath0=\"dhcp\"'"
77 einfo ""
78 }

  ViewVC Help
Powered by ViewVC 1.1.20