1997-11-13 23:14:58 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
1998-09-05 20:40:09 +00:00
|
|
|
# $Id: configure,v 1.1 1997/11/13 23:14:58 jraynard Exp $
|
1997-11-13 23:14:58 +00:00
|
|
|
#
|
|
|
|
|
1998-09-05 20:40:09 +00:00
|
|
|
TMPFILE=${TMPDIR:-/tmp}/tmp.slurp.sed.$$
|
|
|
|
trap 'rm -f ${TMPFILE}' 1 2 13 15
|
|
|
|
|
|
|
|
echo "s!/usr/lib/news!${PREFIX}/news/lib!" > ${TMPFILE}
|
1997-11-13 23:14:58 +00:00
|
|
|
|
|
|
|
if [ -d /var/news ]
|
|
|
|
then
|
1998-09-05 20:40:09 +00:00
|
|
|
echo 's!/var/spool!/var!' >> ${TMPFILE}
|
1997-11-13 23:14:58 +00:00
|
|
|
fi
|
|
|
|
|
1998-09-05 20:40:09 +00:00
|
|
|
sed -f ${TMPFILE} < ${WRKSRC}/conf.h > ${WRKSRC}/conf.h.tmp
|
1997-11-13 23:14:58 +00:00
|
|
|
mv ${WRKSRC}/conf.h.tmp ${WRKSRC}/conf.h
|
1998-09-05 20:40:09 +00:00
|
|
|
rm -f ${TMPFILE}
|
1997-11-13 23:14:58 +00:00
|
|
|
|
|
|
|
rm -f ${WRKDIR}/syslog.h
|
|
|
|
|
|
|
|
cp ${FILESDIR}/dbz.* ${WRKSRC}
|
|
|
|
cp ${FILESDIR}/siteexclude.c ${WRKSRC}
|