1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

Specify TMPDIR and RESULTDIR outside the /usr tree, or a R/O /usr will

prevent the tests from running.
This commit is contained in:
Stefan Eßer 1996-01-03 00:06:21 +00:00
parent 2d1df8b704
commit 1da350ced8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=2598
2 changed files with 28 additions and 4 deletions

View File

@ -17,8 +17,20 @@ do-install:
-mkdir -p $(PREFIX)/lib/bytebench
for f in Makefile README Run doc pgms results testdir; \
do cp -R $(WRKSRC)/$$f $(PREFIX)/lib/bytebench; done
echo "!#/bin/sh" > $(PREFIX)/bin/bytebench
echo "$(PREFIX)/lib/bytebench/Run" >> $(PREFIX)/bin/bytebench
echo "#!/bin/sh" > $(PREFIX)/bin/bytebench
echo "TMPDIR=/var/tmp" >> $(PREFIX)/bin/bytebench
echo "RESULTDIR=/tmp" >> $(PREFIX)/bin/bytebench
echo "export TMPDIR RESULTDIR" >> $(PREFIX)/bin/bytebench
echo "cd $(PREFIX)/lib/bytebench" >> $(PREFIX)/bin/bytebench
echo "exec ./Run" >> $(PREFIX)/bin/bytebench
chmod 755 $(PREFIX)/bin/bytebench
chmod 644 $(PREFIX)/lib/bytebench/Makefile
chmod 644 $(PREFIX)/lib/bytebench/README
chmod 755 $(PREFIX)/lib/bytebench/Run
chmod 755 $(PREFIX)/lib/bytebench/doc
chmod 755 $(PREFIX)/lib/bytebench/pgms
chmod 755 $(PREFIX)/lib/bytebench/pgms/*
chmod 755 $(PREFIX)/lib/bytebench/results
chmod 755 $(PREFIX)/lib/bytebench/testdir
.include <bsd.port.mk>

View File

@ -17,8 +17,20 @@ do-install:
-mkdir -p $(PREFIX)/lib/bytebench
for f in Makefile README Run doc pgms results testdir; \
do cp -R $(WRKSRC)/$$f $(PREFIX)/lib/bytebench; done
echo "!#/bin/sh" > $(PREFIX)/bin/bytebench
echo "$(PREFIX)/lib/bytebench/Run" >> $(PREFIX)/bin/bytebench
echo "#!/bin/sh" > $(PREFIX)/bin/bytebench
echo "TMPDIR=/var/tmp" >> $(PREFIX)/bin/bytebench
echo "RESULTDIR=/tmp" >> $(PREFIX)/bin/bytebench
echo "export TMPDIR RESULTDIR" >> $(PREFIX)/bin/bytebench
echo "cd $(PREFIX)/lib/bytebench" >> $(PREFIX)/bin/bytebench
echo "exec ./Run" >> $(PREFIX)/bin/bytebench
chmod 755 $(PREFIX)/bin/bytebench
chmod 644 $(PREFIX)/lib/bytebench/Makefile
chmod 644 $(PREFIX)/lib/bytebench/README
chmod 755 $(PREFIX)/lib/bytebench/Run
chmod 755 $(PREFIX)/lib/bytebench/doc
chmod 755 $(PREFIX)/lib/bytebench/pgms
chmod 755 $(PREFIX)/lib/bytebench/pgms/*
chmod 755 $(PREFIX)/lib/bytebench/results
chmod 755 $(PREFIX)/lib/bytebench/testdir
.include <bsd.port.mk>