git: 1d789ee10bd4 - main - sysutils/ntpstat: Add new port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 20 May 2022 16:04:51 UTC
The branch main has been updated by cy: URL: https://cgit.FreeBSD.org/ports/commit/?id=1d789ee10bd4396879706976b8ee3d9b3a588048 commit 1d789ee10bd4396879706976b8ee3d9b3a588048 Author: Cy Schubert <cy@FreeBSD.org> AuthorDate: 2022-05-20 16:02:05 +0000 Commit: Cy Schubert <cy@FreeBSD.org> CommitDate: 2022-05-20 16:04:39 +0000 sysutils/ntpstat: Add new port ntpstat is a shell script which prints the ntpd or chronyd synchronisation status, using the ntpq or chronyc program. --- sysutils/Makefile | 1 + sysutils/ntpstat/Makefile | 28 ++++++++++++++++++++++++++++ sysutils/ntpstat/distinfo | 3 +++ sysutils/ntpstat/files/patch-Makefile | 13 +++++++++++++ sysutils/ntpstat/pkg-descr | 6 ++++++ sysutils/ntpstat/pkg-plist | 2 ++ 6 files changed, 53 insertions(+) diff --git a/sysutils/Makefile b/sysutils/Makefile index 75507721d5fc..b8fbc2c5adaa 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -805,6 +805,7 @@ SUBDIR += nss_ndb SUBDIR += nsysctl SUBDIR += ntfy + SUBDIR += ntpstat SUBDIR += nut SUBDIR += nut-devel SUBDIR += nvclock diff --git a/sysutils/ntpstat/Makefile b/sysutils/ntpstat/Makefile new file mode 100644 index 000000000000..8ce66cc8536a --- /dev/null +++ b/sysutils/ntpstat/Makefile @@ -0,0 +1,28 @@ +PORTNAME= ntpstat +DISTVERSION= 0.6 +CATEGORIES= sysutils + +MAINTAINER= cy@FreeBSD.org +COMMENT= Print the ntpd or chronyd synchronisation status + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/COPYING + +RUN_DEPENDS= bash:shells/bash \ + gawk:lang/gawk + +USES= shebangfix + +SHEBANG_FILES= ntpstat + +USE_GITHUB= yes +GH_ACCOUNT= mlichvar + +MAKE_ENV= STAGEDIR=${STAGEDIR} PREFIX=${PREFIX} MAN1PREFIX=${MAN1PREFIX} +NO_BUILD= yes +NO_ARCH= yes + +post-patch: + @${REINPLACE_CMD} -e 's/awk/gawk/g' ${WRKSRC}/ntpstat + +.include <bsd.port.mk> diff --git a/sysutils/ntpstat/distinfo b/sysutils/ntpstat/distinfo new file mode 100644 index 000000000000..f21fea28d4e7 --- /dev/null +++ b/sysutils/ntpstat/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1653060847 +SHA256 (mlichvar-ntpstat-0.6_GH0.tar.gz) = 366b146133c71cf3e63c50ee75fd6a0c2e7763b8d239c6ef6f22333be57b13f7 +SIZE (mlichvar-ntpstat-0.6_GH0.tar.gz) = 3662 diff --git a/sysutils/ntpstat/files/patch-Makefile b/sysutils/ntpstat/files/patch-Makefile new file mode 100644 index 000000000000..f0e5db9b727d --- /dev/null +++ b/sysutils/ntpstat/files/patch-Makefile @@ -0,0 +1,13 @@ +--- Makefile.orig 2020-06-11 03:31:47.000000000 -0700 ++++ Makefile 2022-05-20 08:47:56.467564000 -0700 +@@ -1,8 +1,8 @@ + NAME = ntpstat + +-prefix = /usr/local ++prefix = $(STAGEDIR)/$(PREFIX) + bindir = $(prefix)/bin +-mandir = $(prefix)/share/man ++mandir = $(STAGEDIR)/$(MAN1PREFIX)/man + man1dir = $(mandir)/man1 + + all: diff --git a/sysutils/ntpstat/pkg-descr b/sysutils/ntpstat/pkg-descr new file mode 100644 index 000000000000..4102f1c54e00 --- /dev/null +++ b/sysutils/ntpstat/pkg-descr @@ -0,0 +1,6 @@ +ntpstat is a shell script which prints the ntpd or chronyd synchronisation +status, using the ntpq or chronyc program. It emulates the original ntpstat +program written in C by G. Richard Keech, which implemented a subset of the +mode6 protocol supported by ntpd. + +WWW: https://github.com/mlichvar/ntpstat diff --git a/sysutils/ntpstat/pkg-plist b/sysutils/ntpstat/pkg-plist new file mode 100644 index 000000000000..f1d1f7acede4 --- /dev/null +++ b/sysutils/ntpstat/pkg-plist @@ -0,0 +1,2 @@ +bin/ntpstat +man/man1/ntpstat.1.gz