diff --git a/sysutils/ntpstat/Makefile b/sysutils/ntpstat/Makefile index c0ee1bdd25e0..73ef98aede5b 100644 --- a/sysutils/ntpstat/Makefile +++ b/sysutils/ntpstat/Makefile @@ -1,29 +1,30 @@ PORTNAME= ntpstat DISTVERSION= 0.6 +PORTREVISION= 1 CATEGORIES= sysutils MAINTAINER= cy@FreeBSD.org COMMENT= Print the ntpd or chronyd synchronisation status WWW= https://github.com/mlichvar/ntpstat 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} +MAKE_ARGS= prefix="${STAGEDIR}${PREFIX}" mandir="${STAGEDIR}${PREFIX}/share" NO_BUILD= yes NO_ARCH= yes post-patch: @${REINPLACE_CMD} -e 's/awk/gawk/g' ${WRKSRC}/ntpstat .include diff --git a/sysutils/ntpstat/files/patch-Makefile b/sysutils/ntpstat/files/patch-Makefile deleted file mode 100644 index f0e5db9b727d..000000000000 --- a/sysutils/ntpstat/files/patch-Makefile +++ /dev/null @@ -1,13 +0,0 @@ ---- 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-plist b/sysutils/ntpstat/pkg-plist index f1d1f7acede4..1fb4f625130d 100644 --- a/sysutils/ntpstat/pkg-plist +++ b/sysutils/ntpstat/pkg-plist @@ -1,2 +1,2 @@ bin/ntpstat -man/man1/ntpstat.1.gz +share/man/man1/ntpstat.1.gz