git: 39f9b2e1ba93 - main - devel/pmd: use ETCDIR

From: Vladimir Druzenko <vvd_at_FreeBSD.org>
Date: Tue, 23 Jul 2024 13:06:36 UTC
The branch main has been updated by vvd:

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

commit 39f9b2e1ba93281c5ca5a1d378be5a8a1279cdf1
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2024-07-23 13:03:35 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2024-07-23 13:04:00 +0000

    devel/pmd: use ETCDIR
    
    PR:     280379
---
 devel/pmd/Makefile  | 6 +++---
 devel/pmd/pkg-plist | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/devel/pmd/Makefile b/devel/pmd/Makefile
index 1c231d0a3f37..b2e0b295a882 100644
--- a/devel/pmd/Makefile
+++ b/devel/pmd/Makefile
@@ -20,16 +20,16 @@ DATADIR=	${JAVASHAREDIR}/${PORTNAME}
 NO_ARCH=	yes
 NO_BUILD=	yes
 WRKSRC=		${WRKDIR}/${PORTNAME}-bin-${DISTVERSION}
-PLIST_SUB+=	PORTVERSION=${DISTVERSION}
+PLIST_SUB+=	ETCDIR=${ETCDIR} PORTVERSION=${DISTVERSION}
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/bin/${PORTNAME}
 
 do-install:
 	${INSTALL_SCRIPT} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
-	${MKDIR} ${STAGEDIR}${PREFIX}/etc/${PORTNAME}
+	${MKDIR} ${STAGEDIR}${ETCDIR}
 	${INSTALL_DATA} ${WRKSRC}/conf/simplelogger.properties \
-		${STAGEDIR}${PREFIX}/etc/${PORTNAME}/simplelogger.properties.sample
+		${STAGEDIR}${ETCDIR}/simplelogger.properties.sample
 	cd ${WRKSRC} && ${COPYTREE_SHARE} sbom ${STAGEDIR}${DATADIR}
 	${INSTALL_DATA} ${WRKSRC}/lib/* ${STAGEDIR}${DATADIR}
 
diff --git a/devel/pmd/pkg-plist b/devel/pmd/pkg-plist
index 85ea13ce75ff..e61a7953712f 100644
--- a/devel/pmd/pkg-plist
+++ b/devel/pmd/pkg-plist
@@ -1,5 +1,5 @@
 bin/pmd
-@sample etc/pmd/simplelogger.properties.sample
+@sample %%ETCDIR%%/simplelogger.properties.sample
 %%DATADIR%%/Saxon-HE-12.4.jar
 %%DATADIR%%/antlr4-runtime-4.9.3.jar
 %%DATADIR%%/apex-ls_2.13-5.2.0.jar