From c33fe4e851f4dcb758afd2c443c2e2d2e4494c51 Mon Sep 17 00:00:00 2001 From: fritzkink Date: Fri, 3 Jan 2025 16:41:07 +0100 Subject: [PATCH] ntpsec - new package version 1.2.3 (possible ntp replacement) --- components/network/ntpsec/Makefile | 80 ++++++ .../ntpsec/manifests/sample-manifest.p5m | 235 ++++++++++++++++++ components/network/ntpsec/ntpsec.p5m | 235 ++++++++++++++++++ .../network/ntpsec/patches/STA_NANO.patch | 18 ++ components/network/ntpsec/patches/pic.patch | 22 ++ .../network/ntpsec/patches/typecast.patch | 20 ++ components/network/ntpsec/pkg5 | 15 ++ .../network/ntpsec/test/results-all.master | 17 ++ 8 files changed, 642 insertions(+) create mode 100644 components/network/ntpsec/Makefile create mode 100644 components/network/ntpsec/manifests/sample-manifest.p5m create mode 100644 components/network/ntpsec/ntpsec.p5m create mode 100644 components/network/ntpsec/patches/STA_NANO.patch create mode 100644 components/network/ntpsec/patches/pic.patch create mode 100644 components/network/ntpsec/patches/typecast.patch create mode 100644 components/network/ntpsec/pkg5 create mode 100644 components/network/ntpsec/test/results-all.master diff --git a/components/network/ntpsec/Makefile b/components/network/ntpsec/Makefile new file mode 100644 index 00000000000..7454aaa17d5 --- /dev/null +++ b/components/network/ntpsec/Makefile @@ -0,0 +1,80 @@ +# +# CDDL HEADER START +# +# The contents of this file are subject to the terms of the +# Common Development and Distribution License (the "License"). +# You may not use this file except in compliance with the License. +# +# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +# or http://www.opensolaris.org/os/licensing. +# See the License for the specific language governing permissions +# and limitations under the License. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file at usr/src/OPENSOLARIS.LICENSE. +# If applicable, add the following below this CDDL HEADER, with the +# fields enclosed by brackets "[]" replaced with your own identifying +# information: Portions Copyright [yyyy] [name of copyright owner] +# +# CDDL HEADER END +# + +# +# Copyright (c) 2025, Friedrich.kink +# + +BUILD_STYLE = waf + +include ../../../make-rules/shared-macros.mk + +COMPONENT_NAME= ntpsec +COMPONENT_VERSION= 1.2.3 +COMPONENT_SUMMARY= Network Time Protocol Daemon v4 +COMPONENT_DESCRIPTION= Network Time Protocol v4, NTP Daemon and Utilities +COMPONENT_PROJECT_URL= https://www.ntpsec.org/ +COMPONENT_SRC= $(COMPONENT_SRC_NAME)-$(COMPONENT_VERSION) +COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz +COMPONENT_ARCHIVE_HASH= sha256:750b7337b3b42b5573700a8d5a483e1bf556e447549177a670c7c00fb9049375 +COMPONENT_ARCHIVE_URL= ftp://ftp.ntpsec.org/pub/releases/$(COMPONENT_ARCHIVE) +COMPONENT_FMRI= service/network/ntpsec +COMPONENT_CLASSIFICATION= System/Services +COMPONENT_LICENSE= ntp license +COMPONENT_LICENSE_FILE= LICENSE + +ASLR_MODE= $(ASLR_ENABLE) +ENV= + +include $(WS_MAKE_RULES)/common.mk + +COMPONENT_TEST_TARGETS = check + +CONFIGURE_OPTIONS += --cflags="-std=gnu11" +CONFIGURE_OPTIONS += --enable-early-droproot +CONFIGURE_OPTIONS += --enable-leap-smear +CONFIGURE_OPTIONS += --enable-mssntp +CONFIGURE_OPTIONS += --refclock=all +CONFIGURE_OPTIONS += --enable-manpage +CONFIGURE_OPTIONS += --enable-attic + +COMPONENT_POST_INSTALL_ACTION += \ + for file in \ + `ggrep -rlh '^\#!.*/usr/bin/env python' $(PROTOUSRBINDIR)/*`; do \ + sed -i -e 's:\#!.*/usr/bin/env.*:\#!$(PYTHON):' $$file; \ + done && \ + cd $(SOURCE_DIR)/LICENSES && \ + for file in `ls -1`; do \ + cat $$file >> ../LICENSE; \ + done + +COMPONENT_TEST_TRANSFORMS = \ + '-e "/build/d" ' \ + '-e "/check/d" ' + +# Auto-generated dependencies +PYTHON_REQUIRED_PACKAGES += library/python/psutil +PYTHON_REQUIRED_PACKAGES += runtime/python +REQUIRED_PACKAGES += $(OPENSSL_PKG) +REQUIRED_PACKAGES += service/network/dns/mdns +REQUIRED_PACKAGES += shell/ksh93 +REQUIRED_PACKAGES += system/library +REQUIRED_PACKAGES += system/library/math diff --git a/components/network/ntpsec/manifests/sample-manifest.p5m b/components/network/ntpsec/manifests/sample-manifest.p5m new file mode 100644 index 00000000000..189aaa1665a --- /dev/null +++ b/components/network/ntpsec/manifests/sample-manifest.p5m @@ -0,0 +1,235 @@ +# +# This file and its contents are supplied under the terms of the +# Common Development and Distribution License ("CDDL"), version 1.0. +# You may only use this file in accordance with the terms of version +# 1.0 of the CDDL. +# +# A full copy of the text of the CDDL should have accompanied this +# source. A copy of the CDDL is also available via the Internet at +# http://www.illumos.org/license/CDDL. +# + +# +# Copyright 2025 +# + +set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION) +set name=pkg.human-version value=$(HUMAN_VERSION) +set name=pkg.summary value="$(COMPONENT_SUMMARY)" +set name=info.classification value="$(COMPONENT_CLASSIFICATION)" +set name=info.upstream-url value=$(COMPONENT_PROJECT_URL) +set name=info.source-url value=$(COMPONENT_ARCHIVE_URL) +set name=org.opensolaris.consolidation value=$(CONSOLIDATION) + +license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)' + +file path=usr/bin/ntpdig +file path=usr/bin/ntpfrob +file path=usr/bin/ntpkeygen +file path=usr/bin/ntpleapfetch +file path=usr/bin/ntplogtemp +file path=usr/bin/ntpmon +file path=usr/bin/ntpq +file path=usr/bin/ntpsnmpd +file path=usr/bin/ntpsweep +file path=usr/bin/ntptime +file path=usr/bin/ntptrace +file path=usr/bin/ntpviz +file path=usr/bin/ntpwait +link path=usr/lib/$(MACH64)/libntpc.so target=libntpc.so.1.1.0 +link path=usr/lib/$(MACH64)/libntpc.so.1 target=libntpc.so.1.1.0 +file path=usr/lib/$(MACH64)/libntpc.so.1.1.0 +file path=usr/lib/python$(PYVER)/vendor-packages/ntp-$(HUMAN_VERSION).egg-info +file path=usr/lib/python$(PYVER)/vendor-packages/ntp/__init__.py +file path=usr/lib/python$(PYVER)/vendor-packages/ntp/agentx.py +file path=usr/lib/python$(PYVER)/vendor-packages/ntp/agentx_packet.py +file path=usr/lib/python$(PYVER)/vendor-packages/ntp/control.py +file path=usr/lib/python$(PYVER)/vendor-packages/ntp/magic.py +file path=usr/lib/python$(PYVER)/vendor-packages/ntp/ntpc.py +file path=usr/lib/python$(PYVER)/vendor-packages/ntp/packet.py +file path=usr/lib/python$(PYVER)/vendor-packages/ntp/poly.py +file path=usr/lib/python$(PYVER)/vendor-packages/ntp/statfiles.py +file path=usr/lib/python$(PYVER)/vendor-packages/ntp/util.py +file path=usr/sbin/ntpd +file path=usr/share/doc/ntpsec/404.html +file path=usr/share/doc/ntpsec/NTS-QuickStart.html +file path=usr/share/doc/ntpsec/access.html +file path=usr/share/doc/ntpsec/accopt.html +file path=usr/share/doc/ntpsec/asciidoc.css +file path=usr/share/doc/ntpsec/asciidoc.js +file path=usr/share/doc/ntpsec/assoc.html +file path=usr/share/doc/ntpsec/authentic.html +file path=usr/share/doc/ntpsec/authopt.html +file path=usr/share/doc/ntpsec/bugs.html +file path=usr/share/doc/ntpsec/build.html +file path=usr/share/doc/ntpsec/clock.html +file path=usr/share/doc/ntpsec/clockopt.html +file path=usr/share/doc/ntpsec/cluster.html +file path=usr/share/doc/ntpsec/comdex.html +file path=usr/share/doc/ntpsec/confopt.html +file path=usr/share/doc/ntpsec/copyright.html +file path=usr/share/doc/ntpsec/debug.html +file path=usr/share/doc/ntpsec/decode.html +file path=usr/share/doc/ntpsec/discipline.html +file path=usr/share/doc/ntpsec/discover.html +file path=usr/share/doc/ntpsec/driver_arbiter.html +file path=usr/share/doc/ntpsec/driver_generic.html +file path=usr/share/doc/ntpsec/driver_gpsd.html +file path=usr/share/doc/ntpsec/driver_howto.html +file path=usr/share/doc/ntpsec/driver_hpgps.html +file path=usr/share/doc/ntpsec/driver_jjy.html +file path=usr/share/doc/ntpsec/driver_local.html +file path=usr/share/doc/ntpsec/driver_modem.html +file path=usr/share/doc/ntpsec/driver_nmea.html +file path=usr/share/doc/ntpsec/driver_oncore.html +file path=usr/share/doc/ntpsec/driver_pps.html +file path=usr/share/doc/ntpsec/driver_shm.html +file path=usr/share/doc/ntpsec/driver_spectracom.html +file path=usr/share/doc/ntpsec/driver_trimble.html +file path=usr/share/doc/ntpsec/driver_truetime.html +file path=usr/share/doc/ntpsec/driver_zyfer.html +file path=usr/share/doc/ntpsec/extern.html +file path=usr/share/doc/ntpsec/filter.html +file path=usr/share/doc/ntpsec/generic_howto.html +file path=usr/share/doc/ntpsec/history.html +file path=usr/share/doc/ntpsec/huffpuff.html +file path=usr/share/doc/ntpsec/icons/home.gif +file path=usr/share/doc/ntpsec/icons/mail2.gif +file path=usr/share/doc/ntpsec/icons/sitemap.png +file path=usr/share/doc/ntpsec/index.html +file path=usr/share/doc/ntpsec/kern.html +file path=usr/share/doc/ntpsec/kernpps.html +file path=usr/share/doc/ntpsec/leap.html +file path=usr/share/doc/ntpsec/leapsmear.html +file path=usr/share/doc/ntpsec/miscopt.html +file path=usr/share/doc/ntpsec/mode6.html +file path=usr/share/doc/ntpsec/monopt.html +file path=usr/share/doc/ntpsec/msyslog.html +file path=usr/share/doc/ntpsec/ntp_conf.html +file path=usr/share/doc/ntpsec/ntp_config.html +file path=usr/share/doc/ntpsec/ntp_keys.html +file path=usr/share/doc/ntpsec/ntpd.html +file path=usr/share/doc/ntpsec/ntpdig.html +file path=usr/share/doc/ntpsec/ntpfrob.html +file path=usr/share/doc/ntpsec/ntpkeygen.html +file path=usr/share/doc/ntpsec/ntpleapfetch.html +file path=usr/share/doc/ntpsec/ntploggps.html +file path=usr/share/doc/ntpsec/ntplogtemp.html +file path=usr/share/doc/ntpsec/ntpmon.html +file path=usr/share/doc/ntpsec/ntpq.html +file path=usr/share/doc/ntpsec/ntpsec.html +file path=usr/share/doc/ntpsec/ntpsnmpd.html +file path=usr/share/doc/ntpsec/ntpspeak.html +file path=usr/share/doc/ntpsec/ntpsweep.html +file path=usr/share/doc/ntpsec/ntptime.html +file path=usr/share/doc/ntpsec/ntptrace.html +file path=usr/share/doc/ntpsec/ntpviz.html +file path=usr/share/doc/ntpsec/ntpwait.html +file path=usr/share/doc/ntpsec/oncore-shmem.html +file path=usr/share/doc/ntpsec/orphan.html +file path=usr/share/doc/ntpsec/outside-tools.html +file path=usr/share/doc/ntpsec/parsedata.html +file path=usr/share/doc/ntpsec/pic/SAppr.jpg +file path=usr/share/doc/ntpsec/pic/alice11.gif +file path=usr/share/doc/ntpsec/pic/alice13.gif +file path=usr/share/doc/ntpsec/pic/alice15.gif +file path=usr/share/doc/ntpsec/pic/alice23.gif +file path=usr/share/doc/ntpsec/pic/alice32.gif +file path=usr/share/doc/ntpsec/pic/alice35.gif +file path=usr/share/doc/ntpsec/pic/alice38.gif +file path=usr/share/doc/ntpsec/pic/alice44.gif +file path=usr/share/doc/ntpsec/pic/alice47.gif +file path=usr/share/doc/ntpsec/pic/alice51.gif +file path=usr/share/doc/ntpsec/pic/alice61.gif +file path=usr/share/doc/ntpsec/pic/barnstable.gif +file path=usr/share/doc/ntpsec/pic/beaver.gif +file path=usr/share/doc/ntpsec/pic/boom3.gif +file path=usr/share/doc/ntpsec/pic/boom3a.gif +file path=usr/share/doc/ntpsec/pic/boom4.gif +file path=usr/share/doc/ntpsec/pic/broad.gif +file path=usr/share/doc/ntpsec/pic/bustardfly.gif +file path=usr/share/doc/ntpsec/pic/c51.jpg +file path=usr/share/doc/ntpsec/pic/clocktower128.png +file path=usr/share/doc/ntpsec/pic/description.jpg +file path=usr/share/doc/ntpsec/pic/discipline.gif +file path=usr/share/doc/ntpsec/pic/dogsnake.gif +file path=usr/share/doc/ntpsec/pic/driver_palisade.gif +file path=usr/share/doc/ntpsec/pic/fg6021.gif +file path=usr/share/doc/ntpsec/pic/fig_3_1.gif +file path=usr/share/doc/ntpsec/pic/flatheads.gif +file path=usr/share/doc/ntpsec/pic/flt1.gif +file path=usr/share/doc/ntpsec/pic/flt2.gif +file path=usr/share/doc/ntpsec/pic/flt3.gif +file path=usr/share/doc/ntpsec/pic/flt4.gif +file path=usr/share/doc/ntpsec/pic/flt5.gif +file path=usr/share/doc/ntpsec/pic/flt6.gif +file path=usr/share/doc/ntpsec/pic/flt7.gif +file path=usr/share/doc/ntpsec/pic/flt8.gif +file path=usr/share/doc/ntpsec/pic/flt9.gif +file path=usr/share/doc/ntpsec/pic/gps167.jpg +file path=usr/share/doc/ntpsec/pic/hornraba.gif +file path=usr/share/doc/ntpsec/pic/howland.jpg +file path=usr/share/doc/ntpsec/pic/igclock.gif +file path=usr/share/doc/ntpsec/pic/kelly_pogo_earthday.jpg +file path=usr/share/doc/ntpsec/pic/looking.jpg +file path=usr/share/doc/ntpsec/pic/neoclock4x.gif +file path=usr/share/doc/ntpsec/pic/oncore_evalbig.gif +file path=usr/share/doc/ntpsec/pic/oncore_utplusbig.gif +file path=usr/share/doc/ntpsec/pic/orchestra.gif +file path=usr/share/doc/ntpsec/pic/oz2.gif +file path=usr/share/doc/ntpsec/pic/panda.gif +file path=usr/share/doc/ntpsec/pic/pd_om006.gif +file path=usr/share/doc/ntpsec/pic/pd_om011.gif +file path=usr/share/doc/ntpsec/pic/peer.gif +file path=usr/share/doc/ntpsec/pic/pogo-enemy2.png +file path=usr/share/doc/ntpsec/pic/pogo.gif +file path=usr/share/doc/ntpsec/pic/pogo1a.gif +file path=usr/share/doc/ntpsec/pic/pogo3a.gif +file path=usr/share/doc/ntpsec/pic/pogo4.gif +file path=usr/share/doc/ntpsec/pic/pogo5.gif +file path=usr/share/doc/ntpsec/pic/pogo6.gif +file path=usr/share/doc/ntpsec/pic/pogo7.gif +file path=usr/share/doc/ntpsec/pic/pogo8.gif +file path=usr/share/doc/ntpsec/pic/pogocell.gif +file path=usr/share/doc/ntpsec/pic/pzf511.jpg +file path=usr/share/doc/ntpsec/pic/radio2.jpg +file path=usr/share/doc/ntpsec/pic/sheepb.jpg +file path=usr/share/doc/ntpsec/pic/stack1a.jpg +file path=usr/share/doc/ntpsec/pic/stats.gif +file path=usr/share/doc/ntpsec/pic/sx5.gif +file path=usr/share/doc/ntpsec/pic/thunderbolt.jpg +file path=usr/share/doc/ntpsec/pic/time1.gif +file path=usr/share/doc/ntpsec/pic/tonea.gif +file path=usr/share/doc/ntpsec/pic/tribeb.gif +file path=usr/share/doc/ntpsec/pic/which-way-is.up.jpg +file path=usr/share/doc/ntpsec/pic/wingdorothy.gif +file path=usr/share/doc/ntpsec/poll.html +file path=usr/share/doc/ntpsec/pps.html +file path=usr/share/doc/ntpsec/prefer.html +file path=usr/share/doc/ntpsec/quick.html +file path=usr/share/doc/ntpsec/rate.html +file path=usr/share/doc/ntpsec/rdebug.html +file path=usr/share/doc/ntpsec/refclock.html +file path=usr/share/doc/ntpsec/rollover.html +file path=usr/share/doc/ntpsec/select.html +file path=usr/share/doc/ntpsec/sitemap.html +file path=usr/share/doc/ntpsec/standards.html +file path=usr/share/doc/ntpsec/stats.html +file path=usr/share/doc/ntpsec/tf582_4.html +file path=usr/share/doc/ntpsec/warp.html +file path=usr/share/man/man1/ntpdig.1 +file path=usr/share/man/man1/ntplogtemp.1 +file path=usr/share/man/man1/ntpmon.1 +file path=usr/share/man/man1/ntpq.1 +file path=usr/share/man/man1/ntpsweep.1 +file path=usr/share/man/man1/ntptrace.1 +file path=usr/share/man/man1/ntpviz.1 +file path=usr/share/man/man5/ntp.conf.5 +file path=usr/share/man/man5/ntp.keys.5 +file path=usr/share/man/man8/ntpd.8 +file path=usr/share/man/man8/ntpfrob.8 +file path=usr/share/man/man8/ntpkeygen.8 +file path=usr/share/man/man8/ntpleapfetch.8 +file path=usr/share/man/man8/ntpsnmpd.8 +file path=usr/share/man/man8/ntptime.8 +file path=usr/share/man/man8/ntpwait.8 diff --git a/components/network/ntpsec/ntpsec.p5m b/components/network/ntpsec/ntpsec.p5m new file mode 100644 index 00000000000..189aaa1665a --- /dev/null +++ b/components/network/ntpsec/ntpsec.p5m @@ -0,0 +1,235 @@ +# +# This file and its contents are supplied under the terms of the +# Common Development and Distribution License ("CDDL"), version 1.0. +# You may only use this file in accordance with the terms of version +# 1.0 of the CDDL. +# +# A full copy of the text of the CDDL should have accompanied this +# source. A copy of the CDDL is also available via the Internet at +# http://www.illumos.org/license/CDDL. +# + +# +# Copyright 2025 +# + +set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION) +set name=pkg.human-version value=$(HUMAN_VERSION) +set name=pkg.summary value="$(COMPONENT_SUMMARY)" +set name=info.classification value="$(COMPONENT_CLASSIFICATION)" +set name=info.upstream-url value=$(COMPONENT_PROJECT_URL) +set name=info.source-url value=$(COMPONENT_ARCHIVE_URL) +set name=org.opensolaris.consolidation value=$(CONSOLIDATION) + +license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)' + +file path=usr/bin/ntpdig +file path=usr/bin/ntpfrob +file path=usr/bin/ntpkeygen +file path=usr/bin/ntpleapfetch +file path=usr/bin/ntplogtemp +file path=usr/bin/ntpmon +file path=usr/bin/ntpq +file path=usr/bin/ntpsnmpd +file path=usr/bin/ntpsweep +file path=usr/bin/ntptime +file path=usr/bin/ntptrace +file path=usr/bin/ntpviz +file path=usr/bin/ntpwait +link path=usr/lib/$(MACH64)/libntpc.so target=libntpc.so.1.1.0 +link path=usr/lib/$(MACH64)/libntpc.so.1 target=libntpc.so.1.1.0 +file path=usr/lib/$(MACH64)/libntpc.so.1.1.0 +file path=usr/lib/python$(PYVER)/vendor-packages/ntp-$(HUMAN_VERSION).egg-info +file path=usr/lib/python$(PYVER)/vendor-packages/ntp/__init__.py +file path=usr/lib/python$(PYVER)/vendor-packages/ntp/agentx.py +file path=usr/lib/python$(PYVER)/vendor-packages/ntp/agentx_packet.py +file path=usr/lib/python$(PYVER)/vendor-packages/ntp/control.py +file path=usr/lib/python$(PYVER)/vendor-packages/ntp/magic.py +file path=usr/lib/python$(PYVER)/vendor-packages/ntp/ntpc.py +file path=usr/lib/python$(PYVER)/vendor-packages/ntp/packet.py +file path=usr/lib/python$(PYVER)/vendor-packages/ntp/poly.py +file path=usr/lib/python$(PYVER)/vendor-packages/ntp/statfiles.py +file path=usr/lib/python$(PYVER)/vendor-packages/ntp/util.py +file path=usr/sbin/ntpd +file path=usr/share/doc/ntpsec/404.html +file path=usr/share/doc/ntpsec/NTS-QuickStart.html +file path=usr/share/doc/ntpsec/access.html +file path=usr/share/doc/ntpsec/accopt.html +file path=usr/share/doc/ntpsec/asciidoc.css +file path=usr/share/doc/ntpsec/asciidoc.js +file path=usr/share/doc/ntpsec/assoc.html +file path=usr/share/doc/ntpsec/authentic.html +file path=usr/share/doc/ntpsec/authopt.html +file path=usr/share/doc/ntpsec/bugs.html +file path=usr/share/doc/ntpsec/build.html +file path=usr/share/doc/ntpsec/clock.html +file path=usr/share/doc/ntpsec/clockopt.html +file path=usr/share/doc/ntpsec/cluster.html +file path=usr/share/doc/ntpsec/comdex.html +file path=usr/share/doc/ntpsec/confopt.html +file path=usr/share/doc/ntpsec/copyright.html +file path=usr/share/doc/ntpsec/debug.html +file path=usr/share/doc/ntpsec/decode.html +file path=usr/share/doc/ntpsec/discipline.html +file path=usr/share/doc/ntpsec/discover.html +file path=usr/share/doc/ntpsec/driver_arbiter.html +file path=usr/share/doc/ntpsec/driver_generic.html +file path=usr/share/doc/ntpsec/driver_gpsd.html +file path=usr/share/doc/ntpsec/driver_howto.html +file path=usr/share/doc/ntpsec/driver_hpgps.html +file path=usr/share/doc/ntpsec/driver_jjy.html +file path=usr/share/doc/ntpsec/driver_local.html +file path=usr/share/doc/ntpsec/driver_modem.html +file path=usr/share/doc/ntpsec/driver_nmea.html +file path=usr/share/doc/ntpsec/driver_oncore.html +file path=usr/share/doc/ntpsec/driver_pps.html +file path=usr/share/doc/ntpsec/driver_shm.html +file path=usr/share/doc/ntpsec/driver_spectracom.html +file path=usr/share/doc/ntpsec/driver_trimble.html +file path=usr/share/doc/ntpsec/driver_truetime.html +file path=usr/share/doc/ntpsec/driver_zyfer.html +file path=usr/share/doc/ntpsec/extern.html +file path=usr/share/doc/ntpsec/filter.html +file path=usr/share/doc/ntpsec/generic_howto.html +file path=usr/share/doc/ntpsec/history.html +file path=usr/share/doc/ntpsec/huffpuff.html +file path=usr/share/doc/ntpsec/icons/home.gif +file path=usr/share/doc/ntpsec/icons/mail2.gif +file path=usr/share/doc/ntpsec/icons/sitemap.png +file path=usr/share/doc/ntpsec/index.html +file path=usr/share/doc/ntpsec/kern.html +file path=usr/share/doc/ntpsec/kernpps.html +file path=usr/share/doc/ntpsec/leap.html +file path=usr/share/doc/ntpsec/leapsmear.html +file path=usr/share/doc/ntpsec/miscopt.html +file path=usr/share/doc/ntpsec/mode6.html +file path=usr/share/doc/ntpsec/monopt.html +file path=usr/share/doc/ntpsec/msyslog.html +file path=usr/share/doc/ntpsec/ntp_conf.html +file path=usr/share/doc/ntpsec/ntp_config.html +file path=usr/share/doc/ntpsec/ntp_keys.html +file path=usr/share/doc/ntpsec/ntpd.html +file path=usr/share/doc/ntpsec/ntpdig.html +file path=usr/share/doc/ntpsec/ntpfrob.html +file path=usr/share/doc/ntpsec/ntpkeygen.html +file path=usr/share/doc/ntpsec/ntpleapfetch.html +file path=usr/share/doc/ntpsec/ntploggps.html +file path=usr/share/doc/ntpsec/ntplogtemp.html +file path=usr/share/doc/ntpsec/ntpmon.html +file path=usr/share/doc/ntpsec/ntpq.html +file path=usr/share/doc/ntpsec/ntpsec.html +file path=usr/share/doc/ntpsec/ntpsnmpd.html +file path=usr/share/doc/ntpsec/ntpspeak.html +file path=usr/share/doc/ntpsec/ntpsweep.html +file path=usr/share/doc/ntpsec/ntptime.html +file path=usr/share/doc/ntpsec/ntptrace.html +file path=usr/share/doc/ntpsec/ntpviz.html +file path=usr/share/doc/ntpsec/ntpwait.html +file path=usr/share/doc/ntpsec/oncore-shmem.html +file path=usr/share/doc/ntpsec/orphan.html +file path=usr/share/doc/ntpsec/outside-tools.html +file path=usr/share/doc/ntpsec/parsedata.html +file path=usr/share/doc/ntpsec/pic/SAppr.jpg +file path=usr/share/doc/ntpsec/pic/alice11.gif +file path=usr/share/doc/ntpsec/pic/alice13.gif +file path=usr/share/doc/ntpsec/pic/alice15.gif +file path=usr/share/doc/ntpsec/pic/alice23.gif +file path=usr/share/doc/ntpsec/pic/alice32.gif +file path=usr/share/doc/ntpsec/pic/alice35.gif +file path=usr/share/doc/ntpsec/pic/alice38.gif +file path=usr/share/doc/ntpsec/pic/alice44.gif +file path=usr/share/doc/ntpsec/pic/alice47.gif +file path=usr/share/doc/ntpsec/pic/alice51.gif +file path=usr/share/doc/ntpsec/pic/alice61.gif +file path=usr/share/doc/ntpsec/pic/barnstable.gif +file path=usr/share/doc/ntpsec/pic/beaver.gif +file path=usr/share/doc/ntpsec/pic/boom3.gif +file path=usr/share/doc/ntpsec/pic/boom3a.gif +file path=usr/share/doc/ntpsec/pic/boom4.gif +file path=usr/share/doc/ntpsec/pic/broad.gif +file path=usr/share/doc/ntpsec/pic/bustardfly.gif +file path=usr/share/doc/ntpsec/pic/c51.jpg +file path=usr/share/doc/ntpsec/pic/clocktower128.png +file path=usr/share/doc/ntpsec/pic/description.jpg +file path=usr/share/doc/ntpsec/pic/discipline.gif +file path=usr/share/doc/ntpsec/pic/dogsnake.gif +file path=usr/share/doc/ntpsec/pic/driver_palisade.gif +file path=usr/share/doc/ntpsec/pic/fg6021.gif +file path=usr/share/doc/ntpsec/pic/fig_3_1.gif +file path=usr/share/doc/ntpsec/pic/flatheads.gif +file path=usr/share/doc/ntpsec/pic/flt1.gif +file path=usr/share/doc/ntpsec/pic/flt2.gif +file path=usr/share/doc/ntpsec/pic/flt3.gif +file path=usr/share/doc/ntpsec/pic/flt4.gif +file path=usr/share/doc/ntpsec/pic/flt5.gif +file path=usr/share/doc/ntpsec/pic/flt6.gif +file path=usr/share/doc/ntpsec/pic/flt7.gif +file path=usr/share/doc/ntpsec/pic/flt8.gif +file path=usr/share/doc/ntpsec/pic/flt9.gif +file path=usr/share/doc/ntpsec/pic/gps167.jpg +file path=usr/share/doc/ntpsec/pic/hornraba.gif +file path=usr/share/doc/ntpsec/pic/howland.jpg +file path=usr/share/doc/ntpsec/pic/igclock.gif +file path=usr/share/doc/ntpsec/pic/kelly_pogo_earthday.jpg +file path=usr/share/doc/ntpsec/pic/looking.jpg +file path=usr/share/doc/ntpsec/pic/neoclock4x.gif +file path=usr/share/doc/ntpsec/pic/oncore_evalbig.gif +file path=usr/share/doc/ntpsec/pic/oncore_utplusbig.gif +file path=usr/share/doc/ntpsec/pic/orchestra.gif +file path=usr/share/doc/ntpsec/pic/oz2.gif +file path=usr/share/doc/ntpsec/pic/panda.gif +file path=usr/share/doc/ntpsec/pic/pd_om006.gif +file path=usr/share/doc/ntpsec/pic/pd_om011.gif +file path=usr/share/doc/ntpsec/pic/peer.gif +file path=usr/share/doc/ntpsec/pic/pogo-enemy2.png +file path=usr/share/doc/ntpsec/pic/pogo.gif +file path=usr/share/doc/ntpsec/pic/pogo1a.gif +file path=usr/share/doc/ntpsec/pic/pogo3a.gif +file path=usr/share/doc/ntpsec/pic/pogo4.gif +file path=usr/share/doc/ntpsec/pic/pogo5.gif +file path=usr/share/doc/ntpsec/pic/pogo6.gif +file path=usr/share/doc/ntpsec/pic/pogo7.gif +file path=usr/share/doc/ntpsec/pic/pogo8.gif +file path=usr/share/doc/ntpsec/pic/pogocell.gif +file path=usr/share/doc/ntpsec/pic/pzf511.jpg +file path=usr/share/doc/ntpsec/pic/radio2.jpg +file path=usr/share/doc/ntpsec/pic/sheepb.jpg +file path=usr/share/doc/ntpsec/pic/stack1a.jpg +file path=usr/share/doc/ntpsec/pic/stats.gif +file path=usr/share/doc/ntpsec/pic/sx5.gif +file path=usr/share/doc/ntpsec/pic/thunderbolt.jpg +file path=usr/share/doc/ntpsec/pic/time1.gif +file path=usr/share/doc/ntpsec/pic/tonea.gif +file path=usr/share/doc/ntpsec/pic/tribeb.gif +file path=usr/share/doc/ntpsec/pic/which-way-is.up.jpg +file path=usr/share/doc/ntpsec/pic/wingdorothy.gif +file path=usr/share/doc/ntpsec/poll.html +file path=usr/share/doc/ntpsec/pps.html +file path=usr/share/doc/ntpsec/prefer.html +file path=usr/share/doc/ntpsec/quick.html +file path=usr/share/doc/ntpsec/rate.html +file path=usr/share/doc/ntpsec/rdebug.html +file path=usr/share/doc/ntpsec/refclock.html +file path=usr/share/doc/ntpsec/rollover.html +file path=usr/share/doc/ntpsec/select.html +file path=usr/share/doc/ntpsec/sitemap.html +file path=usr/share/doc/ntpsec/standards.html +file path=usr/share/doc/ntpsec/stats.html +file path=usr/share/doc/ntpsec/tf582_4.html +file path=usr/share/doc/ntpsec/warp.html +file path=usr/share/man/man1/ntpdig.1 +file path=usr/share/man/man1/ntplogtemp.1 +file path=usr/share/man/man1/ntpmon.1 +file path=usr/share/man/man1/ntpq.1 +file path=usr/share/man/man1/ntpsweep.1 +file path=usr/share/man/man1/ntptrace.1 +file path=usr/share/man/man1/ntpviz.1 +file path=usr/share/man/man5/ntp.conf.5 +file path=usr/share/man/man5/ntp.keys.5 +file path=usr/share/man/man8/ntpd.8 +file path=usr/share/man/man8/ntpfrob.8 +file path=usr/share/man/man8/ntpkeygen.8 +file path=usr/share/man/man8/ntpleapfetch.8 +file path=usr/share/man/man8/ntpsnmpd.8 +file path=usr/share/man/man8/ntptime.8 +file path=usr/share/man/man8/ntpwait.8 diff --git a/components/network/ntpsec/patches/STA_NANO.patch b/components/network/ntpsec/patches/STA_NANO.patch new file mode 100644 index 00000000000..e48b649b010 --- /dev/null +++ b/components/network/ntpsec/patches/STA_NANO.patch @@ -0,0 +1,18 @@ +--- ntpsec-1.2.3/libntp/clockwork.c 2025-01-02 19:43:23.169693700 +0100 ++++ ntpsec-1.2.3/libntp/clockwork.c.new 2025-01-02 19:46:37.056896596 +0100 +@@ -68,6 +68,7 @@ + #endif + ntx->offset /= 1000; + ++#ifdef STA_NANO + #ifdef MOD_TAI + if (!(ntx->modes & MOD_TAI)) + #endif +@@ -80,6 +81,7 @@ + ntx->constant = 0; + } + } ++#endif + + + int errval = ntp_adjtime(ntx); diff --git a/components/network/ntpsec/patches/pic.patch b/components/network/ntpsec/patches/pic.patch new file mode 100644 index 00000000000..725875f5e7d --- /dev/null +++ b/components/network/ntpsec/patches/pic.patch @@ -0,0 +1,22 @@ +--- ntpsec-1.2.3/wscript 2023-12-29 05:53:56.000000000 +0100 ++++ ntpsec-1.2.3/wscript.new 2025-01-02 20:25:46.641772609 +0100 +@@ -299,7 +299,6 @@ + + cc_test_flags = [ + ('PIC', '-fPIC'), +- ('PIE', '-pie -fPIE'), + # this quiets most of macOS warnings on -fpie + ('unused', '-Qunused-arguments'), + # This is a useless warning on any architecture with a barrel +@@ -421,9 +420,9 @@ + + if ctx.env.HAS_PIE: + ctx.env.LINKFLAGS_NTPD += [ +- "-pie", ++ "-fpic", + ] +- ctx.env.CFLAGS_bin = ["-fPIE", "-pie"] + ctx.env.CFLAGS ++ ctx.env.CFLAGS_bin = ["-fpic"] + ctx.env.CFLAGS + ld_hardening_flags += [ + ('relro', "-Wl,-z,relro"), # hardening, marks some read only, + ] diff --git a/components/network/ntpsec/patches/typecast.patch b/components/network/ntpsec/patches/typecast.patch new file mode 100644 index 00000000000..c4924820f09 --- /dev/null +++ b/components/network/ntpsec/patches/typecast.patch @@ -0,0 +1,20 @@ +--- ntpsec-1.2.3/ntpd/ntp_control.c 2025-01-02 20:19:18.507335811 +0100 ++++ ntpsec-1.2.3/ntpd/ntp_control.c.new 2025-01-02 20:20:28.303684525 +0100 +@@ -216,7 +216,7 @@ + #define Var_uli(xname, xflags, xlocation) { \ + .name = xname, .flags = xflags, .type = v_uli, .p.uli = &xlocation } + #define Var_li(xname, xflags, xlocation) { \ +- .name = xname, .flags = xflags, .type = v_li, .p.li = &xlocation } ++ .name = xname, .flags = xflags, .type = v_li, .p.li = (const int64_t *) &xlocation } + #define Var_uint(xname, xflags, xlocation) { \ + .name = xname, .flags = xflags, .type = v_uint, .p.uinnt = &xlocation } + #define Var_int(xname, xflags, xlocation) { \ +@@ -266,7 +266,7 @@ + #define Var_mrumem(xname, xflags, xlocation) { \ + .name = xname, .flags = xflags, .type = v_mrumem, .p.u64 = &xlocation } + #define Var_kli(xname, xflags, xlocation) { \ +- .name = xname, .flags = xflags, .type = v_kli, .p.li = &xlocation } ++ .name = xname, .flags = xflags, .type = v_kli, .p.li = (const int64_t *) &xlocation } + #define Var_special(xname, xflags, xspecial) { \ + .name = xname, .flags = xflags, .type = v_special, .p.special = xspecial } + diff --git a/components/network/ntpsec/pkg5 b/components/network/ntpsec/pkg5 new file mode 100644 index 00000000000..88fb7a0fbbf --- /dev/null +++ b/components/network/ntpsec/pkg5 @@ -0,0 +1,15 @@ +{ + "dependencies": [ + "library/python/psutil-39", + "library/security/openssl-3", + "runtime/python-39", + "service/network/dns/mdns", + "shell/ksh93", + "system/library", + "system/library/math" + ], + "fmris": [ + "service/network/ntpsec" + ], + "name": "ntpsec" +} diff --git a/components/network/ntpsec/test/results-all.master b/components/network/ntpsec/test/results-all.master new file mode 100644 index 00000000000..dc91b5a2655 --- /dev/null +++ b/components/network/ntpsec/test/results-all.master @@ -0,0 +1,17 @@ +execution summary + tests that pass 10/10 + tests that fail 0/10 +running: main/ntpclients/ntpleapfetch --version OK +running: main/ntpd/ntpd --version OK +running: main/ntpfrob/ntpfrob -V OK +running: main/ntptime/ntptime -V OK +running: main/ntpclients/ntpdig --version OK +running: main/ntpclients/ntpkeygen --version OK +running: main/ntpclients/ntplogtemp --version OK +running: main/ntpclients/ntpmon --version OK +running: main/ntpclients/ntpq --version OK +running: main/ntpclients/ntpsnmpd --version OK +running: main/ntpclients/ntpsweep --version OK +running: main/ntpclients/ntptrace --version OK +running: main/ntpclients/ntpviz --version OK +running: main/ntpclients/ntpwait --version OK