spice-vdagent/spice-vdagent-var_run.patch

44 lines
1.6 KiB
Diff

---
Makefile.am | 1 -
Makefile.in | 1 -
data/spice-vdagentd | 1 +
data/spice-vdagentd.service | 1 +
4 files changed, 2 insertions(+), 2 deletions(-)
Index: spice-vdagent-0.15.0/Makefile.am
===================================================================
--- spice-vdagent-0.15.0.orig/Makefile.am
+++ spice-vdagent-0.15.0/Makefile.am
@@ -46,7 +46,6 @@ gdmautostartdir = $(datadir)/gdm/autosta
gdmautostart_DATA = $(top_srcdir)/data/spice-vdagent.desktop
install-data-local:
- $(mkdir_p) $(DESTDIR)$(localstatedir)/run/spice-vdagentd
rsyslogdir = $(sysconfdir)/rsyslog.d
rsyslog_DATA = $(top_srcdir)/data/rsyslog.d/spice-vdagentd.conf
Index: spice-vdagent-0.15.0/Makefile.in
===================================================================
--- spice-vdagent-0.15.0.orig/Makefile.in
+++ spice-vdagent-0.15.0/Makefile.in
@@ -1366,7 +1366,6 @@ uninstall-am: uninstall-binPROGRAMS unin
install-data-local:
- $(mkdir_p) $(DESTDIR)$(localstatedir)/run/spice-vdagentd
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
Index: spice-vdagent-0.15.0/data/spice-vdagentd
===================================================================
--- spice-vdagent-0.15.0.orig/data/spice-vdagentd
+++ spice-vdagent-0.15.0/data/spice-vdagentd
@@ -37,6 +37,7 @@ start() {
[ -x $exec ] || exit 5
[ -c $port ] || exit 0
modprobe uinput > /dev/null 2>&1
+ mkdir -p /var/run/spice-vdagentd
# In case the previous running vdagentd crashed
rm -f /var/run/spice-vdagentd/spice-vdagent-sock
echo -n $"Starting $prog: "