aboutsummaryrefslogtreecommitdiff
path: root/x11/wlogout
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2020-03-25 11:46:22 +0000
committerJan Beich <jbeich@FreeBSD.org>2020-03-25 11:46:22 +0000
commit6a1a7304f24402a403c20a3c319c6f70cad02a69 (patch)
treedb522d5c9768c227c5e155483f56c72c527bde62 /x11/wlogout
parent11e99ba77d7c8891b2363cefc4c84fa4427b4bd8 (diff)
downloadports-6a1a7304f24402a403c20a3c319c6f70cad02a69.tar.gz
ports-6a1a7304f24402a403c20a3c319c6f70cad02a69.zip
x11/wlogout: preserve changes to system-wide config
Notes
Notes: svn path=/head/; revision=529096
Diffstat (limited to 'x11/wlogout')
-rw-r--r--x11/wlogout/Makefile7
-rw-r--r--x11/wlogout/pkg-plist4
2 files changed, 9 insertions, 2 deletions
diff --git a/x11/wlogout/Makefile b/x11/wlogout/Makefile
index 486bb04bf2b8..9f73689ba943 100644
--- a/x11/wlogout/Makefile
+++ b/x11/wlogout/Makefile
@@ -2,6 +2,7 @@
PORTNAME= wlogout
PORTVERSION= 1.1.1
+PORTREVISION= 1
CATEGORIES= x11
MAINTAINER= jbeich@FreeBSD.org
@@ -30,4 +31,10 @@ post-patch:
${WRKSRC}/man/${PORTNAME}.1.scd \
${WRKSRC}/style.css
+post-install:
+# Let @sample handle default files under etc/
+ @for f in ${STAGEDIR}${ETCDIR}/*; do \
+ ${MV} $$f $$f.sample; \
+ done
+
.include <bsd.port.mk>
diff --git a/x11/wlogout/pkg-plist b/x11/wlogout/pkg-plist
index adce77e010e6..5c2278c65c6e 100644
--- a/x11/wlogout/pkg-plist
+++ b/x11/wlogout/pkg-plist
@@ -1,6 +1,6 @@
bin/wlogout
-%%ETCDIR%%/layout
-%%ETCDIR%%/style.css
+@sample %%ETCDIR%%/layout.sample
+@sample %%ETCDIR%%/style.css.sample
%%MANPAGES%%man/man1/wlogout.1.gz
%%MANPAGES%%man/man5/wlogout.5.gz
share/bash-completion/completions/wlogout.bash