aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJimmy Olgeni <olgeni@FreeBSD.org>2001-06-17 17:52:33 +0000
committerJimmy Olgeni <olgeni@FreeBSD.org>2001-06-17 17:52:33 +0000
commit00b40eca21c7c87360147657652efa83e8fdd17c (patch)
treed4c27ad0eb169d157bc9663c36016cb7f337ea6f
parentdf0e95a57c96b706df462256af4172f4de9162b1 (diff)
downloadports-00b40eca21c7c87360147657652efa83e8fdd17c.tar.gz
ports-00b40eca21c7c87360147657652efa83e8fdd17c.zip
Notes
-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 f503184e9af3..81f7dac81f77 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 e34007b0aa6d..6802c9a8f30a 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