diff options
author | Torsten Blum <torstenb@FreeBSD.org> | 1995-07-15 22:46:26 +0000 |
---|---|---|
committer | Torsten Blum <torstenb@FreeBSD.org> | 1995-07-15 22:46:26 +0000 |
commit | 2442984436e66890a1d17d8b4637df64a413ee28 (patch) | |
tree | 186ce30542b74d60c6efdcb71440e4d25a231543 /news/rkive/scripts | |
parent | A regrettable hack to allow a port to say that it doesn't want its Makefiles (diff) |
rkive - a USENET newsgroup archiver
Notes
Notes:
svn path=/head/; revision=1970
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 000000000000..cd7e2441c76a --- /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.$$ + + |