From c7ba95bd9263e89ebfd30d3a19b37a664bda2f01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A5=D0=B8=D1=80=D0=B5=D1=86=D0=BA=D0=B8=D0=B9=20=D0=9C?= =?UTF-8?q?=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= Date: Tue, 12 Sep 2017 18:02:26 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=B5=D1=80=D0=B5=D0=BD=D0=B5=D1=81?= =?UTF-8?q?=D1=91=D0=BD=20=D1=83=D0=B4=D0=B0=D0=BB=D1=91=D0=BD=D0=BD=D1=8B?= =?UTF-8?q?=D0=B9=20=D0=B8=D0=B7=20gentoo=20sys-apps/v86d?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sys-apps/v86d/Manifest | 1 + sys-apps/v86d/metadata.xml | 8 +++++ sys-apps/v86d/v86d-0.1.10.ebuild | 56 ++++++++++++++++++++++++++++++++ 3 files changed, 65 insertions(+) create mode 100644 sys-apps/v86d/Manifest create mode 100644 sys-apps/v86d/metadata.xml create mode 100644 sys-apps/v86d/v86d-0.1.10.ebuild diff --git a/sys-apps/v86d/Manifest b/sys-apps/v86d/Manifest new file mode 100644 index 000000000..43007ca86 --- /dev/null +++ b/sys-apps/v86d/Manifest @@ -0,0 +1 @@ +DIST v86d-0.1.10.tar.bz2 69819 SHA256 634964ae18ef68c8493add2ce150e3b4502badeb0d9194b4bd81241d25e6735c SHA512 db30156ac07a69e16e60c123a0b7fdc85ce3a3a826021230ae3af073428634b3d4c3a9be37971bb77d80e3b543494d258c86e41d81261821bcde2afe018aa392 WHIRLPOOL ea6d0b8ec5b3855e50c05b2303683389567ad184fb8f2079192ab2749b836958a0900ae57bebfc7bde47c776a74081fd792dee4454fee994c40c93f346965085 diff --git a/sys-apps/v86d/metadata.xml b/sys-apps/v86d/metadata.xml new file mode 100644 index 000000000..28c4b8e93 --- /dev/null +++ b/sys-apps/v86d/metadata.xml @@ -0,0 +1,8 @@ + + + + + + Use x86emu for Video BIOS calls + + diff --git a/sys-apps/v86d/v86d-0.1.10.ebuild b/sys-apps/v86d/v86d-0.1.10.ebuild new file mode 100644 index 000000000..6396a9482 --- /dev/null +++ b/sys-apps/v86d/v86d-0.1.10.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=2 + +inherit eutils flag-o-matic linux-info multilib + +DESCRIPTION="A daemon to run x86 code in an emulated environment" +HOMEPAGE="https://dev.gentoo.org/~spock/projects/uvesafb/" +SRC_URI="ftp://ftp.calculate-linux.org/calculate/source/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="debug x86emu" + +DEPEND="dev-libs/klibc" +RDEPEND="" + +S="${WORKDIR}/${P//_*/}" + +pkg_setup() { + linux-info_pkg_setup +} + +src_prepare() { + if [ -z "$(grep V86D ${ROOT}/usr/$(get_libdir)/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 +} + +src_configure() { + ./configure --with-klibc $(use_with debug) $(use_with x86emu) || die +} + +src_compile() { + # Disable stack protector, as it does not work with klibc (bug #346397). + filter-flags -fstack-protector -fstack-protector-all + emake KDIR="${KV_DIR}" || die +} + +src_install() { + emake 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." +}