git: 96729aa2e09c - main - misc/radio_datetime_analyzer: add new port

From: Rene Ladan <rene_at_FreeBSD.org>
Date: Mon, 09 Jun 2025 21:58:55 UTC
The branch main has been updated by rene:

URL: https://cgit.FreeBSD.org/ports/commit/?id=96729aa2e09c0ddf048ca61064ef67d016fd904d

commit 96729aa2e09c0ddf048ca61064ef67d016fd904d
Author:     Rene Ladan <rene@FreeBSD.org>
AuthorDate: 2025-06-09 21:57:37 +0000
Commit:     Rene Ladan <rene@FreeBSD.org>
CommitDate: 2025-06-09 21:58:39 +0000

    misc/radio_datetime_analyzer: add new port
    
    Analyzer for log files of time stations.
    
    The program takes two parameters:
    - the station name of the file to analyze (as argument to the -s option)
    - the name of the file to analyze (as argument to the -f option)
    
    Currently supported stations are DCF77 and MSF.
    
    See the enclosed README.md for more information.
---
 misc/Makefile                                |  1 +
 misc/radio_datetime_analyzer/Makefile        | 33 ++++++++++++++++++++++++++++
 misc/radio_datetime_analyzer/Makefile.crates |  4 ++++
 misc/radio_datetime_analyzer/distinfo        | 11 ++++++++++
 misc/radio_datetime_analyzer/pkg-descr       |  9 ++++++++
 5 files changed, 58 insertions(+)

diff --git a/misc/Makefile b/misc/Makefile
index 7ef83f6b4e1c..8cd3209a3620 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -560,6 +560,7 @@
     SUBDIR += qt6ct
     SUBDIR += quantum++
     SUBDIR += quary
+    SUBDIR += radio_datetime_analyzer
     SUBDIR += randomx
     SUBDIR += rash
     SUBDIR += raspberrypi-gpioshutdown
diff --git a/misc/radio_datetime_analyzer/Makefile b/misc/radio_datetime_analyzer/Makefile
new file mode 100644
index 000000000000..5d28eb5a2ff5
--- /dev/null
+++ b/misc/radio_datetime_analyzer/Makefile
@@ -0,0 +1,33 @@
+PORTNAME=	radio_datetime_analyzer
+DISTVERSION=	1.1.0
+CATEGORIES=	misc
+MASTER_SITES=	https://codeberg.org/rene0/${PORTNAME}/archive/${DISTVERSIONFULL}${EXTRACT_SUFX}?dummy=/
+DISTFILES=	${DISTNAME}${EXTRACT_SUFX} # prevent USES=cargo from overriding default DISTFILES
+
+MAINTAINER=	rene@FreeBSD.org
+COMMENT=	Analyzer for DCF77 and MSF log files
+WWW=		https://codeberg.org/rene0/${PORTNAME}
+
+LICENSE=	APACHE20 MIT
+LICENSE_COMB=	dual
+
+USES=		cargo
+WRKSRC=		${WRKDIR}/${PORTNAME}
+
+OPTIONS_DEFINE=	DOCS EXAMPLES
+
+PLIST_FILES=	bin/radio_datetime_analyzer
+PORTDOCS=	README.md
+PORTEXAMPLES=	sample_dcf77.log sample_msf.log
+
+post-install-DOCS-on:
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
+
+post-install-EXAMPLES-on:
+	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+.for f in sample_dcf77.log sample_msf.log
+	${INSTALL_DATA} ${WRKSRC}/src/transmitters/test/${f} ${STAGEDIR}${EXAMPLESDIR}
+.endfor
+
+.include <bsd.port.mk>
diff --git a/misc/radio_datetime_analyzer/Makefile.crates b/misc/radio_datetime_analyzer/Makefile.crates
new file mode 100644
index 000000000000..e534c2bdf0d3
--- /dev/null
+++ b/misc/radio_datetime_analyzer/Makefile.crates
@@ -0,0 +1,4 @@
+CARGO_CRATES=	dcf77_utils-1.1.0 \
+		getopt-1.1.7 \
+		msf60_utils-1.1.0 \
+		radio_datetime_utils-1.1.0
diff --git a/misc/radio_datetime_analyzer/distinfo b/misc/radio_datetime_analyzer/distinfo
new file mode 100644
index 000000000000..86df18ab4467
--- /dev/null
+++ b/misc/radio_datetime_analyzer/distinfo
@@ -0,0 +1,11 @@
+TIMESTAMP = 1749073004
+SHA256 (radio_datetime_analyzer-1.1.0.tar.gz) = 590f6df204232c37cfde943f1e4718b076e913ec45c6192083adb5e22d93b00f
+SIZE (radio_datetime_analyzer-1.1.0.tar.gz) = 10947
+SHA256 (rust/crates/dcf77_utils-1.1.0.crate) = f5b1ae3c5f0fbb87a9187ca0f1cb665f7444f481f77940131c4737c17bc845e8
+SIZE (rust/crates/dcf77_utils-1.1.0.crate) = 11723
+SHA256 (rust/crates/getopt-1.1.7.crate) = 2a9e40b04867f241a94b98f4649825925553807ae34f07b953a590270f45d9d4
+SIZE (rust/crates/getopt-1.1.7.crate) = 8037
+SHA256 (rust/crates/msf60_utils-1.1.0.crate) = 8aa32aa811b514329ceb1af4ff3d744bb96a5e18af8e188215deefcc1f13c6d6
+SIZE (rust/crates/msf60_utils-1.1.0.crate) = 14545
+SHA256 (rust/crates/radio_datetime_utils-1.1.0.crate) = bbc9a0dfa3cff91f691dbb878c8856d3096686786662858225f8102809a32701
+SIZE (rust/crates/radio_datetime_utils-1.1.0.crate) = 17044
diff --git a/misc/radio_datetime_analyzer/pkg-descr b/misc/radio_datetime_analyzer/pkg-descr
new file mode 100644
index 000000000000..20ad76ac1ed8
--- /dev/null
+++ b/misc/radio_datetime_analyzer/pkg-descr
@@ -0,0 +1,9 @@
+Analyzer for log files of time stations.
+
+The program takes two parameters:
+- the station name of the file to analyze (as argument to the -s option)
+- the name of the file to analyze (as argument to the -f option)
+
+Currently supported stations are DCF77 and MSF.
+
+See the enclosed README.md for more information.