Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-backup/bareos/
Date: Sat, 31 Jul 2021 22:17:30
Message-Id: 1627769620.54e4cb4b94f7ede4f3bbe5e159bae3b556c9275f.sam@gentoo
1 commit: 54e4cb4b94f7ede4f3bbe5e159bae3b556c9275f
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jul 31 03:13:12 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 31 22:13:40 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54e4cb4b
7
8 app-backup/bareos: [QA] call tmpfiles_process in pkg_postinst
9
10 This is needed to actually apply the tmpfiles configuration
11 we've installed in the ebuild. See tmpfiles.eclass documentation.
12
13 Revbump because the new tmpfiles inherit adds a new dependency
14 (virtual/tmpfiles).
15
16 Signed-off-by: Sam James <sam <AT> gentoo.org>
17
18 .../bareos/{bareos-19.2.9.ebuild => bareos-19.2.9-r1.ebuild} | 7 ++++---
19 1 file changed, 4 insertions(+), 3 deletions(-)
20
21 diff --git a/app-backup/bareos/bareos-19.2.9.ebuild b/app-backup/bareos/bareos-19.2.9-r1.ebuild
22 similarity index 98%
23 rename from app-backup/bareos/bareos-19.2.9.ebuild
24 rename to app-backup/bareos/bareos-19.2.9-r1.ebuild
25 index e2d48fb2396..1c9bdced2c6 100644
26 --- a/app-backup/bareos/bareos-19.2.9.ebuild
27 +++ b/app-backup/bareos/bareos-19.2.9-r1.ebuild
28 @@ -7,7 +7,7 @@ PYTHON_COMPAT=( python3_{7,8,9} )
29 CMAKE_WARN_UNUSED_CLI=no
30 #CMAKE_REMOVE_MODULES=yes
31
32 -inherit python-any-r1 systemd cmake
33 +inherit python-any-r1 systemd cmake tmpfiles
34
35 DESCRIPTION="Featureful client/server network backup suite"
36 HOMEPAGE="https://www.bareos.org/"
37 @@ -330,14 +330,15 @@ src_install() {
38 diropts -m0755
39 keepdir /var/log/bareos
40
41 - insinto /usr/lib/tmpfiles.d
42 - newins "${FILESDIR}"/tmpfiles.d-bareos.conf bareos.conf
43 + newtmpfiles "${FILESDIR}"/tmpfiles.d-bareos.conf bareos.conf
44
45 # make sure bareos group can execute bareos libexec scripts
46 fowners -R root:bareos /usr/libexec/bareos
47 }
48
49 pkg_postinst() {
50 + tmpfiles_process bareos.conf
51 +
52 if use clientonly; then
53 fowners root:bareos /var/lib/bareos
54 else