git: 747a7086aa70 - main - net/mpd5: Use @sample for sample configuration files

From: Mateusz Piotrowski <0mp_at_FreeBSD.org>
Date: Tue, 29 Mar 2022 14:02:09 UTC
The branch main has been updated by 0mp:

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

commit 747a7086aa7009638bf286ac49d2219b4d568438
Author:     Mateusz Piotrowski <0mp@FreeBSD.org>
AuthorDate: 2022-03-29 13:58:02 +0000
Commit:     Mateusz Piotrowski <0mp@FreeBSD.org>
CommitDate: 2022-03-29 13:58:02 +0000

    net/mpd5: Use @sample for sample configuration files
    
    The port installs some ".sample" configuration files into etc. Let's use
    the @sample keyword to manage them correctly during upgrades and
    deinstallations.
    
    Approved by:    portmgr blanket
---
 net/mpd5/Makefile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/net/mpd5/Makefile b/net/mpd5/Makefile
index 97f2a8fb013c..e0ed5e8ac0c8 100644
--- a/net/mpd5/Makefile
+++ b/net/mpd5/Makefile
@@ -2,7 +2,7 @@
 
 PORTNAME=	mpd
 DISTVERSION=	5.9
-PORTREVISION=	7
+PORTREVISION=	8
 CATEGORIES=	net
 MASTER_SITES=	SF/${PORTNAME}/Mpd5/Mpd-${PORTVERSION}
 PKGNAMESUFFIX=	5
@@ -50,7 +50,8 @@ USE_RC_SUBR=	mpd5
 CONFSUF=	conf secret script
 DOCSDIR=	${PREFIX}/share/doc/mpd5
 PORTDOCS=	README mpd*
-PLIST_FILES=	${CONFSUF:S/^/etc\/mpd5\/mpd./:S/$/.sample/} sbin/mpd5
+PLIST_FILES=	${CONFSUF:C|(.*)|"@sample etc/mpd5/mpd.\1.sample"|} \
+		sbin/mpd5
 
 .if !defined(WITHOUT_MAN)
 PLIST_FILES+=	man/man8/mpd5.8.gz