summaryrefslogtreecommitdiff
blob: 12da9577ed6c14d103b98e4cfb8adf2f5afe1a6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-wireless/madwifi-tools/madwifi-tools-0.1_pre20051031.ebuild,v 1.3 2005/11/12 22:51:57 genstef Exp $

MADWIFI_SVN_REV="1227"
DESCRIPTION="Wireless tools for Atheros chipset a/b/g cards"
HOMEPAGE="http://madwifi.sourceforge.net/"
SRC_URI="http://snapshots.madwifi.org/madwifi-trunk-r${MADWIFI_SVN_REV}-${PV:7:8}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64 ~ppc"
IUSE=""
DEPEND="virtual/libc"

S=${WORKDIR}/madwifi-trunk-r${MADWIFI_SVN_REV}-${PV:7:8}/tools

src_unpack() {
	unpack ${A}
	cd ${S}
	sed -i 's:err(1, ifr.ifr_name);:err(1, "%s", ifr.ifr_name);:g' athstats.c || die
	sed -i "s:CFLAGS=:CFLAGS+=:" Makefile
	sed -i "s:LDFLAGS=:LDFLAGS+=:" Makefile
}

src_install() {
	make install DESTDIR=${D} BINDIR=/usr/bin MANDIR=/usr/share/man || die "make install failed"
	dodir /sbin
	mv ${D}/usr/bin/wlanconfig ${D}/sbin
}