spice-vdagent/spice-vdagent-var_run.patch

44 lines
1.6 KiB
Diff
Raw Normal View History

---
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.16.0/Makefile.am
===================================================================
--- spice-vdagent-0.16.0.orig/Makefile.am
+++ spice-vdagent-0.16.0/Makefile.am
@@ -55,7 +55,6 @@ gdmautostart2dir = $(datadir)/gdm/autost
gdmautostart2_DATA = $(top_srcdir)/data/spice-vdagent.desktop
install-data-local:
- $(mkdir_p) $(DESTDIR)$(localstatedir)/run/spice-vdagentd
if INIT_SCRIPT_RED_HAT
initdir = $(sysconfdir)/rc.d/init.d
Index: spice-vdagent-0.16.0/Makefile.in
===================================================================
--- spice-vdagent-0.16.0.orig/Makefile.in
+++ spice-vdagent-0.16.0/Makefile.in
@@ -1413,7 +1413,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.16.0/data/spice-vdagentd
===================================================================
--- spice-vdagent-0.16.0.orig/data/spice-vdagentd
+++ spice-vdagent-0.16.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: "