summaryrefslogtreecommitdiff
blob: fbf06905311e51b580257427c7a2e1ca2eddab62 (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/discover/discover-1.5-r1.ebuild,v 1.12 2004/06/24 22:03:30 agriffis Exp $

DESCRIPTION="Discover hardware and load the appropriate drivers for that hardware."
HOMEPAGE="http://hackers.progeny.com/discover/"
SRC_URI="ftp://ftp.debian.org/debian/pool/main/d/discover/${PN}_${PV}-1.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 amd64 -sparc"
DEPEND="app-arch/tar app-arch/gzip"
RDEPEND="sys-apps/discover-data"

S=${WORKDIR}/${P}

src_compile() {
	econf --sbindir=/sbin || die "configure failed"
	emake || die
}

src_install() {
	make DESTDIR=${D} install || die
	cp ${FILESDIR}/etc-init.d-discover ${D}/etc/init.d/discover
	insinto /usr/share/discover
	doins discover/linuxrc
	dodoc BUGS AUTHORS ChangeLog NEWS README TODO ChangeLog.mandrake docs/ISA-Structure docs/PCI-Structure docs/Programming
	dodir /var/lib/discover
	prepallman
}