git: ba71b49cf33b - main - comms/Makefile: Removing chu port

From: Diane Bruce <db_at_FreeBSD.org>
Date: Fri, 02 Oct 2026 21:05:34 UTC
The branch main has been updated by db:

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

commit ba71b49cf33b53254e42f1935c6c47381be7865d
Author:     Diane Bruce <db@FreeBSD.org>
AuthorDate: 2026-10-02 21:04:41 +0000
Commit:     Diane Bruce <db@FreeBSD.org>
CommitDate: 2026-10-02 21:04:41 +0000

    comms/Makefile: Removing chu port
    
    NRC terminated the shortwave station CHU June 22 2026
    hence this port serves no purpose.
---
 comms/Makefile              |   1 -
 comms/chu/Makefile          |  38 ----------------
 comms/chu/distinfo          |   2 -
 comms/chu/files/patch-chu.c | 104 --------------------------------------------
 comms/chu/pkg-descr         |   4 --
 comms/chu/pkg-plist         |   7 ---
 6 files changed, 156 deletions(-)

diff --git a/comms/Makefile b/comms/Makefile
index aed30f610ff1..bcd8fa304796 100644
--- a/comms/Makefile
+++ b/comms/Makefile
@@ -17,7 +17,6 @@
     SUBDIR += bluez-firmware
     SUBDIR += bpl+
     SUBDIR += chirp
-    SUBDIR += chu
     SUBDIR += conserver-com
     SUBDIR += cqrlog
     SUBDIR += cubicsdr
diff --git a/comms/chu/Makefile b/comms/chu/Makefile
deleted file mode 100644
index d4985a33c037..000000000000
--- a/comms/chu/Makefile
+++ /dev/null
@@ -1,38 +0,0 @@
-PORTNAME=	chu
-PORTVERSION=	0.1.29
-PORTREVISION=	1
-CATEGORIES=	comms hamradio
-MASTER_SITES=	SUNSITE/system/admin/time
-
-MAINTAINER=	hamradio@FreeBSD.org
-COMMENT=	Synchronise computer clock to CHU radio station
-WWW=		https://www.rossi.com/chu/
-
-LICENSE=	GPLv2+
-LICENSE_FILE=	${WRKSRC}/COPYING
-
-NO_WRKSUBDIR=	yes
-
-OPTIONS_DEFINE=	DOCS
-
-post-extract:
-	@${GZIP_CMD} -d ${WRKSRC}/testsignal.gz
-
-post-patch:
-	@${REINPLACE_CMD} -e 's|/etc/chu|${PREFIX}/etc/chu|g' ${WRKSRC}/chu.c ${WRKSRC}/chu.8
-	@${REINPLACE_CMD} -e 's|/sbin/chu|${PREFIX}/sbin/chu|g' ${WRKSRC}/chu.8
-	@${REINPLACE_CMD} -e 's|gcc -O2|${CC} ${CFLAGS}|g' ${WRKSRC}/Makefile
-
-do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/chu ${STAGEDIR}${PREFIX}/sbin
-	@${MKDIR} ${STAGEDIR}${DATADIR}
-	${INSTALL_DATA} ${WRKSRC}/testsignal ${STAGEDIR}${DATADIR}
-	${INSTALL_MAN} ${WRKSRC}/chu.8 ${STAGEDIR}${PREFIX}/share/man/man8
-
-do-install-DOCS-on:
-	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-.for d in TESTING chu.html chuman.html ntp.html
-	${INSTALL_DATA} ${WRKSRC}/${d} ${STAGEDIR}${DOCSDIR}
-.endfor
-
-.include <bsd.port.mk>
diff --git a/comms/chu/distinfo b/comms/chu/distinfo
deleted file mode 100644
index 185e0ae05110..000000000000
--- a/comms/chu/distinfo
+++ /dev/null
@@ -1,2 +0,0 @@
-SHA256 (chu-0.1.29.tar.gz) = ac791bb2c9f80ec393f8cc7ddb833974e1f3b03960a73a206011256f4a4e8e72
-SIZE (chu-0.1.29.tar.gz) = 44441
diff --git a/comms/chu/files/patch-chu.c b/comms/chu/files/patch-chu.c
deleted file mode 100644
index 419b133f7c42..000000000000
--- a/comms/chu/files/patch-chu.c
+++ /dev/null
@@ -1,104 +0,0 @@
---- chu.c.orig	1999-03-17 16:42:18 UTC
-+++ chu.c
-@@ -20,15 +20,21 @@
- #include <stdlib.h>
- #include <string.h>
- #include <math.h>
-+#include <errno.h>
-+#include <sys/types.h>
- #include <sys/time.h>
- #include <sys/resource.h>
- #include <unistd.h>
- 
--#define USE_TIMEX
-+#define ADJTIME
-+#undef USE_TIMEX
-+#define USE_ADJTIME
-+
-+#ifdef ADJTIME
- #ifdef USE_TIMEX
- #include <sys/timex.h>
- #endif
--
-+#endif
- #define SAMPLE_RATE 8000
- #define SAMPLES 512
- #define OVERLAP 50
-@@ -389,6 +395,21 @@ void saveAdjTime()
-   }
- }
- 
-+#ifdef USE_ADJTIME
-+void
-+do_adjtime(int microsec)
-+{
-+  struct timeval delta;
-+  int status;
-+
-+  printf("do_adjtime adjustment: %d\n", microsec);
-+  delta.tv_sec = 0;
-+  delta.tv_usec = microsec;
-+  status = adjtime(&delta, NULL);
-+  printf("do_adjtime status: %d\n", status);
-+}
-+#endif
-+
- #ifdef USE_TIMEX
- void timex_adjustment(int microsec)
- {
-@@ -462,7 +483,8 @@ double gettimexoffset()
-   adjtimex(&t);
-   offset = t.offset;
- #endif
--
-+#ifdef USE_ADJTIME
-+#endif
-   return (double) offset; 
- }
- 
-@@ -655,13 +677,18 @@ void adj_time(double d)
-     tv.tv_usec += 1000000;
-   }
- 
-+#ifdef ADJTIME
- #ifdef USE_TIMEX
-   if (fabs(d) < ((double)MAXPHASE))
-   {
-     timex_adjustment((int)-d);
-   }
-+#else
-+  if (fabs(d) < ((double)1000000))
-+    do_adjtime((int)-d);
-   else
- #endif
-+#endif
-   {
-     printf("standard adjustment ");
- 
-@@ -1267,7 +1294,7 @@ char *parseArgs(int argc, char **argv)
-   return fname;
- }
- 
--void main(int argc, char **argv)
-+int main(int argc, char **argv)
- {
-   FILE *fp;
-   signed char buf[8192];
-@@ -1278,7 +1305,7 @@ void main(int argc, char **argv)
- 
-   fname = parseArgs(argc, argv);
-   if (fname == NULL)
--    return;
-+    return 0;
- 
-   /* Set priority to maximum -- just long enough for us
-      to open the audio device and timestamp it.  This should
-@@ -1293,7 +1320,7 @@ void main(int argc, char **argv)
-   if (fp == NULL)
-   {
-     printf("fopen(): Unable to open file: %s  %s\n", fname, strerror(errno));
--    return;
-+    return 0;
-   }
- 
-   gettimeofday(&starttime, &tz);
diff --git a/comms/chu/pkg-descr b/comms/chu/pkg-descr
deleted file mode 100644
index f6aa3ab74b40..000000000000
--- a/comms/chu/pkg-descr
+++ /dev/null
@@ -1,4 +0,0 @@
-CHU is a time-standard shortwave radio station operated by National
-Research Council Canada (NRC). This software uses signals from radio
-station CHU to set and frequency discipline the system clock on a
-Linux (FreeBSD) based system.
diff --git a/comms/chu/pkg-plist b/comms/chu/pkg-plist
deleted file mode 100644
index 698b4ac0d404..000000000000
--- a/comms/chu/pkg-plist
+++ /dev/null
@@ -1,7 +0,0 @@
-sbin/chu
-%%DATADIR%%/testsignal
-%%PORTDOCS%%%%DOCSDIR%%/chu.html
-%%PORTDOCS%%%%DOCSDIR%%/chuman.html
-%%PORTDOCS%%%%DOCSDIR%%/ntp.html
-%%PORTDOCS%%%%DOCSDIR%%/TESTING
-share/man/man8/chu.8.gz