git: 617500ce3645 - main - x11/imwheel: Install the imwheel rc file (imwheelrc) as a sample
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 11 Sep 2024 19:44:11 UTC
The branch main has been updated by cy:
URL: https://cgit.FreeBSD.org/ports/commit/?id=617500ce3645d96ab6ff682815dd49266ba17cae
commit 617500ce3645d96ab6ff682815dd49266ba17cae
Author: Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2024-09-11 19:38:29 +0000
Commit: Cy Schubert <cy@FreeBSD.org>
CommitDate: 2024-09-11 19:43:57 +0000
x11/imwheel: Install the imwheel rc file (imwheelrc) as a sample
Use pkg plumbing to install the actual config file for us.
---
x11/imwheel/Makefile | 5 ++++-
x11/imwheel/pkg-plist | 2 +-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/x11/imwheel/Makefile b/x11/imwheel/Makefile
index 8236e948371a..496340478a88 100644
--- a/x11/imwheel/Makefile
+++ b/x11/imwheel/Makefile
@@ -1,6 +1,6 @@
PORTNAME= imwheel
DISTVERSION= 1.0.0pre12
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= x11
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-source/${DISTVERSION}
@@ -25,6 +25,9 @@ post-patch:
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/${i}
.endfor
+post-install:
+ @${MV} ${STAGEDIR}${PREFIX}/etc/imwheelrc ${STAGEDIR}${PREFIX}/etc/imwheelrc.sample
+
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/EMACS ${STAGEDIR}${DOCSDIR}
diff --git a/x11/imwheel/pkg-plist b/x11/imwheel/pkg-plist
index 5de3826c8e6f..c030b3f0d261 100644
--- a/x11/imwheel/pkg-plist
+++ b/x11/imwheel/pkg-plist
@@ -1,5 +1,5 @@
bin/imwheel
-etc/imwheelrc
+@sample etc/imwheelrc.sample
share/man/man1/imwheel.1.gz
%%PORTDOCS%%%%DOCSDIR%%/EMACS
%%PORTDOCS%%%%DOCSDIR%%/README