git: c9910f201c4e - main - dns/coredns: Install man pages

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Fri, 08 Oct 2021 17:20:30 UTC
The branch main has been updated by yuri:

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

commit c9910f201c4e2d3a80f3c557a3a09eebacc8a5a0
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2021-10-08 16:41:35 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2021-10-08 17:20:26 +0000

    dns/coredns: Install man pages
    
    PR:             259002
    Reported by:    Rob LA LAU <freebsd@ohreally.nl>
---
 dns/coredns/Makefile  |  8 ++++++--
 dns/coredns/pkg-plist | 52 +++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 58 insertions(+), 2 deletions(-)

diff --git a/dns/coredns/Makefile b/dns/coredns/Makefile
index cd846f53d220..b9ab13e67381 100644
--- a/dns/coredns/Makefile
+++ b/dns/coredns/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	coredns
 DISTVERSIONPREFIX=	v
 DISTVERSION=	1.8.6
+PORTREVISION=	1
 CATEGORIES=	dns
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -15,8 +16,11 @@ GO_MODULE=	github.com/${PORTNAME}/${PORTNAME}
 
 USE_RC_SUBR=	${PORTNAME}
 
-PLIST_FILES=	bin/${PORTNAME}
-
 PORTSCOUT=	limit:^[0-9]*\.[0-9]*\.[0-9]*$$ # otherwise it picks up the deleted tag v011
 
+post-install:
+.for n in 1 5 7
+	${INSTALL_MAN} ${WRKSRC}/man/*.${n} ${STAGEDIR}${MANPREFIX}/man/man${n}
+.endfor
+
 .include <bsd.port.mk>
diff --git a/dns/coredns/pkg-plist b/dns/coredns/pkg-plist
new file mode 100644
index 000000000000..2d24878763cb
--- /dev/null
+++ b/dns/coredns/pkg-plist
@@ -0,0 +1,52 @@
+bin/coredns
+man/man1/coredns.1.gz
+man/man5/corefile.5.gz
+man/man7/coredns-acl.7.gz
+man/man7/coredns-any.7.gz
+man/man7/coredns-auto.7.gz
+man/man7/coredns-autopath.7.gz
+man/man7/coredns-azure.7.gz
+man/man7/coredns-bind.7.gz
+man/man7/coredns-bufsize.7.gz
+man/man7/coredns-cache.7.gz
+man/man7/coredns-cancel.7.gz
+man/man7/coredns-chaos.7.gz
+man/man7/coredns-clouddns.7.gz
+man/man7/coredns-debug.7.gz
+man/man7/coredns-dns64.7.gz
+man/man7/coredns-dnssec.7.gz
+man/man7/coredns-dnstap.7.gz
+man/man7/coredns-erratic.7.gz
+man/man7/coredns-errors.7.gz
+man/man7/coredns-etcd.7.gz
+man/man7/coredns-file.7.gz
+man/man7/coredns-forward.7.gz
+man/man7/coredns-geoip.7.gz
+man/man7/coredns-grpc.7.gz
+man/man7/coredns-header.7.gz
+man/man7/coredns-health.7.gz
+man/man7/coredns-hosts.7.gz
+man/man7/coredns-import.7.gz
+man/man7/coredns-k8s_external.7.gz
+man/man7/coredns-kubernetes.7.gz
+man/man7/coredns-loadbalance.7.gz
+man/man7/coredns-local.7.gz
+man/man7/coredns-log.7.gz
+man/man7/coredns-loop.7.gz
+man/man7/coredns-metadata.7.gz
+man/man7/coredns-metrics.7.gz
+man/man7/coredns-minimal.7.gz
+man/man7/coredns-nsid.7.gz
+man/man7/coredns-pprof.7.gz
+man/man7/coredns-ready.7.gz
+man/man7/coredns-reload.7.gz
+man/man7/coredns-rewrite.7.gz
+man/man7/coredns-root.7.gz
+man/man7/coredns-route53.7.gz
+man/man7/coredns-secondary.7.gz
+man/man7/coredns-sign.7.gz
+man/man7/coredns-template.7.gz
+man/man7/coredns-tls.7.gz
+man/man7/coredns-trace.7.gz
+man/man7/coredns-transfer.7.gz
+man/man7/coredns-whoami.7.gz