commit:     178c7aede770d6b04ab608fd2d36fd6e0cc27f10
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Jun  7 09:20:04 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Jun  7 09:20:07 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=178c7aed

sys-cluster/resource-agents: fix tmpfiles for non-systemd

Not keen on fixing the automagic myself given I don't use this and
already spent too much time on it.

Closes: https://bugs.gentoo.org/907987
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-cluster/resource-agents/resource-agents-4.12.0.ebuild | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/sys-cluster/resource-agents/resource-agents-4.12.0.ebuild 
b/sys-cluster/resource-agents/resource-agents-4.12.0.ebuild
index 075cef801923..8f4b33b8fea5 100644
--- a/sys-cluster/resource-agents/resource-agents-4.12.0.ebuild
+++ b/sys-cluster/resource-agents/resource-agents-4.12.0.ebuild
@@ -40,6 +40,7 @@ src_prepare() {
 }
 
 src_configure() {
+       # TODO: fix systemd automagic
        # --with-ocf-root needs to be /usr/lib, see bug #720420
        econf \
                --disable-fatal-warnings \
@@ -58,6 +59,12 @@ src_install() {
        rm -rf "${ED}"{,/var}/run || die
 
        use rgmanager || rm -rf "${ED}"/usr/share/cluster/ "${ED}"/var/
+
+       if ! use systemd ; then
+               newtmpfiles - resource-agents.conf <<-EOF || die
+               d /var/run/resource-agents 1755 root root
+               EOF
+       fi
 }
 
 pkg_postinst() {

Reply via email to