aboutsummaryrefslogtreecommitdiff
path: root/news/nn/pkg-plist
diff options
context:
space:
mode:
authorJimmy Olgeni <olgeni@FreeBSD.org>2001-06-17 17:25:23 +0000
committerJimmy Olgeni <olgeni@FreeBSD.org>2001-06-17 17:25:23 +0000
commitd3f733208696d57add05ff47b18f2ee435863f99 (patch)
tree46fcb4407d92322d72a4cef96b3839ef41b6136a /news/nn/pkg-plist
parent4f16cef813389dcac1a727ef1385036dbd6820ce (diff)
downloadports-d3f733208696d57add05ff47b18f2ee435863f99.tar.gz
ports-d3f733208696d57add05ff47b18f2ee435863f99.zip
Preserve files in etc/. Change pkg-install to avoid overwriting them at
install time.
Notes
Notes: svn path=/head/; revision=44112
Diffstat (limited to 'news/nn/pkg-plist')
-rw-r--r--news/nn/pkg-plist8
1 files changed, 6 insertions, 2 deletions
diff --git a/news/nn/pkg-plist b/news/nn/pkg-plist
index 382283022e1a..dcff0687e2af 100644
--- a/news/nn/pkg-plist
+++ b/news/nn/pkg-plist
@@ -11,8 +11,12 @@ bin/nntidy
bin/nnusage
bin/nnview
bin/nn-inews
-etc/nntp_domain
-etc/nntp_server
+@unexec if cmp -s %D/etc/nntp_domain %D/etc/nntp_domain.dist; then rm -f %D/etc/nntp_domain; fi
+etc/nntp_domain.dist
+@exec [ -f %B/nntp_domain ] || cp %B/%f %B/nntp_domain
+@unexec if cmp -s %D/etc/nntp_server %D/etc/nntp_server.dist; then rm -f %D/etc/nntp_server; fi
+etc/nntp_server.dist
+@exec [ -f %B/nntp_server ] || cp %B/%f %B/nntp_server
lib/nn/aux
lib/nn/conf
lib/nn/help/Manual