net-misc/openntpd: fixed permissions of NTP_HOME
authorChristoph Junghans <ottxor@gentoo.org>
Thu, 27 Aug 2015 03:50:21 +0000 (21:50 -0600)
committerChristoph Junghans <ottxor@gentoo.org>
Thu, 27 Aug 2015 03:51:23 +0000 (21:51 -0600)
Gentoo-Bug: 558352

Package-Manager: portage-2.2.20.1

net-misc/openntpd/openntpd-5.7_p4-r2.ebuild [moved from net-misc/openntpd/openntpd-5.7_p4-r1.ebuild with 97% similarity]

similarity index 97%
rename from net-misc/openntpd/openntpd-5.7_p4-r1.ebuild
rename to net-misc/openntpd/openntpd-5.7_p4-r2.ebuild
index 721bf80554e015e192a93a8bac2d2afbe783d4c4..227a4fa76f579fe9b873b4225920363d9592ff9b 100644 (file)
@@ -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."