# Distributed under the terms of the GNU General Public License v2 # First draft of this ebuild submited in the madwifi-users mailing # list by Florian Huber (17 Oct 2003) # Enhanced by Pau Oliva (8 Nov 2003) DESCRIPTION="Multiband Atheros Driver for WiFi" HOMEPAGE="http://sourceforge.net/projects/madwifi/" SLOT="0" LICENSE="GPL-2" KEYWORDS="-* ~x86" IUSE="" DEPEND="" inherit cvs ECVS_USER="anonymous" ECVS_SERVER="cvs.sourceforge.net:/cvsroot/madwifi" ECVS_MODULE="madwifi" ECVS_TOP_DIR="${DISTDIR}/cvs-src/${PN}" S=${WORKDIR}/${ECVS_MODULE} src_compile() { check_KV einfo "${KV}" cd ${S} mv Makefile.inc ${T} sed -e "s:\$(shell uname -r):${KV}:" \ -e "s:\${DEPTH\}/../:/usr/src/:" \ ${T}/Makefile.inc > Makefile.inc make || die } src_install() { dodir /lib/modules/${KV}/net insinto /lib/modules/${KV}/net doins ${S}/wlan/wlan.o ${S}/ath_hal/ath_hal.o ${S}/driver/ath_pci.o dodoc README COPYRIGHT } pkg_postinst() { depmod -a einfo "" einfo "The madwifi drivers create an interface named 'athX'" einfo "Create /etc/init.d/net.ath0 and add a line for athX" einfo "in /etc/conf.d/net like 'iface_ath0=\"dhcp\"'" einfo "" }