diff options
author | tron <tron@pkgsrc.org> | 1999-07-26 20:56:23 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 1999-07-26 20:56:23 +0000 |
commit | da7bb6dd853f924f697504e9f7e062555f5705e8 (patch) | |
tree | 6d2274e238be8962dfe55c84c1a99a6d06caee48 /news/inn/files | |
parent | 5f2ed25075f2b6b019cd31623cb78e6d7a5a58bc (diff) | |
download | pkgsrc-da7bb6dd853f924f697504e9f7e062555f5705e8.tar.gz |
Create configuration files in "${PREFIX}/etc/nntp" automatically so that
newsreaders like "nn" or "trn" can use them.
Diffstat (limited to 'news/inn/files')
-rw-r--r-- | news/inn/files/innd.sh | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/news/inn/files/innd.sh b/news/inn/files/innd.sh index f832407ecf6..4ee4fed891e 100644 --- a/news/inn/files/innd.sh +++ b/news/inn/files/innd.sh @@ -1,10 +1,25 @@ #!/bin/sh # -# $NetBSD: innd.sh,v 1.4 1999/07/24 17:38:14 tron Exp $ +# $NetBSD: innd.sh,v 1.5 1999/07/26 20:56:24 tron Exp $ # if [ -x @@PREFIX@@/bin/rc.news -a -s @@INN_DATA_DIR@@/db/active ]; then su news -c @@PREFIX@@/bin/rc.news >/dev/null + + if [ ! -f @@PREFIX@@/etc/nntp/server ] + then + hostname >@@PREFIX@@/etc/nntp/server + fi + + if [ ! -f @@PREFIX@@/etc/nntp/domainname ] + then + set - X `grep -w ^fromhost: @@INN_DATA_DIR@@/etc/inn.conf | head -1` + if [ $# -eq 3 ] + then + echo $3 >@@PREFIX@@/etc/nntp/domainname + fi + fi + echo -n ' innd' fi exit 0 |