Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/ntpsec/files/, net-misc/ntpsec/
Date: Wed, 02 Nov 2022 00:47:49
Message-Id: 1667350054.457fcc8079b30e1be8fe0d4cead4218e3884072c.sam@gentoo
1 commit: 457fcc8079b30e1be8fe0d4cead4218e3884072c
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Nov 2 00:11:28 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 2 00:47:34 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=457fcc80
7
8 net-misc/ntpsec: drop 1.2.1-r2, 1.2.1-r3, 1.2.1-r4, 1.2.1-r5
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 net-misc/ntpsec/files/ntpd.rc-r2 | 22 ----
13 net-misc/ntpsec/metadata.xml | 3 +-
14 net-misc/ntpsec/ntpsec-1.2.1-r2.ebuild | 168 -------------------------------
15 net-misc/ntpsec/ntpsec-1.2.1-r3.ebuild | 177 --------------------------------
16 net-misc/ntpsec/ntpsec-1.2.1-r4.ebuild | 177 --------------------------------
17 net-misc/ntpsec/ntpsec-1.2.1-r5.ebuild | 178 ---------------------------------
18 6 files changed, 1 insertion(+), 724 deletions(-)
19
20 diff --git a/net-misc/ntpsec/files/ntpd.rc-r2 b/net-misc/ntpsec/files/ntpd.rc-r2
21 deleted file mode 100644
22 index 82a950ef5dac..000000000000
23 --- a/net-misc/ntpsec/files/ntpd.rc-r2
24 +++ /dev/null
25 @@ -1,22 +0,0 @@
26 -#!/sbin/openrc-run
27 -# Copyright 1999-2018 Gentoo Foundation
28 -# Distributed under the terms of the GNU General Public License v2
29 -
30 -description="ntpd - the network time protocol daemon"
31 -pidfile="/run/ntpd.pid"
32 -command="/usr/sbin/ntpd"
33 -command_args="-p ${pidfile} ${NTPD_OPTS}"
34 -start_stop_daemon_args="--pidfile ${pidfile}"
35 -
36 -depend() {
37 - use net dns logger
38 - after ntp-client
39 -}
40 -
41 -start_pre() {
42 - if [ ! -f /etc/ntp.conf ] ; then
43 - eerror "Please create /etc/ntp.conf"
44 - return 1
45 - fi
46 - return 0
47 -}
48
49 diff --git a/net-misc/ntpsec/metadata.xml b/net-misc/ntpsec/metadata.xml
50 index 69f78f92c02d..7e10e7cbb842 100644
51 --- a/net-misc/ntpsec/metadata.xml
52 +++ b/net-misc/ntpsec/metadata.xml
53 @@ -6,7 +6,7 @@
54 <name>Anthony G. Basile</name>
55 </maintainer>
56 <longdescription lang="en">
57 -NTPsec project - a secure, hardened, and improved implementation of Network Time Protocol derived from NTP Classic, Dave Mills’s original.
58 + NTPsec project - a secure, hardened, and improved implementation of Network Time Protocol derived from NTP Classic, Dave Mills’s original.
59 </longdescription>
60 <use>
61 <flag name="early">Drop root privileges early</flag>
62 @@ -31,6 +31,5 @@ NTPsec project - a secure, hardened, and improved implementation of Network Time
63 <flag name="rclock_modem">NIST/USNO/PTB Modem Time Services</flag>
64 <flag name="rclock_local">Support for undisciplined local clock (not recommended)</flag>
65 <flag name="smear">Specify the interval over which a leap second is applied (experimental)</flag>
66 - <flag name="tests">Enable tests</flag>
67 </use>
68 </pkgmetadata>
69
70 diff --git a/net-misc/ntpsec/ntpsec-1.2.1-r2.ebuild b/net-misc/ntpsec/ntpsec-1.2.1-r2.ebuild
71 deleted file mode 100644
72 index 80e17ecb6cb5..000000000000
73 --- a/net-misc/ntpsec/ntpsec-1.2.1-r2.ebuild
74 +++ /dev/null
75 @@ -1,168 +0,0 @@
76 -# Copyright 1999-2022 Gentoo Authors
77 -# Distributed under the terms of the GNU General Public License v2
78 -
79 -EAPI=7
80 -
81 -PYTHON_COMPAT=( python3_{7..9} )
82 -PYTHON_REQ_USE='threads(+)'
83 -DISTUTILS_USE_SETUPTOOLS=no
84 -
85 -inherit distutils-r1 flag-o-matic waf-utils systemd
86 -
87 -if [[ ${PV} == *9999* ]]; then
88 - inherit git-r3
89 - EGIT_REPO_URI="https://gitlab.com/NTPsec/ntpsec.git"
90 -else
91 - SRC_URI="ftp://ftp.ntpsec.org/pub/releases/${PN}-${PV}.tar.gz"
92 - RESTRICT="mirror"
93 - KEYWORDS="amd64 arm arm64 ~riscv ~x86"
94 -fi
95 -
96 -DESCRIPTION="The NTP reference implementation, refactored"
97 -HOMEPAGE="https://www.ntpsec.org/"
98 -
99 -NTPSEC_REFCLOCK=(
100 - oncore trimble truetime gpsd jjy generic spectracom
101 - shm pps hpgps zyfer arbiter nmea modem local
102 - )
103 -
104 -IUSE_NTPSEC_REFCLOCK=${NTPSEC_REFCLOCK[@]/#/rclock_}
105 -
106 -LICENSE="HPND MIT BSD-2 BSD CC-BY-SA-4.0"
107 -SLOT="0"
108 -IUSE="${IUSE_NTPSEC_REFCLOCK} debug doc early gdb heat libbsd nist ntpviz samba seccomp smear tests" #ionice
109 -REQUIRED_USE="${PYTHON_REQUIRED_USE} nist? ( rclock_local )"
110 -
111 -# net-misc/pps-tools oncore,pps
112 -CDEPEND="${PYTHON_DEPS}
113 - sys-libs/libcap
114 - dev-python/psutil[${PYTHON_USEDEP}]
115 - libbsd? ( dev-libs/libbsd:0= )
116 - dev-libs/openssl:0=
117 - seccomp? ( sys-libs/libseccomp )
118 -"
119 -RDEPEND="${CDEPEND}
120 - ntpviz? ( sci-visualization/gnuplot media-fonts/liberation-fonts )
121 - !net-misc/ntp
122 - !net-misc/openntpd
123 - acct-group/ntp
124 - acct-user/ntp
125 -"
126 -DEPEND="${CDEPEND}
127 - >=app-text/asciidoc-8.6.8
128 - dev-libs/libxslt
129 - app-text/docbook-xsl-stylesheets
130 - sys-devel/bison
131 - rclock_oncore? ( net-misc/pps-tools )
132 - rclock_pps? ( net-misc/pps-tools )
133 -"
134 -
135 -PATCHES=(
136 - "${FILESDIR}/${PN}-1.1.9-remove-asciidoctor-from-config.patch"
137 - "${FILESDIR}/${PN}-1.2.1-seccomp-rollup.patch"
138 - "${FILESDIR}/${PN}-1.2.1-seccomp-rseq-glibc-2.35.patch"
139 -)
140 -
141 -WAF_BINARY="${S}/waf"
142 -
143 -src_prepare() {
144 - default
145 -
146 - # Remove autostripping of binaries
147 - sed -i -e '/Strip binaries/d' wscript || die
148 - if ! use libbsd ; then
149 - eapply "${FILESDIR}/${PN}-no-bsd.patch"
150 - fi
151 - # remove extra default pool servers
152 - sed -i '/use-pool/s/^/#/' "${S}"/etc/ntp.d/default.conf || die
153 -
154 - python_copy_sources
155 -}
156 -
157 -src_configure() {
158 - is-flagq -flto* && filter-flags -flto* -fuse-linker-plugin
159 -
160 - local string_127=""
161 - local rclocks="";
162 - local CLOCKSTRING=""
163 -
164 - for refclock in ${NTPSEC_REFCLOCK[@]} ; do
165 - if use rclock_${refclock} ; then
166 - string_127+="$refclock,"
167 - fi
168 - done
169 - CLOCKSTRING="`echo ${string_127}|sed 's|,$||'`"
170 -
171 - local myconf=(
172 - --nopyc
173 - --nopyo
174 - --enable-pylib ext
175 - --refclock="${CLOCKSTRING}"
176 - #--build-epoch="$(date +%s)"
177 - $(use doc || echo "--disable-doc")
178 - $(use early && echo "--enable-early-droproot")
179 - $(use gdb && echo "--enable-debug-gdb")
180 - $(use samba && echo "--enable-mssntp")
181 - $(use seccomp && echo "--enable-seccomp")
182 - $(use smear && echo "--enable-leap-smear")
183 - $(use tests && echo "--alltests")
184 - $(use debug && echo "--enable-debug")
185 - )
186 -
187 - python_configure() {
188 - waf-utils_src_configure "${myconf[@]}"
189 - }
190 - python_foreach_impl run_in_build_dir python_configure
191 -}
192 -
193 -src_compile() {
194 - unset MAKEOPTS
195 - python_compile() {
196 - waf-utils_src_compile
197 - }
198 - python_foreach_impl run_in_build_dir python_compile
199 -}
200 -
201 -src_install() {
202 - python_install() {
203 - waf-utils_src_install
204 - python_fix_shebang "${ED}"
205 - }
206 - python_foreach_impl run_in_build_dir python_install
207 - python_foreach_impl python_optimize
208 -
209 - # Install heat generating scripts
210 - use heat && dosbin "${S}"/contrib/ntpheat{,usb}
211 -
212 - # Install the openrc files
213 - newinitd "${FILESDIR}"/ntpd.rc-r2 ntp
214 - newconfd "${FILESDIR}"/ntpd.confd ntp
215 -
216 - # Install the systemd unit file
217 - systemd_newunit "${FILESDIR}"/ntpd-r1.service ntpd.service
218 -
219 - # Prepare a directory for the ntp.drift file
220 - mkdir -pv "${ED}"/var/lib/ntp
221 - chown ntp:ntp "${ED}"/var/lib/ntp
222 - chmod 770 "${ED}"/var/lib/ntp
223 - keepdir /var/lib/ntp
224 -
225 - # Install a log rotate script
226 - mkdir -pv "${ED}"/etc/logrotate.d
227 - cp -v "${S}"/etc/logrotate-config.ntpd "${ED}"/etc/logrotate.d/ntpd
228 -
229 - # Install the configuration file and sample configuration
230 - cp -v "${FILESDIR}"/ntp.conf "${ED}"/etc/ntp.conf
231 - cp -Rv "${S}"/etc/ntp.d/ "${ED}"/etc/
232 -
233 - # move doc files to /usr/share/doc/"${P}"
234 - use doc && mv -v "${ED}"/usr/share/doc/"${PN}" "${ED}"/usr/share/doc/"${P}"/html
235 -}
236 -
237 -pkg_postinst() {
238 - einfo "If you want to serve time on your local network, then"
239 - einfo "you should disable all the ref_clocks unless you have"
240 - einfo "one and can get stable time from it. Feel free to try"
241 - einfo "it but PPS probably won't work unless you have a UART"
242 - einfo "GPS that actually provides PPS messages."
243 -}
244
245 diff --git a/net-misc/ntpsec/ntpsec-1.2.1-r3.ebuild b/net-misc/ntpsec/ntpsec-1.2.1-r3.ebuild
246 deleted file mode 100644
247 index 93bcb0332fab..000000000000
248 --- a/net-misc/ntpsec/ntpsec-1.2.1-r3.ebuild
249 +++ /dev/null
250 @@ -1,177 +0,0 @@
251 -# Copyright 1999-2022 Gentoo Authors
252 -# Distributed under the terms of the GNU General Public License v2
253 -
254 -EAPI=7
255 -
256 -PYTHON_COMPAT=( python3_{8..10} )
257 -PYTHON_REQ_USE='threads(+)'
258 -DISTUTILS_USE_SETUPTOOLS=no
259 -
260 -inherit distutils-r1 flag-o-matic waf-utils systemd
261 -
262 -if [[ ${PV} == *9999* ]]; then
263 - inherit git-r3
264 - EGIT_REPO_URI="https://gitlab.com/NTPsec/ntpsec.git"
265 -else
266 - SRC_URI="ftp://ftp.ntpsec.org/pub/releases/${P}.tar.gz"
267 - KEYWORDS="amd64 arm arm64 ~riscv ~x86"
268 -fi
269 -
270 -DESCRIPTION="The NTP reference implementation, refactored"
271 -HOMEPAGE="https://www.ntpsec.org/"
272 -
273 -NTPSEC_REFCLOCK=(
274 - oncore trimble truetime gpsd jjy generic spectracom
275 - shm pps hpgps zyfer arbiter nmea modem local
276 -)
277 -
278 -IUSE_NTPSEC_REFCLOCK=${NTPSEC_REFCLOCK[@]/#/rclock_}
279 -
280 -LICENSE="HPND MIT BSD-2 BSD CC-BY-SA-4.0"
281 -SLOT="0"
282 -IUSE="${IUSE_NTPSEC_REFCLOCK} debug doc early gdb heat libbsd nist ntpviz samba seccomp smear" #ionice
283 -REQUIRED_USE="${PYTHON_REQUIRED_USE} nist? ( rclock_local )"
284 -
285 -# net-misc/pps-tools oncore,pps
286 -DEPEND="${PYTHON_DEPS}
287 - dev-libs/openssl:=
288 - dev-python/psutil[${PYTHON_USEDEP}]
289 - sys-libs/libcap
290 - libbsd? ( dev-libs/libbsd:0= )
291 - seccomp? ( sys-libs/libseccomp )
292 - rclock_oncore? ( net-misc/pps-tools )
293 - rclock_pps? ( net-misc/pps-tools )"
294 -RDEPEND="${DEPEND}
295 - !net-misc/ntp
296 - !net-misc/openntpd
297 - acct-group/ntp
298 - acct-user/ntp
299 - ntpviz? ( sci-visualization/gnuplot media-fonts/liberation-fonts )"
300 -BDEPEND=">=app-text/asciidoc-8.6.8
301 - dev-libs/libxslt
302 - app-text/docbook-xsl-stylesheets
303 - sys-devel/bison"
304 -
305 -PATCHES=(
306 - "${FILESDIR}/${PN}-1.1.9-remove-asciidoctor-from-config.patch"
307 - "${FILESDIR}/${PN}-1.2.1-seccomp-rollup.patch"
308 - "${FILESDIR}/${PN}-1.2.1-seccomp-rseq-glibc-2.35.patch"
309 - "${FILESDIR}/${PN}-1.2.1-build-notests.patch"
310 - "${FILESDIR}/${PN}-py3-test-clarify.patch"
311 -)
312 -
313 -WAF_BINARY="${S}/waf"
314 -
315 -src_prepare() {
316 - default
317 -
318 - # Remove autostripping of binaries
319 - sed -i -e '/Strip binaries/d' wscript || die
320 - if ! use libbsd ; then
321 - eapply "${FILESDIR}/${PN}-no-bsd.patch"
322 - fi
323 - # remove extra default pool servers
324 - sed -i '/use-pool/s/^/#/' "${S}"/etc/ntp.d/default.conf || die
325 -
326 - python_copy_sources
327 -}
328 -
329 -src_configure() {
330 - is-flagq -flto* && filter-flags -flto* -fuse-linker-plugin
331 -
332 - local string_127=""
333 - local rclocks="";
334 - local CLOCKSTRING=""
335 -
336 - for refclock in ${NTPSEC_REFCLOCK[@]} ; do
337 - if use rclock_${refclock} ; then
338 - string_127+="$refclock,"
339 - fi
340 - done
341 - CLOCKSTRING="`echo ${string_127}|sed 's|,$||'`"
342 -
343 - local myconf=(
344 - --notests
345 - --nopyc
346 - --nopyo
347 - --enable-pylib ext
348 - --refclock="${CLOCKSTRING}"
349 - #--build-epoch="$(date +%s)"
350 - $(use doc || echo "--disable-doc")
351 - $(use early && echo "--enable-early-droproot")
352 - $(use gdb && echo "--enable-debug-gdb")
353 - $(use samba && echo "--enable-mssntp")
354 - $(use seccomp && echo "--enable-seccomp")
355 - $(use smear && echo "--enable-leap-smear")
356 - $(use debug && echo "--enable-debug")
357 - )
358 -
359 - python_configure() {
360 - waf-utils_src_configure "${myconf[@]}"
361 - }
362 - python_foreach_impl run_in_build_dir python_configure
363 -}
364 -
365 -src_compile() {
366 - unset MAKEOPTS
367 - python_compile() {
368 - waf-utils_src_compile --notests
369 - }
370 - python_foreach_impl run_in_build_dir python_compile
371 -}
372 -
373 -src_test() {
374 - python_compile() {
375 - waf-utils_src_compile check
376 - }
377 - python_foreach_impl run_in_build_dir python_compile
378 -}
379 -
380 -python_test() {
381 - # Silence QA warning as we're running tests via src_test anyway.
382 - :;
383 -}
384 -
385 -src_install() {
386 - python_install() {
387 - waf-utils_src_install --notests
388 - python_fix_shebang "${ED}"
389 - }
390 - python_foreach_impl run_in_build_dir python_install
391 - python_foreach_impl python_optimize
392 -
393 - # Install heat generating scripts
394 - use heat && dosbin "${S}"/contrib/ntpheat{,usb}
395 -
396 - # Install the openrc files
397 - newinitd "${FILESDIR}"/ntpd.rc-r2 ntp
398 - newconfd "${FILESDIR}"/ntpd.confd ntp
399 -
400 - # Install the systemd unit file
401 - systemd_newunit "${FILESDIR}"/ntpd-r1.service ntpd.service
402 -
403 - # Prepare a directory for the ntp.drift file
404 - mkdir -pv "${ED}"/var/lib/ntp
405 - chown ntp:ntp "${ED}"/var/lib/ntp
406 - chmod 770 "${ED}"/var/lib/ntp
407 - keepdir /var/lib/ntp
408 -
409 - # Install a log rotate script
410 - mkdir -pv "${ED}"/etc/logrotate.d
411 - cp -v "${S}"/etc/logrotate-config.ntpd "${ED}"/etc/logrotate.d/ntpd
412 -
413 - # Install the configuration file and sample configuration
414 - cp -v "${FILESDIR}"/ntp.conf "${ED}"/etc/ntp.conf
415 - cp -Rv "${S}"/etc/ntp.d/ "${ED}"/etc/
416 -
417 - # move doc files to /usr/share/doc/"${P}"
418 - use doc && mv -v "${ED}"/usr/share/doc/"${PN}" "${ED}"/usr/share/doc/"${P}"/html
419 -}
420 -
421 -pkg_postinst() {
422 - einfo "If you want to serve time on your local network, then"
423 - einfo "you should disable all the ref_clocks unless you have"
424 - einfo "one and can get stable time from it. Feel free to try"
425 - einfo "it but PPS probably won't work unless you have a UART"
426 - einfo "GPS that actually provides PPS messages."
427 -}
428
429 diff --git a/net-misc/ntpsec/ntpsec-1.2.1-r4.ebuild b/net-misc/ntpsec/ntpsec-1.2.1-r4.ebuild
430 deleted file mode 100644
431 index c6da1c0300fc..000000000000
432 --- a/net-misc/ntpsec/ntpsec-1.2.1-r4.ebuild
433 +++ /dev/null
434 @@ -1,177 +0,0 @@
435 -# Copyright 1999-2022 Gentoo Authors
436 -# Distributed under the terms of the GNU General Public License v2
437 -
438 -EAPI=7
439 -
440 -PYTHON_COMPAT=( python3_{8..10} )
441 -PYTHON_REQ_USE='threads(+)'
442 -DISTUTILS_USE_SETUPTOOLS=no
443 -
444 -inherit distutils-r1 flag-o-matic waf-utils systemd
445 -
446 -if [[ ${PV} == *9999* ]]; then
447 - inherit git-r3
448 - EGIT_REPO_URI="https://gitlab.com/NTPsec/ntpsec.git"
449 -else
450 - SRC_URI="ftp://ftp.ntpsec.org/pub/releases/${P}.tar.gz"
451 - KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
452 -fi
453 -
454 -DESCRIPTION="The NTP reference implementation, refactored"
455 -HOMEPAGE="https://www.ntpsec.org/"
456 -
457 -NTPSEC_REFCLOCK=(
458 - oncore trimble truetime gpsd jjy generic spectracom
459 - shm pps hpgps zyfer arbiter nmea modem local
460 -)
461 -
462 -IUSE_NTPSEC_REFCLOCK=${NTPSEC_REFCLOCK[@]/#/rclock_}
463 -
464 -LICENSE="HPND MIT BSD-2 BSD CC-BY-SA-4.0"
465 -SLOT="0"
466 -IUSE="${IUSE_NTPSEC_REFCLOCK} debug doc early gdb heat libbsd nist ntpviz samba seccomp smear" #ionice
467 -REQUIRED_USE="${PYTHON_REQUIRED_USE} nist? ( rclock_local )"
468 -
469 -# net-misc/pps-tools oncore,pps
470 -DEPEND="${PYTHON_DEPS}
471 - dev-libs/openssl:=
472 - dev-python/psutil[${PYTHON_USEDEP}]
473 - sys-libs/libcap
474 - libbsd? ( dev-libs/libbsd:0= )
475 - seccomp? ( sys-libs/libseccomp )
476 - rclock_oncore? ( net-misc/pps-tools )
477 - rclock_pps? ( net-misc/pps-tools )"
478 -RDEPEND="${DEPEND}
479 - !net-misc/ntp
480 - !net-misc/openntpd
481 - acct-group/ntp
482 - acct-user/ntp
483 - ntpviz? ( sci-visualization/gnuplot media-fonts/liberation-fonts )"
484 -BDEPEND=">=app-text/asciidoc-8.6.8
485 - dev-libs/libxslt
486 - app-text/docbook-xsl-stylesheets
487 - sys-devel/bison"
488 -
489 -PATCHES=(
490 - "${FILESDIR}/${PN}-1.1.9-remove-asciidoctor-from-config.patch"
491 - "${FILESDIR}/${PN}-1.2.1-seccomp-rollup.patch"
492 - "${FILESDIR}/${PN}-1.2.1-seccomp-rseq-glibc-2.35.patch"
493 - "${FILESDIR}/${PN}-1.2.1-build-notests.patch"
494 - "${FILESDIR}/${PN}-py3-test-clarify.patch"
495 -)
496 -
497 -WAF_BINARY="${S}/waf"
498 -
499 -src_prepare() {
500 - default
501 -
502 - # Remove autostripping of binaries
503 - sed -i -e '/Strip binaries/d' wscript || die
504 - if ! use libbsd ; then
505 - eapply "${FILESDIR}/${PN}-no-bsd.patch"
506 - fi
507 - # remove extra default pool servers
508 - sed -i '/use-pool/s/^/#/' "${S}"/etc/ntp.d/default.conf || die
509 -
510 - python_copy_sources
511 -}
512 -
513 -src_configure() {
514 - is-flagq -flto* && filter-flags -flto* -fuse-linker-plugin
515 -
516 - local string_127=""
517 - local rclocks="";
518 - local CLOCKSTRING=""
519 -
520 - for refclock in ${NTPSEC_REFCLOCK[@]} ; do
521 - if use rclock_${refclock} ; then
522 - string_127+="$refclock,"
523 - fi
524 - done
525 - CLOCKSTRING="`echo ${string_127}|sed 's|,$||'`"
526 -
527 - local myconf=(
528 - --notests
529 - --nopyc
530 - --nopyo
531 - --enable-pylib ext
532 - --refclock="${CLOCKSTRING}"
533 - #--build-epoch="$(date +%s)"
534 - $(use doc || echo "--disable-doc")
535 - $(use early && echo "--enable-early-droproot")
536 - $(use gdb && echo "--enable-debug-gdb")
537 - $(use samba && echo "--enable-mssntp")
538 - $(use seccomp && echo "--enable-seccomp")
539 - $(use smear && echo "--enable-leap-smear")
540 - $(use debug && echo "--enable-debug")
541 - )
542 -
543 - python_configure() {
544 - waf-utils_src_configure "${myconf[@]}"
545 - }
546 - python_foreach_impl run_in_build_dir python_configure
547 -}
548 -
549 -src_compile() {
550 - unset MAKEOPTS
551 - python_compile() {
552 - waf-utils_src_compile --notests
553 - }
554 - python_foreach_impl run_in_build_dir python_compile
555 -}
556 -
557 -src_test() {
558 - python_compile() {
559 - waf-utils_src_compile check
560 - }
561 - python_foreach_impl run_in_build_dir python_compile
562 -}
563 -
564 -python_test() {
565 - # Silence QA warning as we're running tests via src_test anyway.
566 - :;
567 -}
568 -
569 -src_install() {
570 - python_install() {
571 - waf-utils_src_install --notests
572 - python_fix_shebang "${ED}"
573 - }
574 - python_foreach_impl run_in_build_dir python_install
575 - python_foreach_impl python_optimize
576 -
577 - # Install heat generating scripts
578 - use heat && dosbin "${S}"/contrib/ntpheat{,usb}
579 -
580 - # Install the openrc files
581 - newinitd "${FILESDIR}"/ntpd.rc-r3 ntp
582 - newconfd "${FILESDIR}"/ntpd.confd ntp
583 -
584 - # Install the systemd unit file
585 - systemd_newunit "${FILESDIR}"/ntpd-r1.service ntpd.service
586 -
587 - # Prepare a directory for the ntp.drift file
588 - mkdir -pv "${ED}"/var/lib/ntp
589 - chown ntp:ntp "${ED}"/var/lib/ntp
590 - chmod 770 "${ED}"/var/lib/ntp
591 - keepdir /var/lib/ntp
592 -
593 - # Install a log rotate script
594 - mkdir -pv "${ED}"/etc/logrotate.d
595 - cp -v "${S}"/etc/logrotate-config.ntpd "${ED}"/etc/logrotate.d/ntpd
596 -
597 - # Install the configuration file and sample configuration
598 - cp -v "${FILESDIR}"/ntp.conf "${ED}"/etc/ntp.conf
599 - cp -Rv "${S}"/etc/ntp.d/ "${ED}"/etc/
600 -
601 - # move doc files to /usr/share/doc/"${P}"
602 - use doc && mv -v "${ED}"/usr/share/doc/"${PN}" "${ED}"/usr/share/doc/"${P}"/html
603 -}
604 -
605 -pkg_postinst() {
606 - einfo "If you want to serve time on your local network, then"
607 - einfo "you should disable all the ref_clocks unless you have"
608 - einfo "one and can get stable time from it. Feel free to try"
609 - einfo "it but PPS probably won't work unless you have a UART"
610 - einfo "GPS that actually provides PPS messages."
611 -}
612
613 diff --git a/net-misc/ntpsec/ntpsec-1.2.1-r5.ebuild b/net-misc/ntpsec/ntpsec-1.2.1-r5.ebuild
614 deleted file mode 100644
615 index faba59c221e6..000000000000
616 --- a/net-misc/ntpsec/ntpsec-1.2.1-r5.ebuild
617 +++ /dev/null
618 @@ -1,178 +0,0 @@
619 -# Copyright 1999-2022 Gentoo Authors
620 -# Distributed under the terms of the GNU General Public License v2
621 -
622 -EAPI=7
623 -
624 -PYTHON_COMPAT=( python3_{8..10} )
625 -PYTHON_REQ_USE='threads(+)'
626 -DISTUTILS_USE_SETUPTOOLS=no
627 -
628 -inherit distutils-r1 flag-o-matic waf-utils systemd
629 -
630 -if [[ ${PV} == *9999* ]]; then
631 - inherit git-r3
632 - EGIT_REPO_URI="https://gitlab.com/NTPsec/ntpsec.git"
633 -else
634 - SRC_URI="ftp://ftp.ntpsec.org/pub/releases/${P}.tar.gz"
635 - KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
636 -fi
637 -
638 -DESCRIPTION="The NTP reference implementation, refactored"
639 -HOMEPAGE="https://www.ntpsec.org/"
640 -
641 -NTPSEC_REFCLOCK=(
642 - oncore trimble truetime gpsd jjy generic spectracom
643 - shm pps hpgps zyfer arbiter nmea modem local
644 -)
645 -
646 -IUSE_NTPSEC_REFCLOCK=${NTPSEC_REFCLOCK[@]/#/rclock_}
647 -
648 -LICENSE="HPND MIT BSD-2 BSD CC-BY-SA-4.0"
649 -SLOT="0"
650 -IUSE="${IUSE_NTPSEC_REFCLOCK} debug doc early gdb heat libbsd nist ntpviz samba seccomp smear" #ionice
651 -REQUIRED_USE="${PYTHON_REQUIRED_USE} nist? ( rclock_local )"
652 -
653 -# net-misc/pps-tools oncore,pps
654 -DEPEND="${PYTHON_DEPS}
655 - dev-libs/openssl:=
656 - dev-python/psutil[${PYTHON_USEDEP}]
657 - sys-libs/libcap
658 - libbsd? ( dev-libs/libbsd:0= )
659 - seccomp? ( sys-libs/libseccomp )
660 - rclock_oncore? ( net-misc/pps-tools )
661 - rclock_pps? ( net-misc/pps-tools )"
662 -RDEPEND="${DEPEND}
663 - !net-misc/ntp
664 - !net-misc/openntpd
665 - acct-group/ntp
666 - acct-user/ntp
667 - ntpviz? ( sci-visualization/gnuplot media-fonts/liberation-fonts )"
668 -BDEPEND=">=app-text/asciidoc-8.6.8
669 - dev-libs/libxslt
670 - app-text/docbook-xsl-stylesheets
671 - sys-devel/bison"
672 -
673 -PATCHES=(
674 - "${FILESDIR}/${PN}-1.1.9-remove-asciidoctor-from-config.patch"
675 - "${FILESDIR}/${PN}-1.2.1-seccomp-rollup.patch"
676 - "${FILESDIR}/${PN}-1.2.1-seccomp-rseq-glibc-2.35.patch"
677 - "${FILESDIR}/${PN}-1.2.1-build-notests.patch"
678 - "${FILESDIR}/${PN}-py3-test-clarify.patch"
679 - "${FILESDIR}/${PN}-1.2.1-seccomp-nsd.patch"
680 -)
681 -
682 -WAF_BINARY="${S}/waf"
683 -
684 -src_prepare() {
685 - default
686 -
687 - # Remove autostripping of binaries
688 - sed -i -e '/Strip binaries/d' wscript || die
689 - if ! use libbsd ; then
690 - eapply "${FILESDIR}/${PN}-no-bsd.patch"
691 - fi
692 - # remove extra default pool servers
693 - sed -i '/use-pool/s/^/#/' "${S}"/etc/ntp.d/default.conf || die
694 -
695 - python_copy_sources
696 -}
697 -
698 -src_configure() {
699 - is-flagq -flto* && filter-flags -flto* -fuse-linker-plugin
700 -
701 - local string_127=""
702 - local rclocks="";
703 - local CLOCKSTRING=""
704 -
705 - for refclock in ${NTPSEC_REFCLOCK[@]} ; do
706 - if use rclock_${refclock} ; then
707 - string_127+="$refclock,"
708 - fi
709 - done
710 - CLOCKSTRING="`echo ${string_127}|sed 's|,$||'`"
711 -
712 - local myconf=(
713 - --notests
714 - --nopyc
715 - --nopyo
716 - --enable-pylib ext
717 - --refclock="${CLOCKSTRING}"
718 - #--build-epoch="$(date +%s)"
719 - $(use doc || echo "--disable-doc")
720 - $(use early && echo "--enable-early-droproot")
721 - $(use gdb && echo "--enable-debug-gdb")
722 - $(use samba && echo "--enable-mssntp")
723 - $(use seccomp && echo "--enable-seccomp")
724 - $(use smear && echo "--enable-leap-smear")
725 - $(use debug && echo "--enable-debug")
726 - )
727 -
728 - python_configure() {
729 - waf-utils_src_configure "${myconf[@]}"
730 - }
731 - python_foreach_impl run_in_build_dir python_configure
732 -}
733 -
734 -src_compile() {
735 - unset MAKEOPTS
736 - python_compile() {
737 - waf-utils_src_compile --notests
738 - }
739 - python_foreach_impl run_in_build_dir python_compile
740 -}
741 -
742 -src_test() {
743 - python_compile() {
744 - waf-utils_src_compile check
745 - }
746 - python_foreach_impl run_in_build_dir python_compile
747 -}
748 -
749 -python_test() {
750 - # Silence QA warning as we're running tests via src_test anyway.
751 - :;
752 -}
753 -
754 -src_install() {
755 - python_install() {
756 - waf-utils_src_install --notests
757 - python_fix_shebang "${ED}"
758 - }
759 - python_foreach_impl run_in_build_dir python_install
760 - python_foreach_impl python_optimize
761 -
762 - # Install heat generating scripts
763 - use heat && dosbin "${S}"/contrib/ntpheat{,usb}
764 -
765 - # Install the openrc files
766 - newinitd "${FILESDIR}"/ntpd.rc-r3 ntp
767 - newconfd "${FILESDIR}"/ntpd.confd ntp
768 -
769 - # Install the systemd unit file
770 - systemd_newunit "${FILESDIR}"/ntpd-r1.service ntpd.service
771 -
772 - # Prepare a directory for the ntp.drift file
773 - mkdir -pv "${ED}"/var/lib/ntp
774 - chown ntp:ntp "${ED}"/var/lib/ntp
775 - chmod 770 "${ED}"/var/lib/ntp
776 - keepdir /var/lib/ntp
777 -
778 - # Install a log rotate script
779 - mkdir -pv "${ED}"/etc/logrotate.d
780 - cp -v "${S}"/etc/logrotate-config.ntpd "${ED}"/etc/logrotate.d/ntpd
781 -
782 - # Install the configuration file and sample configuration
783 - cp -v "${FILESDIR}"/ntp.conf "${ED}"/etc/ntp.conf
784 - cp -Rv "${S}"/etc/ntp.d/ "${ED}"/etc/
785 -
786 - # move doc files to /usr/share/doc/"${P}"
787 - use doc && mv -v "${ED}"/usr/share/doc/"${PN}" "${ED}"/usr/share/doc/"${P}"/html
788 -}
789 -
790 -pkg_postinst() {
791 - einfo "If you want to serve time on your local network, then"
792 - einfo "you should disable all the ref_clocks unless you have"
793 - einfo "one and can get stable time from it. Feel free to try"
794 - einfo "it but PPS probably won't work unless you have a UART"
795 - einfo "GPS that actually provides PPS messages."
796 -}