sysutils/ntpstat: eliminate MAN1PREFIX and move to share/man

While here use MAKE_ARGS instead of patching
This commit is contained in:
Baptiste Daroussin
2024-01-10 15:18:23 +01:00
parent fabf2f6b2f
commit f1f3b1f4eb
3 changed files with 3 additions and 15 deletions

View File

@@ -1,5 +1,6 @@
PORTNAME= ntpstat
DISTVERSION= 0.6
PORTREVISION= 1
CATEGORIES= sysutils
MAINTAINER= cy@FreeBSD.org
@@ -19,7 +20,7 @@ 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

View File

@@ -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:

View File

@@ -1,2 +1,2 @@
bin/ntpstat
man/man1/ntpstat.1.gz
share/man/man1/ntpstat.1.gz