git: 450310a89853 - main - dns/adsuck: Sanitize MANPREFIX

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sun, 21 Jan 2024 15:27:25 UTC
The branch main has been updated by bofh:

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

commit 450310a8985323b3f571c97615f97827e6dc909d
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-01-21 14:42:14 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-01-21 15:26:53 +0000

    dns/adsuck: Sanitize MANPREFIX
    
    - Utilize USES=localbase
    
    Approved by:    portmgr (blanket)
---
 dns/adsuck/Makefile  | 8 +++++---
 dns/adsuck/pkg-plist | 2 +-
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/dns/adsuck/Makefile b/dns/adsuck/Makefile
index e3e55adfe09a..821664a5a645 100644
--- a/dns/adsuck/Makefile
+++ b/dns/adsuck/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	adsuck
 PORTVERSION=	2.3
-PORTREVISION=	9
+PORTREVISION=	10
 CATEGORIES=	dns
 MASTER_SITES=	http://opensource.conformal.com/snapshots/adsuck/ \
 		http://philpep.org/pub/
@@ -15,7 +15,7 @@ LICENSE=	ISCL
 LIB_DEPENDS+=	libevent.so:devel/libevent \
 		libldns.so:dns/ldns
 
-CFLAGS+=	-I${LOCALBASE}/include
+USES=	localbase
 
 USE_RC_SUBR=	adsuck
 
@@ -28,7 +28,9 @@ OPTIONS_DEFINE=	EXAMPLES
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/adsuck ${STAGEDIR}${PREFIX}/sbin
-	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8.gz ${STAGEDIR}${MANPREFIX}/man/man8
+	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8.gz ${STAGEDIR}${PREFIX}/share/man/man8
+
+do-install-EXAMPLES-on:
 	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
 	${INSTALL_DATA} ${WRKSRC}/files/* ${STAGEDIR}${EXAMPLESDIR}
 
diff --git a/dns/adsuck/pkg-plist b/dns/adsuck/pkg-plist
index 07f659061f02..9b1e73a9e146 100644
--- a/dns/adsuck/pkg-plist
+++ b/dns/adsuck/pkg-plist
@@ -1,5 +1,5 @@
 sbin/adsuck
-man/man8/adsuck.8.gz
+share/man/man8/adsuck.8.gz
 %%EXAMPLESDIR%%/Hosts.blc
 %%EXAMPLESDIR%%/Hosts.pub
 %%EXAMPLESDIR%%/Hosts.rsk