summaryrefslogtreecommitdiff
blob: b0ec625d47c0f1323806e8eae54476ecefba1244 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/tulip-devel/tulip-devel-1.1.8-r1.ebuild,v 1.4 2004/11/10 21:43:28 mr_bones_ Exp $

inherit eutils

DESCRIPTION="Development version of the kernel driver for the Digital/Intel 21x4x ("Tulip") series of ethernet chips."
MY_PN="tulip"
MY_P=${MY_PN}-${PV}
HOMEPAGE="http://sourceforge.net/projects/${MY_PN}/"
SRC_URI="http://download.sourceforge.net/${MY_PN}/${MY_P}.tar.gz
	mirror://sourceforge/${MY_PN}/${MY_P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~ppc"

IUSE=""
DEPEND=">=virtual/linux-sources-2.3.50"

S=${WORKDIR}/${MY_P}/src

src_unpack() {
	unpack ${A}
	cd ${S}
	epatch ${FILESDIR}/${P}-${PR}-gentoo.patch || die "epatch failed."
}

src_compile() {
	make || die
}

src_install() {
	check_KV
	insinto /lib/modules/$KV/kernel/drivers/net/tulip
	newins tulip.o tulip-devel.o
	dodoc ChangeLog

	echo
	einfo "The development version of the tulip module has been installed"
	einfo "as /lib/modules/$KV/kernel/drivers/net/tulip/tulip-devel.o."
	einfo "If you upgrade or downgrade your kernel, you will need to"
	einfo "remerge this ebuild by typing 'emerge ${PN}'."
	echo
}