# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ # Nonofficial ebuild by Ycarus. For new version look here : http://gentoo.zugaina.org/ # This ebuild is a small modification of the official madwifi-tools ebuild ECVS_SERVER="cvs.sourceforge.net:/cvsroot/madwifi" ECVS_MODULE="madwifi" ECVS_TOP_DIR="${DISTDIR}/cvs-src/madwifi-cvs" inherit cvs DESCRIPTION="Wireless tools for Atheros chipset a/b/g cards" HOMEPAGE="http://madwifi.sourceforge.net/" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64 ~ppc" IUSE="" DEPEND="virtual/libc" S=${WORKDIR}/madwifi/tools pkg_setup() { use x86 && TARGET=i386-elf use amd64 && TARGET=x86_64-elf export TARGET } src_install() { cd ${S} sed -i -e 's/err(1, ifr.ifr_name);/err(1, "%s", ifr.ifr_name);'/g ${S}/athstats.c dobin 80211debug 80211stats athchans athctrl athdebug athkey athstats }