1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/news/slurp/scripts/configure
Tim Vanderhoek f6432d2baf Don't assume env TMPDIR is defined.
PR:		ports/7838
1998-09-05 20:40:09 +00:00

24 lines
491 B
Bash

#!/bin/sh
#
# $Id: configure,v 1.1 1997/11/13 23:14:58 jraynard Exp $
#
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}