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

Diff of /net-wireless/madwifi-driver/madwifi-driver-0.1_pre20051111.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.1.1.1
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2005 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/net-wireless/madwifi-driver/Attic/madwifi-driver-0.1_pre20051111.ebuild,v 1.1 2005/11/13 16:34:22 genstef Exp $ 3# $Header: /var/cvsroot/gentoo-x86/net-wireless/madwifi-driver/Attic/madwifi-driver-0.1_pre20051111.ebuild,v 1.1.1.1 2005/11/30 09:45:27 chriswhite Exp $
4 4
5inherit linux-mod 5inherit linux-mod
6 6
7MADWIFI_SVN_REV="1325" 7MADWIFI_SVN_REV="1325"
8DESCRIPTION="Wireless driver for Atheros chipset a/b/g cards" 8DESCRIPTION="Wireless driver for Atheros chipset a/b/g cards"
9HOMEPAGE="http://www.madwifi.org" 9HOMEPAGE="http://www.madwifi.org"
10SRC_URI="http://snapshots.madwifi.org/madwifi-trunk-r${MADWIFI_SVN_REV}-${PV:7:8}.tar.gz" 10SRC_URI="http://snapshots.madwifi.org/madwifi-trunk-r${MADWIFI_SVN_REV}-${PV:7:8}.tar.gz"
11LICENSE="GPL-2" 11LICENSE="GPL-2"
12KEYWORDS="~x86 ~amd64 ~ppc" 12KEYWORDS="-amd64 ~ppc ~x86"
13IUSE="" 13IUSE=""
14DEPEND="app-arch/sharutils" 14DEPEND="app-arch/sharutils"
15RDEPEND=">=net-wireless/madwifi-tools-0.1_pre20051031" 15RDEPEND=">=net-wireless/madwifi-tools-0.1_pre20051031"
16S=${WORKDIR}/madwifi-trunk-r${MADWIFI_SVN_REV}-${PV:7:8} 16S=${WORKDIR}/madwifi-trunk-r${MADWIFI_SVN_REV}-${PV:7:8}
17CONFIG_CHECK="NET_RADIO" 17CONFIG_CHECK="NET_RADIO"
57 insinto /usr/include/madwifi/net80211 57 insinto /usr/include/madwifi/net80211
58 doins net80211/*.h 58 doins net80211/*.h
59} 59}
60 60
61pkg_postinst() { 61pkg_postinst() {
62 # remove old module to avoid segfaults, #112728
63 rate_amrr=${ROOT}/lib/modules/${KV_FULL}/net/ath_rate_amrr.ko
64 [ -f ${rate_amrr} ] && rm ${rate_amrr}
62 linux-mod_pkg_postinst 65 linux-mod_pkg_postinst
63 66
64 einfo "" 67 einfo ""
65 einfo "You need to create athX using wlanconfig" 68 einfo "You need to create athX using wlanconfig"
66 einfo "Baselayout will do that with the following in /etc/conf.d/net:" 69 einfo "Baselayout will do that with the following in /etc/conf.d/net:"
67 cat <<EOF 70 cat <<EOF
68preup() { 71preup() {
69 if [ "${IFACE}" = "ath0" ]; then 72 if [ "\${IFACE}" = "ath0" ]; then
70 /sbin/wlanconfig ath0 create wlandev wifi0 wlanmode sta 73 /sbin/wlanconfig ath0 create wlandev wifi0 wlanmode sta
71 return $? 74 return \$?
72 fi 75 fi
73} 76}
74 77
75postdown() { 78postdown() {
76 if [ "${IFACE}" = "ath0" ]; then 79 if [ "\${IFACE}" = "ath0" ]; then
77 /sbin/wlanconfig ath0 destroy 80 /sbin/wlanconfig ath0 destroy
78 return $? 81 return \$?
79 fi 82 fi
80} 83}
81EOF 84EOF
82} 85}

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.1.1.1

  ViewVC Help
Powered by ViewVC 1.1.20