# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils linux-mod DESCRIPTION="Conexant PCI ADSL linux drivers" HOMEPAGE="http://www.zweije.nl.eu.org/~vzweije/accessrunner/" SRC_URI="http://www.zweije.nl.eu.org/~vzweije/accessrunner/release/CnxADSL-6.1.2.007-PIM-2.6-${PV}.tar.bz2" LICENSE="" SLOT="0" KEYWORDS="x86" IUSE="" RESTRICT="nomirror nostrip" RDEPEND="virtual/modutils" DEPEND=">=virtual/linux-sources-2.6.27 net-dialup/linux-atm" S=${WORKDIR}/CnxADSL-6.1.2.007-PIM-2.6-${PV} MODULE_NAMES="CnxADSL(extra::KernelModule)" pkg_setup() { linux-mod_pkg_setup linux_chkconfig_present ATM || die "ATM support not detected!" } src_unpack() { unpack ${A} cd ${S} } src_compile() { ARCH="$(tc-arch-kernel)" emake KDIR=${KV_DIR} || die "emake failed" } src_install() { linux-mod_src_install newinitd ${FILESDIR}/cnxadsl cnxadsl newconfd ${FILESDIR}/cnxadsl.conf cnxadsl cd DownLoadApp exeinto /usr/bin doexe cnxadslconfig cnxadslstatus cnxadslautolog exeinto /etc/Conexant doexe cnxadslload insinto /etc/Conexant doins *.hex *.conf } pkg_postinst() { linux-mod_pkg_postinst }