commit:     fbe8861b0c541ee7fabc1c196d414450906575a6
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 20 04:05:09 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Nov 20 04:05:25 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fbe8861b
sys-auth/munge: restore tmpfiles

Upstream dropped it apart from for CentOS 7, but let's keep it
as it's easier than trying to handle in init scripts.

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

 sys-auth/munge/files/munged.tmpfiles.conf | 1 +
 sys-auth/munge/munge-0.5.15.ebuild        | 4 +++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/sys-auth/munge/files/munged.tmpfiles.conf 
b/sys-auth/munge/files/munged.tmpfiles.conf
new file mode 100644
index 000000000000..2f82354844f3
--- /dev/null
+++ b/sys-auth/munge/files/munged.tmpfiles.conf
@@ -0,0 +1 @@
+d /run/munge 0755 munge munge -

diff --git a/sys-auth/munge/munge-0.5.15.ebuild 
b/sys-auth/munge/munge-0.5.15.ebuild
index 475278514dd8..885f7c485398 100644
--- a/sys-auth/munge/munge-0.5.15.ebuild
+++ b/sys-auth/munge/munge-0.5.15.ebuild
@@ -78,11 +78,13 @@ src_install() {
        newconfd "$(prefixify_ro "${FILESDIR}"/${PN}d.confd)" ${PN}d
        newinitd "$(prefixify_ro "${FILESDIR}"/${PN}d.initd)" ${PN}d
 
+       newtmpfiles "${FILESDIR}"/munged.tmpfiles.conf munged.conf
+
        if ! use static-libs; then
                find "${ED}" -name '*.la' -delete || die
        fi
 }
 
 pkg_postinst() {
-       tmpfiles_process munge.conf
+       tmpfiles_process munged.conf
 }

Reply via email to