# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit linux-mod DESCRIPTION="Attansic L2 fast ethernet driver" HOMEPAGE="http://www.attansic.com/english/products/index.html" SRC_URI="http://www.cs.upt.ro/~gseba/${P}-${PR}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" RESTRICT="" S="${WORKDIR}/src" DEPEND="" RDEPEND="${DEPEND} app-arch/unrar" CONFIG_CHECK="MODULES SLAB PCI INET PACKET IPV6 NET_ETHERNET MII NET_PCI" BUILD_TARGETS="default" MODULE_NAMES="atl2(net:${S})" MODULESD_ATL2_ALIASES=("eth1 atl2") pkg_setup() { kernel_is 2 6 24 || die "The ebuild is for kernel 2.6.24 only!" linux-mod_pkg_setup BUILD_PARAMS="KERNELDIR=${KV_DIR} BUILD_KERNEL=${KV_FULL}" } src_unpack() { cd "${S}/.." unpack "${A}" unpack "./L2-linux-driver_new.rar" cd "./src" epatch "../attansic_L2-2.6.24.patch" convert_to_m ${S}/Makefile } src_install() { linux-mod_src_install cd "${S}/.." dodoc readme release_note.txt doman atl2.7 } pkg_postinst() { linux-mod_pkg_postinst einfo einfo "Please do \`man 7 atl2' for the module's parameters." einfo }