1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit toolchain-funcs
8 MY_P
=${PN%-tools}-r${MY_REV}-${PV##*_pre}
9 S
=${WORKDIR}/${MY_P}/tools
11 DESCRIPTION
="Next Generation tools for configuration of Atheros based IEEE 802.11a/b/g wireless LAN cards"
12 HOMEPAGE
="http://www.madwifi.org/"
13 SRC_URI
="http://snapshots.madwifi.org/${PN%-tools}/${MY_P}.tar.gz"
16 LICENSE
="|| ( BSD GPL-2 )"
18 KEYWORDS
="~amd64 ~x86"
22 RDEPEND
="!net-wireless/madwifi-old-tools
31 sed -i -e "s:CC =.*:CC = $(tc-getCC):" \
32 -e "s:CFLAGS=:CFLAGS+=:" \
33 -e "s:LDFLAGS=:LDFLAGS+=:" \
34 "${S}"/Makefile || die
"sed failed"
38 emake || die
"make failed"
42 emake DESTDIR
="${D}" BINDIR
=/usr
/bin MANDIR
=/usr
/share
/man STRIP
=echo \
43 install || die
"install failed"
46 mv "${D}"/usr
/bin
/wlanconfig
"${D}"/sbin
48 # install headers for use by
49 # net-wireless/wpa_supplicant and net-wireless/hostapd
51 insinto
/usr
/include
/madwifi
/include
/
53 insinto
/usr
/include
/madwifi
/net80211
58 if [ -e "${ROOT}"/etc
/udev
/rules.d
/65-madwifi.rules
]; then
60 ewarn
"The udev rules for creating interfaces (athX) are no longer needed."
62 ewarn
"You should manually remove the /etc/udev/rules.d/65-madwifi.rules file"
63 ewarn
"and either run 'udevstart' or reboot for the changes to take effect."
67 einfo
"If you use net-wireless/wpa_supplicant or net-wireless/hostapd with madwifi"
68 einfo
"you should remerge them now."