summaryrefslogtreecommitdiffstats
path: root/shells
diff options
context:
space:
mode:
authorolgeni <olgeni@FreeBSD.org>2001-06-17 17:52:33 +0000
committerolgeni <olgeni@FreeBSD.org>2001-06-17 17:52:33 +0000
commit1b70fc9899f968fa2aba8755f28e757050ae4028 (patch)
treee9769bc0ee9b843fd77bca6f1f31ca57780e17d5 /shells
parent11763c6f2d9bba2c2eaf73c7d959f5732dfa13d9 (diff)
downloadFreeBSD-ports-1b70fc9899f968fa2aba8755f28e757050ae4028.zip
FreeBSD-ports-1b70fc9899f968fa2aba8755f28e757050ae4028.tar.gz
Preserve files in etc/.
Approved by: greid
Diffstat (limited to 'shells')
-rw-r--r--shells/wapsh/Makefile6
-rw-r--r--shells/wapsh/pkg-plist12
2 files changed, 14 insertions, 4 deletions
diff --git a/shells/wapsh/Makefile b/shells/wapsh/Makefile
index f503184..81f7dac 100644
--- a/shells/wapsh/Makefile
+++ b/shells/wapsh/Makefile
@@ -54,7 +54,11 @@ do-install:
${MKDIR} ${PREFIX}/etc/wapsh
.for C in htsh_profile htshd.conf loginhosts
- ${INSTALL_DATA} ${WRKSRC}/sample/$C ${PREFIX}/etc/wapsh
+ ${INSTALL_DATA} ${WRKSRC}/sample/$C ${PREFIX}/etc/wapsh/$C.dist
+ if [ ! -e ${PREFIX}/etc/wapsh/$C ]; then \
+ ${CP} ${PREFIX}/etc/wapsh/$C.dist \
+ ${PREFIX}/etc/wapsh/$C; \
+ fi
.endfor
${MKDIR} ${PREFIX}/share/wapsh/htdocs
diff --git a/shells/wapsh/pkg-plist b/shells/wapsh/pkg-plist
index e34007b..6802c9a 100644
--- a/shells/wapsh/pkg-plist
+++ b/shells/wapsh/pkg-plist
@@ -1,8 +1,14 @@
sbin/htshd
etc/rc.d/htshd.sh
-etc/wapsh/htsh_profile
-etc/wapsh/htshd.conf
-etc/wapsh/loginhosts
+@unexec if cmp -s %D/etc/wapsh/htsh_profile %D/etc/wapsh/htsh_profile.dist; then rm -f %D/etc/wapsh/htsh_profile; fi
+etc/wapsh/htsh_profile.dist
+@exec [ -f %B/htsh_profile ] || cp %B/%f %B/htsh_profile
+@unexec if cmp -s %D/etc/wapsh/htshd.conf %D/etc/wapsh/htshd.conf.dist; then rm -f %D/etc/wapsh/htshd.conf; fi
+etc/wapsh/htshd.conf.dist
+@exec [ -f %B/htshd.conf ] || cp %B/%f %B/htshd.conf
+@unexec if cmp -s %D/etc/wapsh/loginhosts %D/etc/wapsh/loginhosts.dist; then rm -f %D/etc/wapsh/loginhosts; fi
+etc/wapsh/loginhosts.dist
+@exec [ -f %B/loginhosts ] || cp %B/%f %B/loginhosts
share/wapsh/htdocs/command.php
share/wapsh/htdocs/command_html.inc
share/wapsh/htdocs/command_wml.inc
OpenPOWER on IntegriCloud