From 6a1a7304f24402a403c20a3c319c6f70cad02a69 Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Wed, 25 Mar 2020 11:46:22 +0000 Subject: [PATCH] x11/wlogout: preserve changes to system-wide config --- x11/wlogout/Makefile | 7 +++++++ x11/wlogout/pkg-plist | 4 ++-- 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 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