Skip to content

Commit 61d039b

Browse files
committed
ntpsec - update from 1.2.2 to 1.2.3
1 parent ba60c46 commit 61d039b

File tree

11 files changed

+46
-34
lines changed

11 files changed

+46
-34
lines changed

build/ntpsec/build.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
# http://www.illumos.org/license/CDDL.
1313
# }}}
1414

15-
# Copyright 2023 OmniOS Community Edition (OmniOSce) Association.
15+
# Copyright 2024 OmniOS Community Edition (OmniOSce) Association.
1616

1717
. ../../lib/build.sh
1818

1919
PROG=ntpsec
20-
VER=1.2.2
20+
VER=1.2.3
2121
PKG=service/network/ntpsec
2222
SUMMARY="Network time services"
2323
DESC="A secure, hardened and improved Network Time Protocol implementation"
@@ -47,7 +47,6 @@ CONFIGURE_OPTS="
4747
--libdir=$PYTHONVENDOR/ntp
4848
--enable-manpage --disable-doc
4949
--nopyc --nopyo --nopycache
50-
--enable-debug-gdb
5150
"
5251
CONFIGURE_OPTS[WS]="
5352
--build-desc=\"$DISTRO $RELVER\"

build/ntpsec/local.mog

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,17 @@
88
# source. A copy of the CDDL is also available via the Internet at
99
# http://www.illumos.org/license/CDDL.
1010

11-
# Copyright 2022 OmniOS Community Edition (OmniOSce) Association.
12-
13-
license LICENSES/BSD-2 license=simplified-BSD
14-
license LICENSES/BSD-3 license=modified-BSD
15-
license LICENSES/MIT license=MIT
16-
license LICENSES/CC-BY-4.0 license=skipCC
17-
license LICENSES/NTP license=skipNTP
11+
# Copyright 2024 OmniOS Community Edition (OmniOSce) Association.
12+
13+
license LICENSES/Apache-2.0.txt license=Apache2
14+
license LICENSES/BSD-2-Clause.txt license=simplified-BSD
15+
license LICENSES/BSD-3-Clause.txt license=modified-BSD
16+
license LICENSES/BSD-4-Clause.txt license=modified-BSD
17+
license LICENSES/ISC.txt license=ISC
18+
license LICENSES/MIT.txt license=MIT
19+
license LICENSES/Beerware.txt license=skip/beerware
20+
license LICENSES/CC-BY-4.0.txt license=skip/CC
21+
license LICENSES/NTP.txt license=skip/NTP
1822

1923
# Skip dependency detection for python programs that break the dependency
2024
# checker - more investigation required here.

build/ntpsec/patches/asciidoc.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
diff -wpruN '--exclude=*.orig' a~/wafhelpers/asciidoc.py a/wafhelpers/asciidoc.py
1+
diff -wpruN --no-dereference '--exclude=*.orig' a~/wafhelpers/asciidoc.py a/wafhelpers/asciidoc.py
22
--- a~/wafhelpers/asciidoc.py 1970-01-01 00:00:00
33
+++ a/wafhelpers/asciidoc.py 1970-01-01 00:00:00
44
@@ -37,8 +37,7 @@ def configure(ctx):
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff -wpruN --no-dereference '--exclude=*.orig' a~/libntp/clockwork.c a/libntp/clockwork.c
2+
--- a~/libntp/clockwork.c 1970-01-01 00:00:00
3+
+++ a/libntp/clockwork.c 1970-01-01 00:00:00
4+
@@ -39,8 +39,8 @@
5+
*/
6+
int ntp_adjtime_ns(struct timex *ntx)
7+
{
8+
-#ifdef STA_NANO
9+
static bool nanoseconds = false;
10+
+#ifdef STA_NANO
11+
static bool initial_call = true;
12+
if (initial_call)
13+
{

build/ntpsec/patches/conf.patch

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Re-locate the default configuration file from /etc/ to /etc/inet/
33

4-
diff -wpruN '--exclude=*.orig' a~/docs/includes/ntp-conf-body.adoc a/docs/includes/ntp-conf-body.adoc
4+
diff -wpruN --no-dereference '--exclude=*.orig' a~/docs/includes/ntp-conf-body.adoc a/docs/includes/ntp-conf-body.adoc
55
--- a~/docs/includes/ntp-conf-body.adoc 1970-01-01 00:00:00
66
+++ a/docs/includes/ntp-conf-body.adoc 1970-01-01 00:00:00
77
@@ -3,14 +3,14 @@
@@ -30,7 +30,7 @@ diff -wpruN '--exclude=*.orig' a~/docs/includes/ntp-conf-body.adoc a/docs/includ
3030
the default name of the configuration file
3131
`ntp.keys`::
3232
private keys
33-
diff -wpruN '--exclude=*.orig' a~/docs/ntpsec.adoc a/docs/ntpsec.adoc
33+
diff -wpruN --no-dereference '--exclude=*.orig' a~/docs/ntpsec.adoc a/docs/ntpsec.adoc
3434
--- a~/docs/ntpsec.adoc 1970-01-01 00:00:00
3535
+++ a/docs/ntpsec.adoc 1970-01-01 00:00:00
3636
@@ -213,7 +213,7 @@ to the security-critical core.
@@ -55,7 +55,7 @@ diff -wpruN '--exclude=*.orig' a~/docs/ntpsec.adoc a/docs/ntpsec.adoc
5555
more configuration declarations. Only files with the extension
5656
".conf" are interpreted; others are ignored. This feature is
5757
intended to make assembling configuration easier for administration
58-
diff -wpruN '--exclude=*.orig' a~/include/ntp_config.h a/include/ntp_config.h
58+
diff -wpruN --no-dereference '--exclude=*.orig' a~/include/ntp_config.h a/include/ntp_config.h
5959
--- a~/include/ntp_config.h 1970-01-01 00:00:00
6060
+++ a/include/ntp_config.h 1970-01-01 00:00:00
6161
@@ -18,7 +18,7 @@
@@ -67,7 +67,7 @@ diff -wpruN '--exclude=*.orig' a~/include/ntp_config.h a/include/ntp_config.h
6767
#endif /* not CONFIG_FILE */
6868
#define CONFIG_DIR "ntp.d"
6969

70-
diff -wpruN '--exclude=*.orig' a~/ntpclients/ntpleapfetch a/ntpclients/ntpleapfetch
70+
diff -wpruN --no-dereference '--exclude=*.orig' a~/ntpclients/ntpleapfetch a/ntpclients/ntpleapfetch
7171
--- a~/ntpclients/ntpleapfetch 1970-01-01 00:00:00
7272
+++ a/ntpclients/ntpleapfetch 1970-01-01 00:00:00
7373
@@ -28,7 +28,7 @@ MAXTRIES=6
@@ -79,10 +79,10 @@ diff -wpruN '--exclude=*.orig' a~/ntpclients/ntpleapfetch a/ntpclients/ntpleapfe
7979

8080
# How long before expiration to get updated file
8181
PREFETCH="60 days"
82-
diff -wpruN '--exclude=*.orig' a~/pylib/packet.py a/pylib/packet.py
82+
diff -wpruN --no-dereference '--exclude=*.orig' a~/pylib/packet.py a/pylib/packet.py
8383
--- a~/pylib/packet.py 1970-01-01 00:00:00
8484
+++ a/pylib/packet.py 1970-01-01 00:00:00
85-
@@ -1728,7 +1728,7 @@ class Authenticator:
85+
@@ -1723,7 +1723,7 @@ class Authenticator:
8686
return (keyid,) + self.passwords[keyid]
8787
else:
8888
return (keyid, None, None)

build/ntpsec/patches/nonet.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Always pass --nonet to xsltproc to avoid it checking for updated
22
stylesheets.
33

4-
diff -wpruN '--exclude=*.orig' a~/wafhelpers/asciidoc.py a/wafhelpers/asciidoc.py
4+
diff -wpruN --no-dereference '--exclude=*.orig' a~/wafhelpers/asciidoc.py a/wafhelpers/asciidoc.py
55
--- a~/wafhelpers/asciidoc.py 1970-01-01 00:00:00
66
+++ a/wafhelpers/asciidoc.py 1970-01-01 00:00:00
77
@@ -120,6 +120,7 @@ def configure(ctx):

build/ntpsec/patches/pie.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
Support for position independent executable is detected but then GCC fails
33
to link the NTP daemon. Disable the PIE test for now.
44

5-
diff -wpruN '--exclude=*.orig' a~/wscript a/wscript
5+
diff -wpruN --no-dereference '--exclude=*.orig' a~/wscript a/wscript
66
--- a~/wscript 1970-01-01 00:00:00
77
+++ a/wscript 1970-01-01 00:00:00
8-
@@ -300,7 +300,7 @@ def configure(ctx):
8+
@@ -299,7 +299,7 @@ def configure(ctx):
9+
910
cc_test_flags = [
10-
('f_stack_protector_all', '-fstack-protector-all'),
1111
('PIC', '-fPIC'),
1212
- ('PIE', '-pie -fPIE'),
1313
+ #('PIE', '-pie -fPIE'),

build/ntpsec/patches/series

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ conf.patch
33
nonet.patch
44
unneeded_libs.patch
55
asciidoc.patch
6+
clockwork.patch

build/ntpsec/patches/unneeded_libs.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
diff -wpruN '--exclude=*.orig' a~/wscript a/wscript
1+
diff -wpruN --no-dereference '--exclude=*.orig' a~/wscript a/wscript
22
--- a~/wscript 1970-01-01 00:00:00
33
+++ a/wscript 1970-01-01 00:00:00
44
@@ -276,8 +276,8 @@ def configure(ctx):
@@ -29,5 +29,5 @@ diff -wpruN '--exclude=*.orig' a~/wscript a/wscript
2929
- ctx.env.LDFLAGS += ["-lssp_nonshared"]
3030
-
3131
cc_test_flags = [
32-
('f_stack_protector_all', '-fstack-protector-all'),
3332
('PIC', '-fPIC'),
33+
#('PIE', '-pie -fPIE'),

build/ntpsec/testsuite.log

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -335,11 +335,13 @@ TEST(macencrypt, Encrypt) PASS
335335
TEST(macencrypt, DecryptValid) PASS
336336
TEST(macencrypt, DecryptInvalid) PASS
337337
TEST(macencrypt, CMAC_Encrypt) PASS
338+
TEST(macencrypt, CMAC_Encrypt) PASS
338339
TEST(macencrypt, DecryptValidCMAC) PASS
339340
TEST(macencrypt, DecryptInvalidCMAC) PASS
340341
TEST(macencrypt, IPv4AddressToRefId) PASS
341342
TEST(macencrypt, IPv6AddressToRefId) PASS
342343
TEST(macencrypt, null_trunc) PASS
344+
TEST(macencrypt, CMAC_TestVectors) PASS
343345
TEST(numtoa, RefidStr) PASS
344346
TEST(prettydate, ConstantDate) PASS
345347
TEST(prettydate, Rfc3339Date1) PASS
@@ -361,13 +363,6 @@ TEST(statestr, PeerRestart) PASS
361363
TEST(statestr, SysUnspecified) PASS
362364
TEST(statestr, ClockCodeExists) PASS
363365
TEST(statestr, ClockCodeUnknown) PASS
364-
TEST(strtolfp, PositiveInteger) PASS
365-
TEST(strtolfp, NegativeInteger) PASS
366-
TEST(strtolfp, PositiveFraction) PASS
367-
TEST(strtolfp, NegativeFraction) PASS
368-
TEST(strtolfp, PositiveMsFraction) PASS
369-
TEST(strtolfp, NegativeMsFraction) PASS
370-
TEST(strtolfp, InvalidChars) PASS
371366
TEST(timespecops, Helpers1) PASS
372367
TEST(timespecops, Normalise) PASS
373368
TEST(timespecops, SignNoFrac) PASS
@@ -411,7 +406,7 @@ TEST(ymd2yd, LeapYearFebruary) PASS
411406
TEST(ymd2yd, LeapYearDecember) PASS
412407

413408
-----------------------
414-
155 Tests 0 Failures 0 Ignored
409+
150 Tests 0 Failures 0 Ignored
415410
OK
416411

417412
*** stderr ***
@@ -493,9 +488,9 @@ RETURN VALUE: 0
493488
*** stdout ***
494489

495490
*** stderr ***
496-
...
491+
....
497492
----------------------------------------------------------------------
498-
Ran 3 tests
493+
Ran 4 tests
499494

500495
OK
501496

0 commit comments

Comments
 (0)