From nobody Fri May 20 16:04:51 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id B4A481AE2625; Fri, 20 May 2022 16:04:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4L4Wl74l1Tz4S7p; Fri, 20 May 2022 16:04:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1653062691; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jOp9GVQlFpDybR03iSmQCakDS9T/muX6lw2kat5GYI4=; b=o0lGqF5jmoP/bcgdp0wn3ZRF7LxHjIZVciAquw+k8Iyf3EmOZ0LDYn4//ATnbFRLV4jTAh mXrcV9++0ghp+6venkYxW+l8mjECOAQy5Wl4ACI/8flkX++ybxmC3q+DPRUzVtWzBdgttl NrNGSqGB1JjT6NA/Viedb2Fjzll/YSJCwtRy+OxyWchy2ufrXkkDK4HETvwgrhiuEr2p3X 4Czod4aYsut2mXcKMiPs8OL+6Lw4e6LuUq0xzqw7/dqITyNjtFXk6CqlPPNxYPbXQTbT3z BACsFX71VcmRk5+JbT2FV44pPdT3djXM3s9EEsiS/DA6I5PlqQBB3zMAeKFQhA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 7EB1E1578B; Fri, 20 May 2022 16:04:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 24KG4p7t050400; Fri, 20 May 2022 16:04:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 24KG4pkr050399; Fri, 20 May 2022 16:04:51 GMT (envelope-from git) Date: Fri, 20 May 2022 16:04:51 GMT Message-Id: <202205201604.24KG4pkr050399@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Cy Schubert Subject: git: 1d789ee10bd4 - main - sysutils/ntpstat: Add new port List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: cy X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1d789ee10bd4396879706976b8ee3d9b3a588048 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1653062691; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jOp9GVQlFpDybR03iSmQCakDS9T/muX6lw2kat5GYI4=; b=vySE32K6eeoU54CPgGErFFuCqNM7DsEAkBcnLa76kJd2dj2GYpBlQco/nVRMyp1PwfZ3h7 EzzZ/3uyYCKbZ5HnMkrAwaCJZE7oeYWF3iwXiwYvWnZACzdZPn9Zhbr/KDdWuaeKRqAQf2 8/rgVWOW8LQdbqtmOlP1Dil4ofUPolIsDHOSFiVBMr4qKFtLnTmtEhGf8GzEJ51nxde3U1 pafvdzEc6vxkyE9AtcMuJX0Ckqh2zuyOMmNMUQwZ9KZ19Ea9BODed1jC4LoecHNApRwVHd lLXztYEMV0sUGVCrPZFDqJAEvopBnUHpX6+gaNaSyxXrZW+L7PJQw1FFgO5Luw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1653062691; a=rsa-sha256; cv=none; b=nzUH60EZfdrXNRz0zWBPccE2tUZqJojudI/S7U6+jRa2+woWC0lqp6nJDsWYUwIQYaewW+ QWjFgXNRIs3KVtwtwyRNp+UkpY1/0jjqjr3n7oabxejivPWhhxLRbHdsmUxrvY6raPfFU3 hEqmSffFmBiChY+U97SyR7zQWDZBk1vtCTt5J8Xc6pSBhRgKat4XW6Hyr6/TY4rwKcwPRu WWXRZDfyek7FpTbZ9wFN1WMWr9Nz0VUg4GtXyW9S/tTYf28jU52nl3xhw1w98L5QFsuN1g tl20dHygdrHCetahhgqqx5h3775Y0nCuKGIwdGFwiBYZapyUoM2MxjnM+fCzQg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by cy: URL: https://cgit.FreeBSD.org/ports/commit/?id=1d789ee10bd4396879706976b8ee3d9b3a588048 commit 1d789ee10bd4396879706976b8ee3d9b3a588048 Author: Cy Schubert AuthorDate: 2022-05-20 16:02:05 +0000 Commit: Cy Schubert 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 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