summaryrefslogtreecommitdiff
path: root/net-libs/phodav/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-libs/phodav/files
reinit the tree, so we can have metadata
Diffstat (limited to 'net-libs/phodav/files')
-rw-r--r--net-libs/phodav/files/70-spice-webdavd.rules1
-rw-r--r--net-libs/phodav/files/spice-webdavd.initd16
2 files changed, 17 insertions, 0 deletions
diff --git a/net-libs/phodav/files/70-spice-webdavd.rules b/net-libs/phodav/files/70-spice-webdavd.rules
new file mode 100644
index 000000000000..80c3b02bc933
--- /dev/null
+++ b/net-libs/phodav/files/70-spice-webdavd.rules
@@ -0,0 +1 @@
+ACTION=="add", SUBSYSTEM=="virtio-ports", ENV{DEVLINKS}=="/dev/virtio-ports/org.spice-space.webdav.0", RUN+="/bin/env /etc/init.d/spice-webdavd --quiet start"
diff --git a/net-libs/phodav/files/spice-webdavd.initd b/net-libs/phodav/files/spice-webdavd.initd
new file mode 100644
index 000000000000..938024058f9c
--- /dev/null
+++ b/net-libs/phodav/files/spice-webdavd.initd
@@ -0,0 +1,16 @@
+#!/sbin/openrc-run
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+description="Spice guest utility for file sharing via WebDAV"
+
+command="/usr/sbin/spice-webdavd"
+command_args="--port 9843"
+
+pidfile="/run/${SVCNAME}.pid"
+command_background="yes"
+
+depend() {
+ need dbus
+ use avahi
+}