1 |
commit: bd2061f5fbd1f1f5490201fe04d965396750ca24 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jul 30 22:56:32 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jul 30 23:30:02 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd2061f5 |
7 |
|
8 |
net-dns/pdnsd: [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 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
14 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
15 |
|
16 |
net-dns/pdnsd/pdnsd-1.2.9a-r2.ebuild | 11 +---------- |
17 |
1 file changed, 1 insertion(+), 10 deletions(-) |
18 |
|
19 |
diff --git a/net-dns/pdnsd/pdnsd-1.2.9a-r2.ebuild b/net-dns/pdnsd/pdnsd-1.2.9a-r2.ebuild |
20 |
index 8769b15cfd5..209fff4708a 100644 |
21 |
--- a/net-dns/pdnsd/pdnsd-1.2.9a-r2.ebuild |
22 |
+++ b/net-dns/pdnsd/pdnsd-1.2.9a-r2.ebuild |
23 |
@@ -94,14 +94,5 @@ pkg_postinst() { |
24 |
elog "" |
25 |
elog "Sample config file in /etc/pdnsd/pdnsd.conf.sample" |
26 |
|
27 |
- # The tmpfiles.d configuration does not come into effect before the |
28 |
- # next reboot so create the cachedir now. |
29 |
- local cachedir="${EPREFIX}/var/cache/pdnsd" |
30 |
- if [[ ! -d "${cachedir}" ]] ; then |
31 |
- mkdir "${cachedir}" || eerror "Failed to create cache" |
32 |
- fi |
33 |
- chown pdnsd:pdnsd "${cachedir}" \ |
34 |
- || eerror "Failed to set ownership for cachedir" |
35 |
- chmod 0750 "${cachedir}" \ |
36 |
- || eerror "Failed to set permissions for cachedir" |
37 |
+ tmpfiles_process pdnsd.conf |
38 |
} |