Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/chrony/
Date: Sat, 02 May 2020 10:43:45
Message-Id: 1588416211.7a7c56dde3c36b43b1453af0c5365f866a8db5e4.whissi@gentoo
1 commit: 7a7c56dde3c36b43b1453af0c5365f866a8db5e4
2 Author: Sam James (sam_c) <sam <AT> cmpct <DOT> info>
3 AuthorDate: Sat May 2 10:42:18 2020 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Sat May 2 10:43:31 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a7c56dd
7
8 net-misc/chrony: don't show elog when not needed
9
10 Package-Manager: Portage-2.3.99, Repoman-2.3.22
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 net-misc/chrony/chrony-3.5-r4.ebuild | 2 +-
14 net-misc/chrony/chrony-4.0_pre2-r1.ebuild | 2 +-
15 net-misc/chrony/chrony-9999.ebuild | 2 +-
16 3 files changed, 3 insertions(+), 3 deletions(-)
17
18 diff --git a/net-misc/chrony/chrony-3.5-r4.ebuild b/net-misc/chrony/chrony-3.5-r4.ebuild
19 index a7a99b957db..fa28cf69009 100644
20 --- a/net-misc/chrony/chrony-3.5-r4.ebuild
21 +++ b/net-misc/chrony/chrony-3.5-r4.ebuild
22 @@ -164,7 +164,7 @@ pkg_preinst() {
23 pkg_postinst() {
24 tmpfiles_process chronyd.conf
25
26 - if use caps && ! ${HAD_CAPS}; then
27 + if [[ -n ${REPLACING_VERSIONS} ]] && use caps && ! ${HAD_CAPS}; then
28 ewarn "Please adjust permissions on ${EROOT}/var/{lib,log}/chrony to be owned by ntp:ntp"
29 ewarn "e.g. chown -R ntp:ntp ${EROOT}/var/{lib,log}/chrony"
30 ewarn "This is necessary for chrony to drop privileges"
31
32 diff --git a/net-misc/chrony/chrony-4.0_pre2-r1.ebuild b/net-misc/chrony/chrony-4.0_pre2-r1.ebuild
33 index 322eeb92494..0338e59678b 100644
34 --- a/net-misc/chrony/chrony-4.0_pre2-r1.ebuild
35 +++ b/net-misc/chrony/chrony-4.0_pre2-r1.ebuild
36 @@ -190,7 +190,7 @@ pkg_preinst() {
37 pkg_postinst() {
38 tmpfiles_process chronyd.conf
39
40 - if use caps && ! ${HAD_CAPS}; then
41 + if [[ -n ${REPLACING_VERSIONS} ]] && use caps && ! ${HAD_CAPS}; then
42 ewarn "Please adjust permissions on ${EROOT}/var/{lib,log}/chrony to be owned by ntp:ntp"
43 ewarn "e.g. chown -R ntp:ntp ${EROOT}/var/{lib,log}/chrony"
44 ewarn "This is necessary for chrony to drop privileges"
45
46 diff --git a/net-misc/chrony/chrony-9999.ebuild b/net-misc/chrony/chrony-9999.ebuild
47 index 322eeb92494..0338e59678b 100644
48 --- a/net-misc/chrony/chrony-9999.ebuild
49 +++ b/net-misc/chrony/chrony-9999.ebuild
50 @@ -190,7 +190,7 @@ pkg_preinst() {
51 pkg_postinst() {
52 tmpfiles_process chronyd.conf
53
54 - if use caps && ! ${HAD_CAPS}; then
55 + if [[ -n ${REPLACING_VERSIONS} ]] && use caps && ! ${HAD_CAPS}; then
56 ewarn "Please adjust permissions on ${EROOT}/var/{lib,log}/chrony to be owned by ntp:ntp"
57 ewarn "e.g. chown -R ntp:ntp ${EROOT}/var/{lib,log}/chrony"
58 ewarn "This is necessary for chrony to drop privileges"