public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/resource-agents/
Date: Wed,  7 Jun 2023 09:20:27 +0000 (UTC)	[thread overview]
Message-ID: <1686129607.178c7aede770d6b04ab608fd2d36fd6e0cc27f10.sam@gentoo> (raw)

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	other threads:[~2023-06-07  9:20 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-07  9:20 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-10-23 16:05 [gentoo-commits] repo/gentoo:master commit in: sys-cluster/resource-agents/ Sam James
2024-10-23 15:56 Sam James
2023-06-07  4:21 Arthur Zamarin
2023-06-07  4:21 Arthur Zamarin
2023-06-07  3:38 Sam James
2022-11-18  2:20 Sam James
2022-09-15 11:31 Sam James
2022-09-15  6:47 Agostino Sarubbo
2021-02-17  9:37 David Seifert
2018-12-04 14:22 Michał Górny
2017-04-25  9:51 Alexys Jacob
2017-01-14 13:42 Jeroen Roovers
2016-11-03 19:24 David Seifert
2016-11-03 12:11 Sergey Popov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1686129607.178c7aede770d6b04ab608fd2d36fd6e0cc27f10.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox