From 56bd759df1d0c750a065b8c845e93d5dfa6b549d Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Sat, 8 Aug 2015 13:49:04 -0700 Subject: proj/gentoo: Initial commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson X-Thanks: Alec Warner - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring - wrote much python to improve cvs2svn X-Thanks: Rich Freeman - validation scripts X-Thanks: Patrick Lauer - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed --- app-emulation/spice-vdagent/Manifest | 3 ++ .../spice-vdagent/files/spice-vdagent.confd | 7 +++ .../spice-vdagent/files/spice-vdagent.confd-2 | 11 ++++ .../spice-vdagent/files/spice-vdagent.initd | 50 ++++++++++++++++++ .../spice-vdagent/files/spice-vdagent.initd-2 | 61 ++++++++++++++++++++++ app-emulation/spice-vdagent/metadata.xml | 14 +++++ .../spice-vdagent/spice-vdagent-0.10.1.ebuild | 54 +++++++++++++++++++ .../spice-vdagent/spice-vdagent-0.12.0.ebuild | 54 +++++++++++++++++++ .../spice-vdagent/spice-vdagent-0.8.1-r1.ebuild | 52 ++++++++++++++++++ 9 files changed, 306 insertions(+) create mode 100644 app-emulation/spice-vdagent/Manifest create mode 100644 app-emulation/spice-vdagent/files/spice-vdagent.confd create mode 100644 app-emulation/spice-vdagent/files/spice-vdagent.confd-2 create mode 100644 app-emulation/spice-vdagent/files/spice-vdagent.initd create mode 100644 app-emulation/spice-vdagent/files/spice-vdagent.initd-2 create mode 100644 app-emulation/spice-vdagent/metadata.xml create mode 100644 app-emulation/spice-vdagent/spice-vdagent-0.10.1.ebuild create mode 100644 app-emulation/spice-vdagent/spice-vdagent-0.12.0.ebuild create mode 100644 app-emulation/spice-vdagent/spice-vdagent-0.8.1-r1.ebuild (limited to 'app-emulation/spice-vdagent') diff --git a/app-emulation/spice-vdagent/Manifest b/app-emulation/spice-vdagent/Manifest new file mode 100644 index 00000000000..a89f6379b26 --- /dev/null +++ b/app-emulation/spice-vdagent/Manifest @@ -0,0 +1,3 @@ +DIST spice-vdagent-0.10.1.tar.bz2 107250 SHA256 cea0db6f2def79a96876d0921f2a6234875797c68a8143d24cf9af8cc01361db SHA512 b7a42af7fd1d15dcfd618be34b99c73fa2d07105e37236a5a8c2a0b70d7d112de9e99200257ae746f60de583735681ce7c1437445921f6b8a877c7a9b2083afe WHIRLPOOL 83f3f6b2501966a0a5b053547759fd8a131d3e6a795f008c21f0a11794fd6ae7e30800328189e4dead11c19ae2a0a08a35ff192011622ca2fa8eac204711d035 +DIST spice-vdagent-0.12.0.tar.bz2 114252 SHA256 e0bee1985c2c31ccc44043ed6735304078e09e14c4f805962cf8c288fa205659 SHA512 42c98a3cc3167884203d4d0a31562668be3df10c89eca2a9257c6de1f787b7db77f0648013f307554eb09c0bf3f0cddc8632f050c4018aef544b9c22a02b2dfe WHIRLPOOL 3e00f0ac9ca66a2c6fec4307d4b6eea51fc4a266e72e6d5764e8f3fb01ab407440cabe20ee1db4d9703e5bda5d66616f71a8baa1d8d6610b0e1c75a67b3affae +DIST spice-vdagent-0.8.1.tar.bz2 98437 SHA256 99ec232805a6201da78d409e6f874ff0aa6bb25e7ffe623aa77752539ae7d7ff SHA512 45c2b94dc66dd2061b57cfe90d7b900fd095fa067c6bca560ecc300979953e8c37b63e8cbdb4683275a1cc084512aa97e1125bbb17e39a6966387e4f1be2c178 WHIRLPOOL 1cfeabc97f4c1fd9e42a9ad849916f04d9f4f640a586158c3d8b2ab3b9449f6e1cf8acba196a9e684a1499404747971fa82ad922bd50e87c257526d67468a85f diff --git a/app-emulation/spice-vdagent/files/spice-vdagent.confd b/app-emulation/spice-vdagent/files/spice-vdagent.confd new file mode 100644 index 00000000000..326f894424d --- /dev/null +++ b/app-emulation/spice-vdagent/files/spice-vdagent.confd @@ -0,0 +1,7 @@ + +# The virtual communication port provided by the hypervisor/vm +PORT="/dev/virtio-ports/com.redhat.spice.0" + +# extra arguments for spice-vdagentd +SPICE_VDAGENT_ARGS="" + diff --git a/app-emulation/spice-vdagent/files/spice-vdagent.confd-2 b/app-emulation/spice-vdagent/files/spice-vdagent.confd-2 new file mode 100644 index 00000000000..763fdaf886d --- /dev/null +++ b/app-emulation/spice-vdagent/files/spice-vdagent.confd-2 @@ -0,0 +1,11 @@ +# The virtual communication port provided by the hypervisor/vm +# Default: /dev/virtio-ports/com.redhat.spice.0 +#PORT="/dev/virtio-ports/com.redhat.spice.0" + +# Userspace Input Device +# Default: /dev/uinput or /dev/input/uinput +#DEVICE="" + +# Extra arguments for spice-vdagentd +# Default: none +#SPICE_VDAGENT_ARGS="" diff --git a/app-emulation/spice-vdagent/files/spice-vdagent.initd b/app-emulation/spice-vdagent/files/spice-vdagent.initd new file mode 100644 index 00000000000..68a64fb8b05 --- /dev/null +++ b/app-emulation/spice-vdagent/files/spice-vdagent.initd @@ -0,0 +1,50 @@ +#!/sbin/runscript +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + after dbus +} + +PIDFILE="/var/run/spice-vdagentd/spice-vdagentd.pid" + +start() { + ebegin "Checking for required modules and devices" + + if [[ ! -d /sys/module/uinput ]] ; then + eerror "Module 'uinput' not loaded or not enabled in the kernel" + eend 1 + return 1 + fi + + if [[ ! -c "${PORT}" ]] ; then + eerror "Required virtio port does not exist. Make sure you" + eerror "started the virtual machine with appropriate parameters." + eend 1 + return 1 + fi + eend 0 + + # recreate the directory since /var/run may reside on a ramdisk + mkdir -p /var/run/spice-vdagentd + + # cleanup stalled socket + rm -f /var/run/spice-vdagentd/spice-vdagent-sock + + ebegin "Starting spice VD agent daemon" + start-stop-daemon \ + --start \ + --pidfile "${PIDFILE}" \ + --exec /usr/sbin/spice-vdagentd \ + -- ${SPICE_VDAGENT_ARGS} + eend $? +} + +stop() { + ebegin "Stopping spice VD agent daemon" + start-stop-daemon \ + --stop \ + --pidfile "${PIDFILE}" + eend $? +} diff --git a/app-emulation/spice-vdagent/files/spice-vdagent.initd-2 b/app-emulation/spice-vdagent/files/spice-vdagent.initd-2 new file mode 100644 index 00000000000..a394a851125 --- /dev/null +++ b/app-emulation/spice-vdagent/files/spice-vdagent.initd-2 @@ -0,0 +1,61 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + after dbus +} + +PIDFILE="/var/run/spice-vdagentd/spice-vdagentd.pid" + +start() { + PORT="${PORT:-/dev/virtio-ports/com.redhat.spice.0}" + DEVICE="${DEVICE:-/dev/uinput}" + + ebegin "Checking for required modules and devices" + + if [[ ! -d /sys/module/uinput ]]; then + modprobe -q uinput + fi + + if [[ ! -d /sys/module/uinput ]]; then + eerror "Module 'uinput' not loaded or not enabled in the kernel" + eend 1 + return 1 + fi + + if [[ ! -c "${PORT}" ]] ; then + eerror "Required virtio port does not exist. Make sure you" + eerror "started the virtual machine with appropriate parameters." + eend 1 + return 1 + fi + eend 0 + + if [[ ! -c ${DEVICE} && -c /dev/input/uinput ]]; then + DEVICE=/dev/input/uinput + fi + + # recreate the directory since /var/run may reside on a ramdisk + mkdir -p /var/run/spice-vdagentd + + # cleanup stalled socket + rm -f /var/run/spice-vdagentd/spice-vdagent-sock + + ebegin "Starting spice VD agent daemon" + start-stop-daemon \ + --start \ + --pidfile "${PIDFILE}" \ + --exec /usr/sbin/spice-vdagentd \ + -- -u "${DEVICE}" ${SPICE_VDAGENT_ARGS} + eend $? +} + +stop() { + ebegin "Stopping spice VD agent daemon" + start-stop-daemon \ + --stop \ + --pidfile "${PIDFILE}" + eend $? +} diff --git a/app-emulation/spice-vdagent/metadata.xml b/app-emulation/spice-vdagent/metadata.xml new file mode 100644 index 00000000000..7b4cb96eca6 --- /dev/null +++ b/app-emulation/spice-vdagent/metadata.xml @@ -0,0 +1,14 @@ + + + + virtualization + + dev-zero@gentoo.org + Tiziano Müller + + + Use sys-auth/consolekit to determine the + master vdagentd in case of multiple running vdagentds (highly + recommended) + + diff --git a/app-emulation/spice-vdagent/spice-vdagent-0.10.1.ebuild b/app-emulation/spice-vdagent/spice-vdagent-0.10.1.ebuild new file mode 100644 index 00000000000..ec72d1262b3 --- /dev/null +++ b/app-emulation/spice-vdagent/spice-vdagent-0.10.1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit linux-info + +DESCRIPTION="SPICE VD Linux Guest Agent" +HOMEPAGE="http://spice-space.org/" +SRC_URI="http://spice-space.org/download/releases/${P}.tar.bz2" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+consolekit selinux" + +CDEPEND="x11-libs/libXfixes + x11-libs/libXrandr + x11-libs/libX11 + x11-libs/libXinerama + >=x11-libs/libpciaccess-0.10 + >=app-emulation/spice-protocol-0.10.1 + consolekit? ( sys-auth/consolekit sys-apps/dbus )" +DEPEND="virtual/pkgconfig + ${CDEPEND}" +RDEPEND="${CDEPEND} + selinux? ( sec-policy/selinux-vdagent )" + +CONFIG_CHECK="~INPUT_UINPUT ~VIRTIO_CONSOLE" +ERROR_INPUT_UINPUT="User level input support is required" +ERROR_VIRTIO_CONSOLE="VirtIO console/serial device support is required" + +src_configure() { + local opt= + + use consolekit && opt="${opt} --with-session-info=console-kit" + + econf \ + --localstatedir=/var \ + ${opt} +} + +src_install() { + default + + rm -rf "${D}"/etc/{rc,tmpfiles}.d + + keepdir /var/run/spice-vdagentd + keepdir /var/log/spice-vdagentd + + newinitd "${FILESDIR}/${PN}.initd-2" "${PN}" + newconfd "${FILESDIR}/${PN}.confd-2" "${PN}" +} diff --git a/app-emulation/spice-vdagent/spice-vdagent-0.12.0.ebuild b/app-emulation/spice-vdagent/spice-vdagent-0.12.0.ebuild new file mode 100644 index 00000000000..ec72d1262b3 --- /dev/null +++ b/app-emulation/spice-vdagent/spice-vdagent-0.12.0.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit linux-info + +DESCRIPTION="SPICE VD Linux Guest Agent" +HOMEPAGE="http://spice-space.org/" +SRC_URI="http://spice-space.org/download/releases/${P}.tar.bz2" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+consolekit selinux" + +CDEPEND="x11-libs/libXfixes + x11-libs/libXrandr + x11-libs/libX11 + x11-libs/libXinerama + >=x11-libs/libpciaccess-0.10 + >=app-emulation/spice-protocol-0.10.1 + consolekit? ( sys-auth/consolekit sys-apps/dbus )" +DEPEND="virtual/pkgconfig + ${CDEPEND}" +RDEPEND="${CDEPEND} + selinux? ( sec-policy/selinux-vdagent )" + +CONFIG_CHECK="~INPUT_UINPUT ~VIRTIO_CONSOLE" +ERROR_INPUT_UINPUT="User level input support is required" +ERROR_VIRTIO_CONSOLE="VirtIO console/serial device support is required" + +src_configure() { + local opt= + + use consolekit && opt="${opt} --with-session-info=console-kit" + + econf \ + --localstatedir=/var \ + ${opt} +} + +src_install() { + default + + rm -rf "${D}"/etc/{rc,tmpfiles}.d + + keepdir /var/run/spice-vdagentd + keepdir /var/log/spice-vdagentd + + newinitd "${FILESDIR}/${PN}.initd-2" "${PN}" + newconfd "${FILESDIR}/${PN}.confd-2" "${PN}" +} diff --git a/app-emulation/spice-vdagent/spice-vdagent-0.8.1-r1.ebuild b/app-emulation/spice-vdagent/spice-vdagent-0.8.1-r1.ebuild new file mode 100644 index 00000000000..231b56cac8a --- /dev/null +++ b/app-emulation/spice-vdagent/spice-vdagent-0.8.1-r1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit linux-info + +DESCRIPTION="SPICE VD Linux Guest Agent" +HOMEPAGE="http://spice-space.org/" +SRC_URI="http://spice-space.org/download/releases/${P}.tar.bz2" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64" +IUSE="+consolekit selinux" + +CDEPEND="x11-libs/libXfixes + x11-libs/libXrandr + x11-libs/libX11 + >=app-emulation/spice-protocol-0.8.1 + consolekit? ( sys-auth/consolekit sys-apps/dbus )" +DEPEND="virtual/pkgconfig + ${CDEPEND}" +RDEPEND="${CDEPEND} + selinux? ( sec-policy/selinux-vdagent )" + +CONFIG_CHECK="~INPUT_UINPUT" +ERROR_INPUT_UINPUT="User level driver support is required to run the spice-vdagent daemon" + +src_configure() { + econf \ + --localstatedir=/var \ + $(use_enable consolekit console-kit) +} + +src_install() { + default + + rm -rf "${D}"/etc/{rc,tmpfiles}.d + + keepdir /var/run/spice-vdagentd + keepdir /var/log/spice-vdagentd + + newinitd "${FILESDIR}/${PN}.initd" "${PN}" + newconfd "${FILESDIR}/${PN}.confd" "${PN}" +} + +pkg_postinst() { + elog "Make sure that the User level driver support kernel module 'uinput' is loaded" + elog "if built as a module before starting the vdagent daemon." +} -- cgit v1.2.1