summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Junghans <ottxor@gentoo.org>2015-08-26 21:50:21 -0600
committerChristoph Junghans <ottxor@gentoo.org>2015-08-26 21:51:23 -0600
commit9707d9a39d23383579a965eced0d12b8c6ff3cde (patch)
treedabd0cb99ff1c0f94558fbba48e0a207d228550e /net-misc/openntpd
parentx11-wm/bspwm: version bump (diff)
downloadgentoo-9707d9a39d23383579a965eced0d12b8c6ff3cde.tar.gz
gentoo-9707d9a39d23383579a965eced0d12b8c6ff3cde.tar.bz2
gentoo-9707d9a39d23383579a965eced0d12b8c6ff3cde.zip
net-misc/openntpd: fixed permissions of NTP_HOME
Gentoo-Bug: 558352 Package-Manager: portage-2.2.20.1
Diffstat (limited to 'net-misc/openntpd')
-rw-r--r--net-misc/openntpd/openntpd-5.7_p4-r2.ebuild (renamed from net-misc/openntpd/openntpd-5.7_p4-r1.ebuild)3
1 files changed, 3 insertions, 0 deletions
diff --git a/net-misc/openntpd/openntpd-5.7_p4-r1.ebuild b/net-misc/openntpd/openntpd-5.7_p4-r2.ebuild
index 721bf80554e0..227a4fa76f57 100644
--- a/net-misc/openntpd/openntpd-5.7_p4-r1.ebuild
+++ b/net-misc/openntpd/openntpd-5.7_p4-r2.ebuild
@@ -76,6 +76,9 @@ pkg_postinst() {
ewarn "Unable to remove legacy ${EROOT%/}${NTP_HOME}/etc directory"
fi
+ # Fix permissions on home directory
+ chown root:root "${EROOT%/}${NTP_HOME}" || die
+
[[ -f ${EROOT}var/log/ntpd.log ]] && \
ewarn "Logfile '${EROOT}var/log/ntpd.log' might be orphaned, please remove it if not in use via syslog."