diff options
author | olgeni <olgeni@FreeBSD.org> | 2001-06-17 17:25:23 +0000 |
---|---|---|
committer | olgeni <olgeni@FreeBSD.org> | 2001-06-17 17:25:23 +0000 |
commit | 50637dc0440505b3ef780e1b26be5a7567e2c874 (patch) | |
tree | 529ae442986fa814e1760b1d7740b7657cc99633 /news/nn/pkg-install | |
parent | 88bb820b994e842dcdba10e68211591efb157fe8 (diff) | |
download | FreeBSD-ports-50637dc0440505b3ef780e1b26be5a7567e2c874.zip FreeBSD-ports-50637dc0440505b3ef780e1b26be5a7567e2c874.tar.gz |
Preserve files in etc/. Change pkg-install to avoid overwriting them at
install time.
Diffstat (limited to 'news/nn/pkg-install')
-rw-r--r-- | news/nn/pkg-install | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/news/nn/pkg-install b/news/nn/pkg-install index 49cbe7d..f796ec9 100644 --- a/news/nn/pkg-install +++ b/news/nn/pkg-install @@ -28,8 +28,7 @@ cat << xxENDxx ******************************************************************* xxENDxx -if [ ! -f ${PKG_PREFIX}/etc/nntp_server ]; then - cat << xxENDxx > ${PKG_PREFIX}/etc/nntp_server +cat << xxENDxx > ${PKG_PREFIX}/etc/nntp_server.dist # nntp_server: Configuration file for NN newsreader # # Set your NNTP server address or hostname in this file. @@ -39,10 +38,12 @@ if [ ! -f ${PKG_PREFIX}/etc/nntp_server ]; then # # news.myisp.com xxENDxx + +if [ ! -e ${PKG_PREFIX}/etc/nntp_server ]; then + cp ${PKG_PREFIX}/etc/nntp_server.dist ${PKG_PREFIX}/etc/nntp_server fi -if [ ! -f ${PKG_PREFIX}/etc/nntp_domain ]; then - cat << xxENDxx > ${PKG_PREFIX}/etc/nntp_domain +cat << xxENDxx > ${PKG_PREFIX}/etc/nntp_domain.dist # nntp_domain: Configuration file for NN newsreader # # Set the default domain name portion of user e-mail addresses as you @@ -57,4 +58,7 @@ if [ ! -f ${PKG_PREFIX}/etc/nntp_domain ]; then # If this file is left blank, NN will use the hostname of this # computer as the From: domain name. xxENDxx + +if [ ! -e ${PKG_PREFIX}/etc/nntp_domain ]; then + cp ${PKG_PREFIX}/etc/nntp_domain.dist ${PKG_PREFIX}/etc/nntp_domain fi |