aboutsummaryrefslogtreecommitdiffstats
path: root/news/slurp/scripts/configure
blob: e2cc18aaa79e054b6789b198e098089bc31752b8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
#
# $FreeBSD$
#

TMPFILE=${TMPDIR:-/tmp}/tmp.slurp.sed.$$
trap 'rm -f ${TMPFILE}' 1 2 13 15

echo "s!/usr/lib/news!${PREFIX}/news/lib!" > ${TMPFILE}

if [ -d /var/news ]
then
    echo 's!/var/spool!/var!' >> ${TMPFILE}
fi

sed -f ${TMPFILE} < ${WRKSRC}/conf.h > ${WRKSRC}/conf.h.tmp
mv ${WRKSRC}/conf.h.tmp ${WRKSRC}/conf.h
rm -f ${TMPFILE}

rm -f ${WRKDIR}/syslog.h

cp ${FILESDIR}/dbz.* ${WRKSRC}
cp ${FILESDIR}/siteexclude.c ${WRKSRC}