diff options
Diffstat (limited to 'app-emulation/nemu')
-rw-r--r-- | app-emulation/nemu/Manifest | 4 | ||||
-rw-r--r-- | app-emulation/nemu/metadata.xml | 9 | ||||
-rw-r--r-- | app-emulation/nemu/nemu-3.0.0.ebuild | 81 |
3 files changed, 93 insertions, 1 deletions
diff --git a/app-emulation/nemu/Manifest b/app-emulation/nemu/Manifest index fb3144539344..5c2cac53b07d 100644 --- a/app-emulation/nemu/Manifest +++ b/app-emulation/nemu/Manifest @@ -1,3 +1,5 @@ DIST nemu-2.5.0.tar.gz 108742 BLAKE2B e68cbf50d56983873656d8e3428cb3ffaa09cafc9cbc8e545d72bf9dfb61e64a06bdc41c3f50011c4c488017efe33afe9fa1d634aae6e9151c45a7d3971c60db SHA512 081199413c41e545d23704091760c4a10b8dcdb21d9d0e6add1e549fa33bdd988490034767e08dee681eee6d06899104b8282cafc4578e06a0eabc505325bbdc +DIST nemu-3.0.0.tar.gz 151223 BLAKE2B a71875eb727eed13bc252cee072e1c5b25bf7ea106f51ddddfb8e8bfacf21e030b1c4045de2353d40121b78756b131de1a376891197f6d553430b4b30f53bf3e SHA512 59dae5364659dda5d7c05ba6378b6e20c5d2c5b619cb919c49036918a887574b75f5d568cbfa8f21ecf790778c9de55266f5c5e3e90cc991f613a6408b10a1df EBUILD nemu-2.5.0-r1.ebuild 2128 BLAKE2B 16efbc3dffcf30c86a40164315f4cf4402137751f13d1f679355cd803fcdcc1356244fbd263460f16856ae43b1b3b3e90968233a7dc2e5f705a17c69574e18a3 SHA512 64923f3158df1587ed6752cbf8a463fe0b4ab49037aa720a6a353c7c6653f915d68312db0292dd0eab17a0773a5fb568e40c3ef34c7defd5feac603cc649407c -MISC metadata.xml 639 BLAKE2B 79786abf19a8e801840a953fa42cb50757db0a89c4b6459cc9843861cdab76e48d824322dcfb7336034a94d2903db8bd1dd3a447c42883564bc0fba9ac93d6f5 SHA512 f26ca8c03fc44749aa2c8676033bd8417243e1974582bf9716cedbd7eff18d9492f286bfbe08aeff402e22f1f4fc419d00d5f57877b887ce7bc98a22b7f110b6 +EBUILD nemu-3.0.0.ebuild 2151 BLAKE2B 4d8e172cae31745388ba8ca0cea2f1e58f7e29133d3eabbcdc8fa535d707d38601e1c336d80d4baff331477b3afffcd409b3ec5a9608e7158a719ae51ba3a4c9 SHA512 593413e05654597ac3655c9f2184bf950282a734d7bca9728699af6ab6ff08efce5aa2f4b1d5c59979ef28c4fc6351989f27dfda25cef4ba6851e041a8d36783 +MISC metadata.xml 948 BLAKE2B db97c8f1f0a9f0e37f2e827939a03daef9d0dab3126bfb8c53695774a68169f7bc956373f94507556f5edf10822f27a7921bdb42b4ff3875cff62ee2f22bc92d SHA512 95f626f22309c88b94a94d5a76d4b7137fa94cf754581a9762addce81a857886e01f606d700339a827860872fe4d38d9359dbcbabc6cf0e5e877e661f19509a3 diff --git a/app-emulation/nemu/metadata.xml b/app-emulation/nemu/metadata.xml index 8976af299f5d..1ef2ec858c70 100644 --- a/app-emulation/nemu/metadata.xml +++ b/app-emulation/nemu/metadata.xml @@ -5,11 +5,20 @@ <email>monsieurp@gentoo.org</email> <name>Patrice Clement</name> </maintainer> + <maintainer type="person" proxied="yes"> + <email>mail@void.so</email> + <name>Pavel Balaev</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> <use> <flag name="vnc-client">Adds support for external VNC client</flag> <flag name="savevm">Adds support for QEMU savevm snapshots (experimental, QEMU must be patched)</flag> <flag name="spice">Adds Spice protocol support</flag> <flag name="ovf">Adds support for OVA/OVF import</flag> <flag name="network-map">Adds possibility of exporting network map to SVG</flag> + <flag name="remote-api">Adds API for remote control</flag> </use> </pkgmetadata> diff --git a/app-emulation/nemu/nemu-3.0.0.ebuild b/app-emulation/nemu/nemu-3.0.0.ebuild new file mode 100644 index 000000000000..503a514f8dfa --- /dev/null +++ b/app-emulation/nemu/nemu-3.0.0.ebuild @@ -0,0 +1,81 @@ +# Copyright 2019-2021 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="dbus network-map +ovf spice +vnc-client remote-api" + +RDEPEND=" + >=app-emulation/qemu-6.0.0-r3[vnc,virtfs,spice?] + dev-db/sqlite:3= + dev-libs/json-c + sys-libs/ncurses:=[unicode(+)] + virtual/libusb:1 + virtual/libudev:= + dbus? ( sys-apps/dbus ) + network-map? ( media-gfx/graphviz[svg] ) + ovf? ( + dev-libs/libxml2:2 + app-arch/libarchive:= + ) + remote-api? ( dev-libs/openssl ) + 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() { + # -DNM_WITH_QEMU: Do not embbed qemu. + local mycmakeargs=( + -DNM_WITH_DBUS=$(usex dbus) + -DNM_WITH_NETWORK_MAP=$(usex network-map) + -DNM_WITH_REMOTE=$(usex remote-api) + -DNM_WITH_OVF_SUPPORT=$(usex ovf) + -DNM_WITH_QEMU=off + -DNM_WITH_SPICE=$(usex spice) + -DNM_WITH_VNC_CLIENT=$(usex vnc-client) + ) + cmake_src_configure +} + +src_install() { + cmake_src_install + docompress -x /usr/share/man/man1/nemu.1.gz +} + +pkg_postinst() { + elog "For non-root usage execute script:" + elog "/usr/share/nemu/scripts/setup_nemu_nonroot.sh linux <username>" + 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" +} |