1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-13 23:36:08 +00:00
freebsd-ports/news/rkive/scripts/configure

33 lines
713 B
Plaintext
Raw Normal View History

1995-07-15 22:46:26 +00:00
#!/bin/sh
#
1999-08-30 14:33:04 +00:00
# $FreeBSD$
1995-07-15 22:46:26 +00:00
#
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.$$