1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-03 11:12:13 +00:00

Don't assume env TMPDIR is defined.

PR:		ports/7838
This commit is contained in:
Tim Vanderhoek 1998-09-05 20:40:09 +00:00
parent 345084608f
commit f6432d2baf
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=13017

View File

@ -1,18 +1,21 @@
#!/bin/sh
#
# $Id$
# $Id: configure,v 1.1 1997/11/13 23:14:58 jraynard Exp $
#
echo "s!/usr/lib/news!${PREFIX}/news/lib!" > ${TMPDIR}/tmp.slurp.sed.$$
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!' >> ${TMPDIR}/tmp.slurp.sed.$$
echo 's!/var/spool!/var!' >> ${TMPFILE}
fi
sed -f ${TMPDIR}/tmp.slurp.sed.$$ < ${WRKSRC}/conf.h > ${WRKSRC}/conf.h.tmp
sed -f ${TMPFILE} < ${WRKSRC}/conf.h > ${WRKSRC}/conf.h.tmp
mv ${WRKSRC}/conf.h.tmp ${WRKSRC}/conf.h
rm -f ${TMPDIR}/tmp.slurp.sed.$$
rm -f ${TMPFILE}
rm -f ${WRKDIR}/syslog.h