summaryrefslogtreecommitdiff
path: root/net-misc/ntp
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-02-14 01:55:21 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-02-14 01:55:21 +0000
commit5c1e419582680cfb61e0ae777c693704f3a731e1 (patch)
tree93222dbb37294b92dda9cdc49eb6916f0aee55bb /net-misc/ntp
parent8d8d5594277708985dde6b4829f02ce45408e78e (diff)
gentoo auto-resync : 14:02:2023 - 01:55:20
Diffstat (limited to 'net-misc/ntp')
-rw-r--r--net-misc/ntp/Manifest6
-rw-r--r--net-misc/ntp/files/ntp.tmpfiles1
-rw-r--r--net-misc/ntp/ntp-4.2.8_p15-r2.ebuild (renamed from net-misc/ntp/ntp-4.2.8_p15-r1.ebuild)2
-rw-r--r--net-misc/ntp/ntp-4.2.8_p15-r6.ebuild (renamed from net-misc/ntp/ntp-4.2.8_p15-r4.ebuild)8
-rw-r--r--net-misc/ntp/ntp-4.2.8_p15.ebuild143
5 files changed, 9 insertions, 151 deletions
diff --git a/net-misc/ntp/Manifest b/net-misc/ntp/Manifest
index ffcbeb1b2b0c..2927d70ec306 100644
--- a/net-misc/ntp/Manifest
+++ b/net-misc/ntp/Manifest
@@ -10,6 +10,7 @@ AUX ntp-4.2.8_p15-glibc-2.34.patch 928 BLAKE2B 993f2c6ab2b4e6242811d553e0021911b
AUX ntp-client.confd 776 BLAKE2B 7c65232560d4443f21bea7e5e0e8183f8397e092b6c489faa18188b9df9f8678244cd816e6d8d6e12b8d89a2b33873b9d0a2173957217879320db20744b3876c SHA512 2d6b9d96c55787cf4556332054a61399368dcf37cf76a14aaba3f8e2e4fdd47ce25808f9babda2ca1f2a6e7387c043e023251ba2b99786426c875bd7cb6592a6
AUX ntp-client.rc 720 BLAKE2B 5662d2f6635b8d5bb07fbc82c259a8af7871b8312ebff0184005d3ea24f239a1d3e2b63a5a7e9eef8f385a72fcd9370a2e68031a7c54bf3ef28e8c26c97c0298 SHA512 557cb44fc911dcf34d21227c5d92c2ab56ca3fd855a5d2715c5f7343ae45a91c4b5492a84ac01a712bc251ea2a83810f4eb33e467b456b42c79052454a68dc81
AUX ntp.conf 1614 BLAKE2B 88158ad4270a7b3f42de7d3dcaa5a2dc5f7900171c0259834ff781372bdb0e6b06d46c009890a0a2ab4b60b6759bc650324994a2b81ef9b9d0bc922047add9bc SHA512 b21afb9d2b9302edf702fce536218fa916e810e916c207dd6f2f09a9a793a465bc929b9a36108d49ddb3552e221b57cbb2e9f916eba78662b19c4b9c2b3e806c
+AUX ntp.tmpfiles 28 BLAKE2B 6696c9e220b5517dbe0e7ed5c5937a20bcc608eeca0cc353ad4202f21a56679aeed7cf667eed1113538fc3e1a544e58f001ce595c5c2ae209da0b6c2fa49f7b9 SHA512 9d8744609ebd9a69e8584abc3ea13d1ac08e8e7014c77fa08e811d0a80ae7c892ba7b1c2f5bab47d82f6af36e6075f2e7ecdcab98e7d9ba87408681cbabf1a2c
AUX ntpd.confd 192 BLAKE2B f5387ba2571b238a3e4f78c11151153deb40ad0babe4728942ec0f5f87d405e95047a3a72c7f747fb52e6bfc0dc2e8da10867e83394ff07e8381fbdf0b666c26 SHA512 a9e96a214d3c21a3f4863709c48a11f9dedc73e2d83a9b20761021df44a9acb56757e77f113aa0314f5f3923e9cb26bc6e0147658d20e8a74d078d415a171d91
AUX ntpd.rc-r1 489 BLAKE2B 6d3fe11a2ba7d04d02b24ca3acbcae5419908d12e94118bf91fca825f7561304a01dc9085cdc371b91498f6b14503c94cddeeb462b23c2b4b1017d3bfd3bd3ba SHA512 d51856ebff9160a01e1331114c5a8ea7337f9c8b570da75f36bbb29dcaf1924a40cdbbbf56e03148fc0f540103846e58d15175acf2e9d83c6b68d55c1e199734
AUX ntpd.rc-r2 495 BLAKE2B d06fd0f57c3e6e1b17f0dba47777472a8ecda3b86f66dbfbd5e8ab7e4af7aad50502251763ea107db463caec6b9d166448fbba23caebffb3c947cce433c59e8a SHA512 a0b7b079522392fa3883bba9d0a0c77f29cb4da60ed0d8f7ce9bfd3ac23fbc632dbf01a1bb0ad44ca4b78e35e644d614a2fccec7c8157c6824c8a868304ceb9a
@@ -22,7 +23,6 @@ AUX sntp.service-r3 320 BLAKE2B b47a7a4dab78c0ea9f85b861d7f5f2926e5302839db34b92
AUX sntp.service.conf 119 BLAKE2B ee94067e5aef213a15d211e36362f2b4e8e66dfc739be686966e6ee738375a5b8df68a4216c0d8e14c11223945be82a5f221d46d94e15349753a358542b7c9ae SHA512 7c5c397bb51f0192e927079044c7ffb91ae158c55f725be50d09bd618e6a4d37dd93c0f8e4bad726d1d9ada276bf73ad9567e00e0c30f4bf47344e4214f4b4b8
DIST ntp-4.2.8p15-manpages.tar.xz 25700 BLAKE2B 6a225bc19dcebee31cb8e0d621963863d567a882655b57be8b65a16f9d3dd138787c7c6b9ff08853306f2e9b11d65cb76e3215cc5b2262a91c411d437974fc18 SHA512 21721550864b4e7e91bf20ca894109253439b737799dfc803e1496b3454199f34646f40e0156c08a39d5914e5a92f35908cec0245e1e2627c75c0e64939ba028
DIST ntp-4.2.8p15.tar.gz 7015970 BLAKE2B 5697d6623d79686f9ca9ad907172bf942383067d1e9817117d20db042e9f7410644f236f1a0d77ab6bf6ec468476e12ea65b494a28f0dd8674bf08fc8875cfef SHA512 f5ad765e45fc302263dd40e94c287698fd235b94f3684e49f1d5d09d7d8bdd6b8c0fb96ecdabffea3d233e1e79b3c9687b76dc204ba76bad3f554682f4a97794
-EBUILD ntp-4.2.8_p15-r1.ebuild 4449 BLAKE2B ac0f4d4ebc632237f68078e41644651f6f874e0d5c6809c5bcfd781550c414ca2fe7f68ed2e5f1b018d49faedd52daf70cd04e7bee69e73a52cd58a160a51136 SHA512 b377d9ed8095999240e5982f93a8492f91fc1ab372e487d455118f56d1048571dcf583343317c4a0b87b93c7fb09bb22286ca50d4684db6fd6ebf88b2c30c442
-EBUILD ntp-4.2.8_p15-r4.ebuild 4602 BLAKE2B 86a2365227477a4cd2ded88e717c5e24746a8bb0308b7ddd3c2673c361ee1287222e3629f20567e677acf12cabd94fd64ebf4990a6696ca65fb8bf1de87419a5 SHA512 cb0ed9b46e666f022372d2bc16baa4f399c5621b0699295e18752e8972165347c41be46a8015142ba41341f6bbc9269f7955b1da57be6db8c5da515fad19244a
-EBUILD ntp-4.2.8_p15.ebuild 4442 BLAKE2B f6cfbc92981ced0abad90d0d20366949e4c41580236c0fe92b05dd0f79092ac136087bc95fd56a223d2dc6ff0d3ec81c244b380a5747bbc52ae8a43166f40e2a SHA512 0718ee4bea75e8f2d6378a0a882757adc75e49d67d62c265d2ff6414af73f7f0ee37b61205e0306aaa9f3bee5aaedaa3430ee34f4158dde3cd13e3339b08a6a9
+EBUILD ntp-4.2.8_p15-r2.ebuild 4452 BLAKE2B 0bf9938ef9509eddebac35edd67eb6f3fe5eea5b38bf9e01f11d4f89fcdeb6dcee2faf78b8f5c6871f8540f8eeea843532a2432a18e98dd36eff764a72924f31 SHA512 9ed7f41b4407cf45fea06e70fcc1a01bf1af317e3e8d507c2cbd1f1a51c88ff20ae30afb2e1b888c8f61809c27fcda0e900a8b247c537be729ba2ed6327704fd
+EBUILD ntp-4.2.8_p15-r6.ebuild 4624 BLAKE2B ea47504f0c80c4fe6305e3540dde3474c6cace2935a74b9366bc70f0efaf751ae9d60257971a9082f7478295c800f7b1e134ce3c72d6f732de7a88f956ebaeee SHA512 897696d9d2db2105296bfc7a2ac55e446a8a1c52a422681fade3cfb2b65df1019a28d368eabbd94c69dd145bf599307beb3211cb6c293c54bee5dd53cfc642c3
MISC metadata.xml 1023 BLAKE2B 58da2b7578162aa1650d5a0bba7f3384a36dcfcdb4c52003b2aa3fd2ee89a1d01239a4e462b874dfa96b0913597cf0384f78d4da79148ca1e52e8aca29b583c3 SHA512 510fbd0761a097d214225640c0a60da8c77b06af41cb77748cd73c7c04add5e4651dd07f0eef9f083343570a6fe5f0bdcf84b38b5b65df815abd8bbaea048791
diff --git a/net-misc/ntp/files/ntp.tmpfiles b/net-misc/ntp/files/ntp.tmpfiles
new file mode 100644
index 000000000000..49b0b066e30f
--- /dev/null
+++ b/net-misc/ntp/files/ntp.tmpfiles
@@ -0,0 +1 @@
+d /var/lib/ntp 0755 ntp ntp
diff --git a/net-misc/ntp/ntp-4.2.8_p15-r1.ebuild b/net-misc/ntp/ntp-4.2.8_p15-r2.ebuild
index 8aa1fa7ad725..cb0fcdd63097 100644
--- a/net-misc/ntp/ntp-4.2.8_p15-r1.ebuild
+++ b/net-misc/ntp/ntp-4.2.8_p15-r2.ebuild
@@ -17,7 +17,7 @@ KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv
IUSE="caps debug ipv6 openntpd parse-clocks readline samba selinux snmp ssl +threads vim-syntax zeroconf"
COMMON_DEPEND="readline? ( >=sys-libs/readline-4.1:0= )
- >=dev-libs/libevent-2.0.9:=[threads?]
+ >=dev-libs/libevent-2.0.9:=[threads(+)?]
kernel_linux? ( caps? ( sys-libs/libcap ) )
zeroconf? ( net-dns/avahi[mdnsresponder-compat] )
snmp? ( net-analyzer/net-snmp )
diff --git a/net-misc/ntp/ntp-4.2.8_p15-r4.ebuild b/net-misc/ntp/ntp-4.2.8_p15-r6.ebuild
index 74177b9e9309..64ff48c345f8 100644
--- a/net-misc/ntp/ntp-4.2.8_p15-r4.ebuild
+++ b/net-misc/ntp/ntp-4.2.8_p15-r6.ebuild
@@ -3,7 +3,7 @@
EAPI=7
-inherit autotools flag-o-matic systemd
+inherit autotools flag-o-matic systemd tmpfiles
MY_P=${P/_p/p}
DESCRIPTION="Network Time Protocol suite/programs"
@@ -17,7 +17,7 @@ KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~risc
IUSE="caps debug ipv6 openntpd parse-clocks readline samba selinux snmp ssl +threads vim-syntax zeroconf"
COMMON_DEPEND="readline? ( >=sys-libs/readline-4.1:0= )
- >=dev-libs/libevent-2.0.9:=[threads?]
+ >=dev-libs/libevent-2.0.9:=[threads(+)?]
kernel_linux? ( caps? ( sys-libs/libcap ) )
zeroconf? ( net-dns/avahi[mdnsresponder-compat] )
snmp? ( net-analyzer/net-snmp )
@@ -112,8 +112,7 @@ src_install() {
fi
sed -i "s:/usr/bin:/usr/sbin:" "${ED}"/etc/init.d/ntpd || die
- keepdir /var/lib/ntp
- use prefix || fowners ntp:ntp /var/lib/ntp
+ newtmpfiles "${FILESDIR}"/ntp.tmpfiles ntp.conf
if use openntpd ; then
cd "${ED}" || die
@@ -138,6 +137,7 @@ src_install() {
}
pkg_postinst() {
+ tmpfiles_process ntp.conf
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,"
diff --git a/net-misc/ntp/ntp-4.2.8_p15.ebuild b/net-misc/ntp/ntp-4.2.8_p15.ebuild
deleted file mode 100644
index fab96d3d6b6b..000000000000
--- a/net-misc/ntp/ntp-4.2.8_p15.ebuild
+++ /dev/null
@@ -1,143 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit autotools flag-o-matic systemd
-
-MY_P=${P/_p/p}
-DESCRIPTION="Network Time Protocol suite/programs"
-HOMEPAGE="http://www.ntp.org/"
-SRC_URI="http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-${PV:0:3}/${MY_P}.tar.gz
- https://dev.gentoo.org/~polynomial-c/${MY_P}-manpages.tar.xz"
-
-LICENSE="HPND BSD ISC"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux"
-IUSE="caps debug ipv6 openntpd parse-clocks readline samba selinux snmp ssl +threads vim-syntax zeroconf"
-
-COMMON_DEPEND="readline? ( >=sys-libs/readline-4.1:0= )
- >=dev-libs/libevent-2.0.9:=[threads?]
- kernel_linux? ( caps? ( sys-libs/libcap ) )
- zeroconf? ( net-dns/avahi[mdnsresponder-compat] )
- snmp? ( net-analyzer/net-snmp )
- ssl? (
- dev-libs/openssl:0=
- )
- parse-clocks? ( net-misc/pps-tools )"
-BDEPEND="virtual/pkgconfig
- acct-group/ntp
- acct-user/ntp"
-DEPEND="${COMMON_DEPEND}"
-RDEPEND="${COMMON_DEPEND}
- acct-group/ntp
- acct-user/ntp
- selinux? ( sec-policy/selinux-ntp )
- vim-syntax? ( app-vim/ntp-syntax )
- !net-misc/ntpsec
- !openntpd? ( !net-misc/openntpd )
-"
-PDEPEND="openntpd? ( net-misc/openntpd )"
-
-S="${WORKDIR}/${MY_P}"
-
-PATCHES=(
- "${FILESDIR}"/${PN}-4.2.8-ipc-caps.patch #533966
- "${FILESDIR}"/${PN}-4.2.8-sntp-test-pthreads.patch #563922
- "${FILESDIR}"/${PN}-4.2.8_p14-add_cap_ipc_lock.patch #711530
- "${FILESDIR}"/${PN}-4.2.8_p15-gcc10.patch #759409
- "${FILESDIR}"/${PN}-4.2.8_p15-glibc-2.34.patch
-)
-
-src_prepare() {
- default
- append-cppflags -D_GNU_SOURCE #264109
- # Make sure every build uses the same install layout. #539092
- find sntp/loc/ -type f '!' -name legacy -delete || die
- eautoreconf #622754
- # Disable pointless checks.
- touch .checkChangeLog .gcc-warning FRC.html html/.datecheck
-}
-
-src_configure() {
- # avoid libmd5/libelf
- export ac_cv_search_MD5Init=no ac_cv_header_md5_h=no
- export ac_cv_lib_elf_nlist=no
- # blah, no real configure options #176333
- export ac_cv_header_dns_sd_h=$(usex zeroconf)
- export ac_cv_lib_dns_sd_DNSServiceRegister=${ac_cv_header_dns_sd_h}
- local myeconfargs=(
- --with-lineeditlibs=readline,edit,editline
- --with-yielding-select
- --disable-local-libevent
- # Increase the default memlimit from 32MiB to 128MiB. #533232
- --with-memlock=256
- $(use_enable caps linuxcaps)
- $(use_enable parse-clocks)
- $(use_enable ipv6)
- $(use_enable debug debugging)
- $(use_with readline lineeditlibs readline)
- $(use_enable samba ntp-signd)
- $(use_with snmp ntpsnmpd)
- $(use_with ssl crypto)
- $(use_enable threads thread-support)
- )
- econf "${myeconfargs[@]}"
-}
-
-src_install() {
- default
- # move ntpd/ntpdate to sbin #66671
- dodir /usr/sbin
- mv "${ED}"/usr/bin/{ntpd,ntpdate} "${ED}"/usr/sbin/ || die "move to sbin"
-
- dodoc INSTALL WHERE-TO-START
- doman "${WORKDIR}"/man/*.[58]
-
- insinto /etc
- doins "${FILESDIR}"/ntp.conf
- use ipv6 || sed -i '/^restrict .*::1/d' "${ED}"/etc/ntp.conf #524726
- newinitd "${FILESDIR}"/ntpd.rc-r1 ntpd
- newconfd "${FILESDIR}"/ntpd.confd ntpd
- newinitd "${FILESDIR}"/ntp-client.rc ntp-client
- newconfd "${FILESDIR}"/ntp-client.confd ntp-client
- newinitd "${FILESDIR}"/sntp.rc sntp
- newconfd "${FILESDIR}"/sntp.confd sntp
- if ! use caps ; then
- sed -i "s|-u ntp:ntp||" "${ED}"/etc/conf.d/ntpd || die
- fi
- sed -i "s:/usr/bin:/usr/sbin:" "${ED}"/etc/init.d/ntpd || die
-
- keepdir /var/lib/ntp
- use prefix || fowners ntp:ntp /var/lib/ntp
-
- 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
- systemd_newunit "${FILESDIR}"/ntpd.service-r2 ntpd.service
- if use caps ; then
- sed -i '/ExecStart/ s|$| -u ntp:ntp|' \
- "${D}$(systemd_get_systemunitdir)"/ntpd.service \
- || die
- fi
- systemd_enable_ntpunit 60-ntpd ntpd.service
- fi
-
- systemd_newunit "${FILESDIR}"/ntpdate.service-r2 ntpdate.service
- systemd_install_serviced "${FILESDIR}"/ntpdate.service.conf
- systemd_newunit "${FILESDIR}"/sntp.service-r3 sntp.service
- systemd_install_serviced "${FILESDIR}"/sntp.service.conf
-}
-
-pkg_postinst() {
- 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,"
- ewarn "then make sure you have keys properly setup and see"
- ewarn "https://bugs.gentoo.org/41827"
- fi
-}