diff options
author | Tiziano Müller <dev-zero@gentoo.org> | 2011-05-11 09:02:31 +0000 |
---|---|---|
committer | Tiziano Müller <dev-zero@gentoo.org> | 2011-05-11 09:02:31 +0000 |
commit | 5985fcca5c3bc88a3c208e787addcc75ff8d0cc0 (patch) | |
tree | 289c476472392152f18deaef5f46aa56c85c3d50 /app-emulation/spice-vdagent | |
parent | Clean up old revisions. (diff) | |
download | historical-5985fcca5c3bc88a3c208e787addcc75ff8d0cc0.tar.gz historical-5985fcca5c3bc88a3c208e787addcc75ff8d0cc0.tar.bz2 historical-5985fcca5c3bc88a3c208e787addcc75ff8d0cc0.zip |
Initial commit, ebuild written by me.
Package-Manager: portage-2.1.9.46/cvs/Linux x86_64
Diffstat (limited to 'app-emulation/spice-vdagent')
-rw-r--r-- | app-emulation/spice-vdagent/ChangeLog | 11 | ||||
-rw-r--r-- | app-emulation/spice-vdagent/files/spice-vdagent.confd | 7 | ||||
-rw-r--r-- | app-emulation/spice-vdagent/files/spice-vdagent.initd | 47 | ||||
-rw-r--r-- | app-emulation/spice-vdagent/metadata.xml | 14 | ||||
-rw-r--r-- | app-emulation/spice-vdagent/spice-vdagent-0.8.0.ebuild | 50 |
5 files changed, 129 insertions, 0 deletions
diff --git a/app-emulation/spice-vdagent/ChangeLog b/app-emulation/spice-vdagent/ChangeLog new file mode 100644 index 000000000000..93a23bf47bde --- /dev/null +++ b/app-emulation/spice-vdagent/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for app-emulation/spice-vdagent +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/spice-vdagent/ChangeLog,v 1.1 2011/05/11 09:02:31 dev-zero Exp $ + +*spice-vdagent-0.8.0 (11 May 2011) + + 11 May 2011; Tiziano Müller <dev-zero@gentoo.org> + +spice-vdagent-0.8.0.ebuild, +files/spice-vdagent.confd, + +files/spice-vdagent.initd, +metadata.xml: + Initial commit, ebuild written by me. + 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 000000000000..326f894424d7 --- /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.initd b/app-emulation/spice-vdagent/files/spice-vdagent.initd new file mode 100644 index 000000000000..3d8f71ab00d9 --- /dev/null +++ b/app-emulation/spice-vdagent/files/spice-vdagent.initd @@ -0,0 +1,47 @@ +#!/sbin/runscript +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/spice-vdagent/files/spice-vdagent.initd,v 1.1 2011/05/11 09:02:31 dev-zero Exp $ + +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 + + # 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/metadata.xml b/app-emulation/spice-vdagent/metadata.xml new file mode 100644 index 000000000000..91aa5bfaed72 --- /dev/null +++ b/app-emulation/spice-vdagent/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>no-herd</herd> + <maintainer> + <email>dev-zero@gentoo.org</email> + <name>Tiziano Müller</name> + </maintainer> + <use> + <flag name="consolekit">Use <pkg>sys-auth/consolekit</pkg> to determine the + master vdagentd in case of multiple running vdagentds (highly + recommended)</flag> + </use> +</pkgmetadata> diff --git a/app-emulation/spice-vdagent/spice-vdagent-0.8.0.ebuild b/app-emulation/spice-vdagent/spice-vdagent-0.8.0.ebuild new file mode 100644 index 000000000000..437f8a65c030 --- /dev/null +++ b/app-emulation/spice-vdagent/spice-vdagent-0.8.0.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/spice-vdagent/spice-vdagent-0.8.0.ebuild,v 1.1 2011/05/11 09:02:31 dev-zero Exp $ + +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" + +RDEPEND="x11-libs/libXfixes + x11-libs/libXrandr + x11-libs/libX11 + >=app-emulation/spice-protocol-0.8.0 + consolekit? ( sys-auth/consolekit sys-apps/dbus )" +DEPEND="dev-util/pkgconfig + ${RDEPEND}" + +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." +} |