diff --git a/sys-apps/v86d/Manifest b/sys-apps/v86d/Manifest new file mode 100644 index 0000000..d7fb8b4 --- /dev/null +++ b/sys-apps/v86d/Manifest @@ -0,0 +1,2 @@ +DIST v86d-0.1.10.tar.bz2 88520 BLAKE2B 0b382c1cb3a3fd3637c4169b806ecae504834a6c1afa46d2e23eb0a0f5ea5aa7268366f3cf7cb41532db8727ebdf1714467fd6002be4ebde56fc7216a0c24029 SHA512 148b1676d932d1207da396defeae0fc39b664139eca5f29be98ceedc33e89566f7c35057df93249303c8e2c1bff0427430a077f88a85997e62ea96c29b5db9d1 +EBUILD v86d-0.1.10.ebuild 1501 BLAKE2B 23a5cf8bddf93632228da04397d13be86ea7bd63ed193c312d73a1690b910d6542ddb8755130ebc7cc83b80c5b3e9977ce863330b132be86ef19375e83900fd4 SHA512 82d80546ad611db39e9da4a5cef71ff007a7ae8c3ad5b82996d882415535996a0ee92e898fcb00f8aed353e9943d61afc576e9a9a68cae440ceecf5b2e75862e 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 0000000..50e0c65 --- /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="https://dev.gentoo.org/~spock/projects/uvesafb/archive/${P/_/-}.tar.bz2" +SRC_URI="https://moriya.zapto.org/attachments/2398f657-3213-4e79-a42d-c23588db399a -> ${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." +}