Bug 274944 - net/ntpsec no way to build support for refclock drivers
Summary: net/ntpsec no way to build support for refclock drivers
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Yuri Victorovich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-06 20:27 UTC by celkins
Modified: 2023-11-06 22:26 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (yuri)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description celkins 2023-11-06 20:27:08 UTC
Using FreeBSD 12.4p6 AMD64
net/ntpsec 1.2.2a as of 20231106T2022

I cannot find any way to build the port with support for refclock drivers, thus my Stratum-1 server is either now St.2+ or I have to use one of the other ports of ntp.

Thanks for considering this,
Carl
Comment 1 Herbert J. Skuhra 2023-11-06 21:49:19 UTC
Does it work if you apply the below patch?

diff --git a/net/ntpsec/Makefile b/net/ntpsec/Makefile
index 6a9c91c5e07c..a4e4c2822ee9 100644
--- a/net/ntpsec/Makefile
+++ b/net/ntpsec/Makefile
@@ -18,6 +18,8 @@ USE_LDCONFIG= ${PREFIX}/lib/ntp
 SHEBANG_FILES= ${WRKSRC}/ntpclients/ntp*.py
 python_OLD_CMD=        @PYSHEBANG@
 
+CONFIGURE_ARGS+=       --refclock=all
+
 CONFLICTS=     ntp ntp-devel openntpd
 
 MAKE_ENV=      NOSYNC=1 # workaround for the console problem: https://gitlab.com/NTPsec/ntpsec/issues/599
Comment 2 Yuri Victorovich freebsd_committer freebsd_triage 2023-11-06 22:25:41 UTC
Hi celkins,

Thanks for your report.

The REFCLOCKS option was added.

Please let me know if this solves the problem.
Please reopen this bug report if there's still a problem.


Thanks!
Yuri
Comment 3 commit-hook freebsd_committer freebsd_triage 2023-11-06 22:26:27 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0b4d54a945c6020f0159f6523343c4e02d905b80

commit 0b4d54a945c6020f0159f6523343c4e02d905b80
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-11-06 22:22:58 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-11-06 22:25:52 +0000

    net/ntpsec: Add REFCLOCKS option

    PR:             274944
    Reported by:    celkins <carl@elkins.me.uk>

 net/ntpsec/Makefile | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)