diff options
author | olgeni <olgeni@FreeBSD.org> | 2001-06-18 01:52:33 +0800 |
---|---|---|
committer | olgeni <olgeni@FreeBSD.org> | 2001-06-18 01:52:33 +0800 |
commit | 1b70fc9899f968fa2aba8755f28e757050ae4028 (patch) | |
tree | e9769bc0ee9b843fd77bca6f1f31ca57780e17d5 | |
parent | 11763c6f2d9bba2c2eaf73c7d959f5732dfa13d9 (diff) | |
download | freebsd-ports-gnome-1b70fc9899f968fa2aba8755f28e757050ae4028.tar.gz freebsd-ports-gnome-1b70fc9899f968fa2aba8755f28e757050ae4028.tar.zst freebsd-ports-gnome-1b70fc9899f968fa2aba8755f28e757050ae4028.zip |
Preserve files in etc/.
Approved by: greid
-rw-r--r-- | shells/wapsh/Makefile | 6 | ||||
-rw-r--r-- | shells/wapsh/pkg-plist | 12 |
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 |