summaryrefslogtreecommitdiff
path: root/net-misc/ntp/ntp-4.2.8_p15-r6.ebuild
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-02-14 19:58:48 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-02-14 19:58:48 +0000
commit330454de22a51b01089472bf131acd28ea0c64ec (patch)
tree2d01a6b9daea431327a6b40431be1a29c6fdf90a /net-misc/ntp/ntp-4.2.8_p15-r6.ebuild
parentf3b59a4d34d28f51cc97e3cd2eb23686d61c2002 (diff)
gentoo auto-resync : 14:02:2023 - 19:58:48
Diffstat (limited to 'net-misc/ntp/ntp-4.2.8_p15-r6.ebuild')
-rw-r--r--net-misc/ntp/ntp-4.2.8_p15-r6.ebuild8
1 files changed, 4 insertions, 4 deletions
diff --git a/net-misc/ntp/ntp-4.2.8_p15-r6.ebuild b/net-misc/ntp/ntp-4.2.8_p15-r6.ebuild
index 64ff48c345f8..47cdd643d619 100644
--- a/net-misc/ntp/ntp-4.2.8_p15-r6.ebuild
+++ b/net-misc/ntp/ntp-4.2.8_p15-r6.ebuild
@@ -112,15 +112,13 @@ src_install() {
fi
sed -i "s:/usr/bin:/usr/sbin:" "${ED}"/etc/init.d/ntpd || die
- newtmpfiles "${FILESDIR}"/ntp.tmpfiles ntp.conf
-
if use openntpd ; then
cd "${ED}" || die
rm usr/sbin/ntpd || die
- rm -r var/lib || die
rm etc/{conf,init}.d/ntpd || die
rm usr/share/man/*/ntpd.8 || die
else
+ newtmpfiles "${FILESDIR}"/ntp.tmpfiles ntp.conf
systemd_newunit "${FILESDIR}"/ntpd.service-r2 ntpd.service
if use caps ; then
sed -i '/ExecStart/ s|$| -u ntp:ntp|' \
@@ -137,7 +135,9 @@ src_install() {
}
pkg_postinst() {
- tmpfiles_process ntp.conf
+ if ! use openntpd; then
+ tmpfiles_process ntp.conf
+ fi
if grep -qs '^[^#].*notrust' "${EROOT}"/etc/ntp.conf ; then
eerror "The notrust option was found in your /etc/ntp.conf!"
ewarn "If your ntpd starts sending out weird responses,"