diff options
author | torstenb <torstenb@FreeBSD.org> | 1995-07-15 22:46:26 +0000 |
---|---|---|
committer | torstenb <torstenb@FreeBSD.org> | 1995-07-15 22:46:26 +0000 |
commit | b5f301d0c4d3eaa776e716a13214ffe9a4c28117 (patch) | |
tree | 0fd110dac05d2a5f64afb36f91d8e2a666476306 /news/rkive/scripts | |
parent | d8344a5f4cec9e68c30df058df4f2361312f33a9 (diff) | |
download | FreeBSD-ports-b5f301d0c4d3eaa776e716a13214ffe9a4c28117.zip FreeBSD-ports-b5f301d0c4d3eaa776e716a13214ffe9a4c28117.tar.gz |
rkive - a USENET newsgroup archiver
Diffstat (limited to 'news/rkive/scripts')
-rw-r--r-- | news/rkive/scripts/configure | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/news/rkive/scripts/configure b/news/rkive/scripts/configure new file mode 100644 index 0000000..cd7e244 --- /dev/null +++ b/news/rkive/scripts/configure @@ -0,0 +1,32 @@ +#!/bin/sh +# +# $Id$ +# +if [ -d /var/spool/news ] && [ ! -d /var/news ] +then + NEWSSPOOL=/var/spool/news +else + NEWSSPOOL=/var/news +fi + +if [ -z $PROBLEMSDIR ] +then + echo Warning: PROBLEMSDIR undefined, using \"/usenet\" as default + echo " this will only be used if you do not specify" + echo " the PROBLEMS path variable inside the configuration" + echo " file ($PREFIX/lib/rkive/rkive.cf)" + PROBLEMSDIR=/usenet +fi + +cat >/tmp/tmp.rkive.sed.$$ << --EOF-- +s+!!NEWSSPOOL!!+$NEWSSPOOL+g +s+!!PREFIX!!+$PREFIX+g +s+!!PROBLEMSDIR!!+$PROBLEMSDIR+g +--EOF-- + +mv ${WRKSRC}/rkive.h ${WRKSRC}/rkive.h.old +sed <${WRKSRC}/rkive.h.old >${WRKSRC}/rkive.h -f /tmp/tmp.rkive.sed.$$ + +rm -f /tmp/tmp.inn.sed.$$ + + |