summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-07-31 04:11:20 +0100
committerSam James <sam@gentoo.org>2021-07-31 23:13:39 +0100
commit8684fd59e701173cab6a220204b6f43097e18faf (patch)
treec366bc2a48306e6a7cea7f194057dcd422e589d0 /net-analyzer
parentapp-admin/puppetserver: [QA] call tmpfiles_process in pkg_postinst (diff)
downloadgentoo-8684fd59e701173cab6a220204b6f43097e18faf.tar.gz
gentoo-8684fd59e701173cab6a220204b6f43097e18faf.tar.bz2
gentoo-8684fd59e701173cab6a220204b6f43097e18faf.zip
net-analyzer/munin: [QA] call tmpfiles_process in pkg_postinst
This is needed to actually apply the tmpfiles configuration we've installed in the ebuild. See tmpfiles.eclass documentation. Revbump because the new tmpfiles inherit adds a new dependency (virtual/tmpfiles). Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/munin/munin-2.0.66-r3.ebuild (renamed from net-analyzer/munin/munin-2.0.66-r2.ebuild)9
-rw-r--r--net-analyzer/munin/munin-2.0.67-r6.ebuild (renamed from net-analyzer/munin/munin-2.0.67-r4.ebuild)9
-rw-r--r--net-analyzer/munin/munin-2.0.67-r7.ebuild (renamed from net-analyzer/munin/munin-2.0.67-r5.ebuild)9
3 files changed, 15 insertions, 12 deletions
diff --git a/net-analyzer/munin/munin-2.0.66-r2.ebuild b/net-analyzer/munin/munin-2.0.66-r3.ebuild
index 7a5621b5deb7..4d6837047b53 100644
--- a/net-analyzer/munin/munin-2.0.66-r2.ebuild
+++ b/net-analyzer/munin/munin-2.0.66-r3.ebuild
@@ -5,7 +5,7 @@ EAPI=7
PATCHSET=1
-inherit java-pkg-opt-2 systemd
+inherit java-pkg-opt-2 systemd tmpfiles
MY_P=${P/_/-}
@@ -131,7 +131,7 @@ src_configure() {
local cgiuser=$(usex apache2 apache munin)
- cat >> "${S}"/Makefile.config <<- EOF
+ cat >> "${S}"/Makefile.config <<- EOF || die
PREFIX=\$(DESTDIR)/usr
CONFDIR=\$(DESTDIR)/etc/munin
DOCDIR=${T}/useless/doc
@@ -204,8 +204,7 @@ src_install() {
newinitd "${FILESDIR}"/munin-asyncd.init.2 munin-asyncd
- dodir /usr/lib/tmpfiles.d
- cat > "${D}"/usr/lib/tmpfiles.d/${CATEGORY}:${PN}:${SLOT}.conf <<- EOF
+ newtmpfiles - ${CATEGORY}:${PN}:${SLOT}.conf <<-EOF || die
d /run/munin 0700 munin munin - -
EOF
@@ -374,6 +373,8 @@ pkg_config() {
}
pkg_postinst() {
+ tmpfiles_process ${CATEGORY}:${PN}:${SLOT}.conf
+
elog "Please follow the munin documentation to set up the plugins you"
elog "need, afterwards start munin-node."
elog ""
diff --git a/net-analyzer/munin/munin-2.0.67-r4.ebuild b/net-analyzer/munin/munin-2.0.67-r6.ebuild
index 9f666d4ad680..b4ad2481fd45 100644
--- a/net-analyzer/munin/munin-2.0.67-r4.ebuild
+++ b/net-analyzer/munin/munin-2.0.67-r6.ebuild
@@ -5,7 +5,7 @@ EAPI=7
PATCHSET=1
-inherit java-pkg-opt-2 systemd
+inherit java-pkg-opt-2 systemd tmpfiles
MY_P=${P/_/-}
@@ -131,7 +131,7 @@ src_configure() {
local cgiuser=$(usex apache2 apache munin)
- cat >> "${S}"/Makefile.config <<- EOF
+ cat >> "${S}"/Makefile.config <<- EOF || die
PREFIX=\$(DESTDIR)/usr
CONFDIR=\$(DESTDIR)/etc/munin
DOCDIR=${T}/useless/doc
@@ -204,8 +204,7 @@ src_install() {
newinitd "${FILESDIR}"/munin-asyncd.init.2 munin-asyncd
- dodir /usr/lib/tmpfiles.d
- cat > "${D}"/usr/lib/tmpfiles.d/${CATEGORY}:${PN}:${SLOT}.conf <<- EOF
+ newtmpfiles - ${CATEGORY}:${PN}:${SLOT}.conf <<-EOF || die
d /run/munin 0700 munin munin - -
EOF
@@ -374,6 +373,8 @@ pkg_config() {
}
pkg_postinst() {
+ tmpfiles_process ${CATEGORY}:${PN}:${SLOT}.conf
+
elog "Please follow the munin documentation to set up the plugins you"
elog "need, afterwards start munin-node."
elog ""
diff --git a/net-analyzer/munin/munin-2.0.67-r5.ebuild b/net-analyzer/munin/munin-2.0.67-r7.ebuild
index a0ed5615dc54..00a940ba1b5f 100644
--- a/net-analyzer/munin/munin-2.0.67-r5.ebuild
+++ b/net-analyzer/munin/munin-2.0.67-r7.ebuild
@@ -5,7 +5,7 @@ EAPI=7
PATCHSET=1
-inherit java-pkg-opt-2 systemd
+inherit java-pkg-opt-2 systemd tmpfiles
MY_P=${P/_/-}
@@ -131,7 +131,7 @@ src_configure() {
local cgiuser=$(usex apache2 apache munin)
- cat >> "${S}"/Makefile.config <<- EOF
+ cat >> "${S}"/Makefile.config <<- EOF || die
PREFIX=\$(DESTDIR)/usr
CONFDIR=\$(DESTDIR)/etc/munin
DOCDIR=${T}/useless/doc
@@ -204,8 +204,7 @@ src_install() {
newinitd "${FILESDIR}"/munin-asyncd.init.2 munin-asyncd
- dodir /usr/lib/tmpfiles.d
- cat > "${D}"/usr/lib/tmpfiles.d/${CATEGORY}:${PN}:${SLOT}.conf <<- EOF
+ newtmpfiles - ${CATEGORY}:${PN}:${SLOT}.conf <<-EOF || die
d /run/munin 0700 munin munin - -
EOF
@@ -372,6 +371,8 @@ pkg_config() {
}
pkg_postinst() {
+ tmpfiles_process ${CATEGORY}:${PN}:${SLOT}.conf
+
elog "Please follow the munin documentation to set up the plugins you"
elog "need, afterwards start munin-node."
elog ""