diff options
author | Mike Gilbert <floppym@gentoo.org> | 2023-02-14 09:13:26 -0500 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2023-02-14 09:16:13 -0500 |
commit | 20ee025a8c833ae54a167026e4930c6c2a2ef75c (patch) | |
tree | 780d92389815d859998afe3e5c808f77a6317d3c /net-misc/ntp | |
parent | net-wireless/nanovna-saver: drop 0.5.3 (diff) | |
download | gentoo-20ee025a8c833ae54a167026e4930c6c2a2ef75c.tar.gz gentoo-20ee025a8c833ae54a167026e4930c6c2a2ef75c.tar.bz2 gentoo-20ee025a8c833ae54a167026e4930c6c2a2ef75c.zip |
net-misc/ntp: fix install with USE=openntpd
Closes: https://bugs.gentoo.org/894368
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'net-misc/ntp')
-rw-r--r-- | net-misc/ntp/ntp-4.2.8_p15-r6.ebuild | 8 |
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," |