summaryrefslogtreecommitdiff
path: root/app-emulation/spice-vdagent/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 20:56:41 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 20:56:41 +0100
commitd87262dd706fec50cd150aab3e93883b6337466d (patch)
tree246b44c33ad7a57550430b0a60fa0df86a3c9e68 /app-emulation/spice-vdagent/files
parent71bc00c87bba1ce31de0dac6c3b7fd1aee6917fc (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'app-emulation/spice-vdagent/files')
-rw-r--r--app-emulation/spice-vdagent/files/spice-vdagent.confd-211
-rw-r--r--app-emulation/spice-vdagent/files/spice-vdagent.initd-360
2 files changed, 0 insertions, 71 deletions
diff --git a/app-emulation/spice-vdagent/files/spice-vdagent.confd-2 b/app-emulation/spice-vdagent/files/spice-vdagent.confd-2
deleted file mode 100644
index 763fdaf886d0..000000000000
--- a/app-emulation/spice-vdagent/files/spice-vdagent.confd-2
+++ /dev/null
@@ -1,11 +0,0 @@
-# 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-3 b/app-emulation/spice-vdagent/files/spice-vdagent.initd-3
deleted file mode 100644
index 255051192b15..000000000000
--- a/app-emulation/spice-vdagent/files/spice-vdagent.initd-3
+++ /dev/null
@@ -1,60 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-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} -a -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 $?
-}