diff --git a/app-emulation/app-emulation/nemu/Manifest b/app-emulation/app-emulation/nemu/Manifest new file mode 100644 index 0000000..480c500 --- /dev/null +++ b/app-emulation/app-emulation/nemu/Manifest @@ -0,0 +1,24 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +DIST nemu-2.5.0.tar.gz 108742 BLAKE2B e68cbf50d56983873656d8e3428cb3ffaa09cafc9cbc8e545d72bf9dfb61e64a06bdc41c3f50011c4c488017efe33afe9fa1d634aae6e9151c45a7d3971c60db SHA512 081199413c41e545d23704091760c4a10b8dcdb21d9d0e6add1e549fa33bdd988490034767e08dee681eee6d06899104b8282cafc4578e06a0eabc505325bbdc +EBUILD nemu-2.5.0.ebuild 2018 BLAKE2B b12350da99e1ad6b1b34d5bf5607900d3616cc1e4c0744bae194a5ae2168180e3d55d1ba1a9ac65056b23ec0399f0f69a8ab326fdc43710b942df78e7b2f58c6 SHA512 647c9cad10e46715b60e5de604394c0d0649c066718f19c45da1b74e5d063a3ea5f30ef672e494f78a898728e4b4699e5a9a82a2c0f1cdddbb2b967906044e34 +MISC metadata.xml 636 BLAKE2B a32442a3626e4e92c6ceaae00e05acfaa0c03a2608f1fb05132f230a31dc412c9171e994fcf74e833aeff7ae296e8368eec80f09a598b1ec19ae6f9c23e5a19c SHA512 ae961dc577243f243e680013e929f9e613d28cbda3f02ebe576c2386d16e32f6281c6e1e8476f1a6b1d6706e49e0b0537024a46f9a213a2878a5d8a3af559c8c +-----BEGIN PGP SIGNATURE----- + +iQKTBAEBCAB9FiEEcg3s4uUa4XE72XWQvF3CmYqtKyEFAl+UaFZfFIAAAAAALgAo +aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDcy +MERFQ0UyRTUxQUUxNzEzQkQ5NzU5MEJDNURDMjk5OEFBRDJCMjEACgkQvF3CmYqt +KyE8Qg/+MGJQfMwDuNNf9GrP7BS7ymlIldCUsbLtFTwHHPRStRRLnJyIdPYpRsAM +V+3AvLhbtI6TF310DEKtYqXh9r5grQNqgtQXnCikkN/YB6Bhxaomr5fEX/rs6Qzg +V7t0pdo69/yEhpYMOyXiYdXRmgzSgJfqf6obKsyjz27k2bnsahVufoVrWXbJV9S1 +lcLG4ph7eQQ0fLQv6Ej+D7GXHWo2JaEYmbkTstv4Xw4kHUKdmapWnauZYVjPRjvT +5jy6MucRN+M7mY/CwfqtQGSRhnOIhWMR1nZQYL8WAy5A3Ws3dD0Vt1YIdYfc8ggj +YMOhvAebn/bYh6HFR9ZEV5c4HTrMHX7CrSQDynAj0SG2Bh/+mr+ftOB6xxFUsznJ +w5Iz2vMVCCw2aqVy17RUI0jF3REEpOAyi+zbrYBpEVhXHSc0wOEqsfxruVLW9R1K +PXXCd7lNn+iooeJ3AE37Np5mm0gKBipt6YpEEiKomoxVFyYU7O2tL5eINkYywUBc +KSe1WGWLR3rr/i8+gVSoC7O9aSak5oLBFmP0WWCxRWttOgT+isJwn9ha8AzLxEVc +E4JT8wsyzA85bJCI4LK6Ax40C7fNRajgJOqHC4SeJNvYT3JWsga2Nk/AUAmcWuFp +bosX2IyFfdZ45zDGD4RFlIQ90LS0UkpO7WtFfUPHAkARKGtjWds= +=tygi +-----END PGP SIGNATURE----- diff --git a/app-emulation/app-emulation/nemu/metadata.xml b/app-emulation/app-emulation/nemu/metadata.xml new file mode 100644 index 0000000..4a5bcc1 --- /dev/null +++ b/app-emulation/app-emulation/nemu/metadata.xml @@ -0,0 +1,15 @@ + + + + + holgersson@posteo.de + Nils Freydank + + + Adds support for external VNC client + Adds support for QEMU savevm snapshots (experimental, QEMU must be patched) + Adds Spice protocol support + Adds support for OVA/OVF import + Adds possibility of exporting network map to SVG + + diff --git a/app-emulation/app-emulation/nemu/nemu-2.5.0.ebuild b/app-emulation/app-emulation/nemu/nemu-2.5.0.ebuild new file mode 100644 index 0000000..f9e605c --- /dev/null +++ b/app-emulation/app-emulation/nemu/nemu-2.5.0.ebuild @@ -0,0 +1,76 @@ +# Copyright 2019-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake linux-info + +MY_PV="${PV/_rc/-RC}" + +DESCRIPTION="ncurses interface for QEMU" +HOMEPAGE="https://github.com/nemuTUI/nemu" +SRC_URI="https://github.com/nemuTUI/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="network-map +ovf savevm spice +vnc-client" + +RDEPEND=" + app-emulation/qemu[vnc,virtfs,spice?] + dev-db/sqlite:3= + sys-libs/ncurses:0=[unicode] + virtual/libusb:1 + virtual/libudev:= + network-map? ( media-gfx/graphviz ) + ovf? ( + dev-libs/libxml2:2 + app-arch/libarchive + ) + spice? ( app-emulation/virt-viewer ) + vnc-client? ( net-misc/tigervnc ) +" +DEPEND="${RDEPEND}" +BDEPEND="sys-devel/gettext" +S="${WORKDIR}/$PN-${MY_PV}/" + +pkg_pretend() { + if use kernel_linux; then + if ! linux_config_exists; then + eerror "Unable to check your kernel" + else + CONFIG_CHECK="~VETH ~MACVTAP" + ERROR_VETH="You will need the Virtual ethernet pair device driver compiled" + ERROR_VETH+=" into your kernel or loaded as a module to use the" + ERROR_VETH+=" local network settings feature." + ERROR_MACVTAP="You will also need support for MAC-VLAN based tap driver." + + check_extra_config + fi + fi +} + +src_configure() { + local mycmakeargs=( + -DNM_WITH_NETWORK_MAP=$(usex network-map) + -DNM_WITH_OVF_SUPPORT=$(usex ovf) + -DNM_SAVEVM_SNAPSHOTS=$(usex savevm) + -DNM_WITH_SPICE=$(usex spice) + -DNM_WITH_VNC_CLIENT=$(usex vnc-client) + ) + cmake_src_configure +} + +pkg_postinst() { + elog "For non-root usage execute script:" + elog "/usr/share/nemu/scripts/setup_nemu_nonroot.sh linux " + elog "and add udev rule:" + elog "cp /usr/share/nemu/scripts/42-net-macvtap-perm.rules /etc/udev/rules.d" + elog "Afterwards reboot or reload udev with" + elog "udevadm control --reload-rules && udevadm trigger" + if use savevm; then + elog "" + elog "QEMU must be patched with qemu-qmp-savevm-VERSION.patch" + elog "Get this patch from nEMU repository" + fi +}