Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/chrony/
Date: Mon, 31 Oct 2022 00:44:04
Message-Id: 1667177033.29e659f9fb78507ef224335b67cf4a2c5b9382b9.sam@gentoo
1 commit: 29e659f9fb78507ef224335b67cf4a2c5b9382b9
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 30 23:16:44 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 31 00:43:53 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29e659f9
7
8 net-misc/chrony: fowners/fperms tweak
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 net-misc/chrony/chrony-4.3.ebuild | 6 +++---
13 net-misc/chrony/chrony-9999.ebuild | 6 +++---
14 2 files changed, 6 insertions(+), 6 deletions(-)
15
16 diff --git a/net-misc/chrony/chrony-4.3.ebuild b/net-misc/chrony/chrony-4.3.ebuild
17 index c52e4bdbf30f..f8e842d67fb0 100644
18 --- a/net-misc/chrony/chrony-4.3.ebuild
19 +++ b/net-misc/chrony/chrony-4.3.ebuild
20 @@ -178,8 +178,8 @@ src_install() {
21 # Prepare a directory for the chrony.drift file (a la ntpsec)
22 # Ensures the environment is sane on new installs
23 # bug #711058
24 - fowners ntp:ntp /var/{lib,log}/chrony
25 - fperms 770 /var/lib/chrony
26 + fowners -R ntp:ntp /var/{lib,log}/chrony
27 + fperms -R 770 /var/lib/chrony
28 fi
29
30 insinto /etc/logrotate.d
31 @@ -243,7 +243,7 @@ pkg_postinst() {
32
33 if [[ ${show_seccomp_enable_msg} -eq 1 ]] ; then
34 elog "To enable seccomp in a stricter mode, please modify:"
35 - elog "- /etc/conf.d/chronyd for OpenRC"
36 + elog "- ${EROOT}/etc/conf.d/chronyd for OpenRC"
37 elog "- systemctl edit chronyd for systemd"
38 elog "to use -F 1 or -F -1 instead of -F 2 (see man chronyd)"
39 elog "By default, we now use -F 2 which is a baseline/minimal filter."
40
41 diff --git a/net-misc/chrony/chrony-9999.ebuild b/net-misc/chrony/chrony-9999.ebuild
42 index c52e4bdbf30f..f8e842d67fb0 100644
43 --- a/net-misc/chrony/chrony-9999.ebuild
44 +++ b/net-misc/chrony/chrony-9999.ebuild
45 @@ -178,8 +178,8 @@ src_install() {
46 # Prepare a directory for the chrony.drift file (a la ntpsec)
47 # Ensures the environment is sane on new installs
48 # bug #711058
49 - fowners ntp:ntp /var/{lib,log}/chrony
50 - fperms 770 /var/lib/chrony
51 + fowners -R ntp:ntp /var/{lib,log}/chrony
52 + fperms -R 770 /var/lib/chrony
53 fi
54
55 insinto /etc/logrotate.d
56 @@ -243,7 +243,7 @@ pkg_postinst() {
57
58 if [[ ${show_seccomp_enable_msg} -eq 1 ]] ; then
59 elog "To enable seccomp in a stricter mode, please modify:"
60 - elog "- /etc/conf.d/chronyd for OpenRC"
61 + elog "- ${EROOT}/etc/conf.d/chronyd for OpenRC"
62 elog "- systemctl edit chronyd for systemd"
63 elog "to use -F 1 or -F -1 instead of -F 2 (see man chronyd)"
64 elog "By default, we now use -F 2 which is a baseline/minimal filter."