app-backup/bareos: [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>
This commit is contained in:
Sam James 2021-07-31 04:13:12 +01:00
parent 8684fd59e7
commit 54e4cb4b94
No known key found for this signature in database
GPG Key ID: F4922810EEA0483B
1 changed files with 4 additions and 3 deletions

View File

@ -7,7 +7,7 @@ PYTHON_COMPAT=( python3_{7,8,9} )
CMAKE_WARN_UNUSED_CLI=no
#CMAKE_REMOVE_MODULES=yes
inherit python-any-r1 systemd cmake
inherit python-any-r1 systemd cmake tmpfiles
DESCRIPTION="Featureful client/server network backup suite"
HOMEPAGE="https://www.bareos.org/"
@ -330,14 +330,15 @@ src_install() {
diropts -m0755
keepdir /var/log/bareos
insinto /usr/lib/tmpfiles.d
newins "${FILESDIR}"/tmpfiles.d-bareos.conf bareos.conf
newtmpfiles "${FILESDIR}"/tmpfiles.d-bareos.conf bareos.conf
# make sure bareos group can execute bareos libexec scripts
fowners -R root:bareos /usr/libexec/bareos
}
pkg_postinst() {
tmpfiles_process bareos.conf
if use clientonly; then
fowners root:bareos /var/lib/bareos
else