blob: 5a42e23693e7c26224bdd647ae8d88d8b37c894c (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/v86d/v86d-0.1.3-r1.ebuild,v 1.3 2008/09/27 20:54:16 spock Exp $
inherit eutils linux-info
DESCRIPTION="A daemon to run x86 code in an emulated environment."
HOMEPAGE="http://dev.gentoo.org/~spock/projects/uvesafb/"
SRC_URI="http://dev.gentoo.org/~spock/projects/uvesafb/archive/${P/_/-}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="debug x86emu"
DEPEND="dev-libs/klibc"
RDEPEND=""
S="${WORKDIR}/${P//_*/}"
pkg_setup() {
if [ -z "$(grep V86D /usr/lib/klibc/include/linux/connector.h)" ]; then
eerror "You need to compile klibc against a kernel tree patched with uvesafb"
eerror "prior to merging this package."
die "Kernel not patched with uvesafb."
fi
linux-info_pkg_setup
}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${PN}-0.1.8-concurrent-make.patch"
}
src_compile() {
local myconf=""
if use x86emu ; then
myconf="--with-x86emu"
fi
./configure --with-klibc $(use_with debug) ${myconf}
make KDIR=${KV_DIR} || die
}
src_install() {
make DESTDIR="${D}" install || die
dodoc README ChangeLog
insinto /usr/share/${PN}
doins misc/initramfs
}
pkg_postinst() {
elog "If you wish to place v86d into an initramfs image, you might want to use"
elog "'/usr/share/${PN}/initramfs' in your kernel's CONFIG_INITRAMFS_SOURCE."
}
|