Blame SOURCES/bz1631291-systemd-tmpfiles-configurable-path.patch

05afe3
From c70924b69af760ec3762b01594afb6ff82c3820c Mon Sep 17 00:00:00 2001
05afe3
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
05afe3
Date: Wed, 19 Sep 2018 16:13:43 +0200
05afe3
Subject: [PATCH] systemd-tmpfiles: configure path with --with-rsctmpdir
05afe3
05afe3
---
05afe3
 configure.ac                    | 3 ++-
05afe3
 systemd/resource-agents.conf    | 1 -
05afe3
 systemd/resource-agents.conf.in | 1 +
05afe3
 3 files changed, 3 insertions(+), 2 deletions(-)
05afe3
 delete mode 100644 systemd/resource-agents.conf
05afe3
 create mode 100644 systemd/resource-agents.conf.in
05afe3
05afe3
diff --git a/configure.ac b/configure.ac
05afe3
index b7ffb99f3..e34d125e9 100644
05afe3
--- a/configure.ac
05afe3
+++ b/configure.ac
05afe3
@@ -431,7 +431,7 @@ AC_SUBST(HA_VARRUNDIR)
05afe3
 
05afe3
 # Expand $prefix
05afe3
 eval HA_RSCTMPDIR="`eval echo ${HA_RSCTMPDIR}`"
05afe3
-AC_DEFINE_UNQUOTED(HA_RSCTMPDIR,"$HA_RSCTMPDIR", Where Resouce agents keep state files)
05afe3
+AC_DEFINE_UNQUOTED(HA_RSCTMPDIR,"$HA_RSCTMPDIR", Where Resource agents keep state files)
05afe3
 AC_SUBST(HA_RSCTMPDIR)
05afe3
 
05afe3
 dnl Eventually move out of the heartbeat dir tree and create symlinks when needed
05afe3
@@ -911,6 +911,7 @@ heartbeat/Makefile						\
05afe3
    heartbeat/ocf-shellfuncs					\
05afe3
    heartbeat/shellfuncs						\
05afe3
 systemd/Makefile						\
05afe3
+   systemd/resource-agents.conf					\
05afe3
 tools/Makefile							\
05afe3
    tools/ocf-tester						\
05afe3
    tools/ocft/Makefile						\
05afe3
diff --git a/systemd/resource-agents.conf b/systemd/resource-agents.conf
05afe3
deleted file mode 100644
05afe3
index 1cb129c18..000000000
05afe3
--- a/systemd/resource-agents.conf
05afe3
+++ /dev/null
05afe3
@@ -1 +0,0 @@
05afe3
-d /var/run/resource-agents/ 1755 root root
05afe3
diff --git a/systemd/resource-agents.conf.in b/systemd/resource-agents.conf.in
05afe3
new file mode 100644
05afe3
index 000000000..7bd157ec0
05afe3
--- /dev/null
05afe3
+++ b/systemd/resource-agents.conf.in
05afe3
@@ -0,0 +1 @@
05afe3
+d @HA_RSCTMPDIR@ 1755 root root