1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit eutils toolchain-funcs flag-o-matic
8 DESCRIPTION="Hardware setup program from Knoppix - used only on LiveCD"
9 HOMEPAGE="http://www.knopper.net/"
10 SRC_URI="http://debian-knoppix.alioth.debian.org/sources/${PN}_${MY_PV}.tar.gz"
11 #http://developer.linuxtag.net/knoppix/sources/${PN}_${MY_PV}.tar.gz"
15 KEYWORDS="alpha amd64 hppa ia64 -mips ppc ppc64 sparc x86"
19 sys-apps/pciutils[zlib?]
20 zlib? ( sys-libs/zlib )
28 sys-apps/hwdata-gentoo
32 ewarn "This package is designed for use on the LiveCD only and will do "
33 ewarn "unspeakably horrible and unexpected things on a normal system."
34 ewarn "YOU HAVE BEEN WARNED!!!"
39 "${FILESDIR}"/${MY_PV}-dyn_blacklist.patch \
40 "${FILESDIR}"/${PV}-3-fastprobe.patch \
41 "${FILESDIR}"/${MY_PV}-gentoo.patch \
42 "${FILESDIR}"/${PV}-strip.patch \
43 "${FILESDIR}"/${MY_PV}-openchrome.patch
49 -e '/^LIBS=/s,-lpci,-lz -lpci,g' \
55 emake LDFLAGS="${LDFLAGS}" OPT="${CFLAGS}" CC="$(tc-getCC)"
59 emake DESTDIR="${D}" PREFIX=/usr MANDIR=/usr/share/man
61 keepdir /etc/sysconfig
65 ewarn "This package is intended for use on the Gentoo release media. If"
66 ewarn "you are not building a CD, remove this package. It will not work"
67 ewarn "properly on a running system, as Gentoo does not use any of the"
68 ewarn "Knoppix-style detection except for CD builds."