382dff173a
needed for troubleshooting). And use BINOWN and BINGRP because user "bin" and group "bin" don't exist on some systems. Use BSD_INSTALL_PROGRAM, BSD_INSTALL_DATA and BSD_INSTALL_SCRIPT instead of calling /usr/bin/install directly. Okayed by maintainer. Bumped PKGREVISION, since ownership of files may be different on some systems.
36 lines
1.2 KiB
Bash
Executable file
36 lines
1.2 KiB
Bash
Executable file
#!/bin/sh
|
|
#
|
|
# $NetBSD: do-install,v 1.2 2005/12/29 03:26:28 reed Exp $
|
|
#
|
|
|
|
cd $WRKSRC
|
|
DIRS=`ls -d bin/*`
|
|
SCRIPTS="argsort config.guess config.sub create-all-analyses create-all-latgraphs create-all-summaries depend gen-analysis gen-latgraph gen-summary getostype interactive-setup maindriver stats-full stats-single"
|
|
DOCS="README benchmark-descriptions interpreting-results sigmetrics97-paper.ps.gz using-hbench"
|
|
|
|
mkdir -p $PREFIX/bin/hbench
|
|
mkdir -p $PREFIX/share/hbench
|
|
mkdir -p $PREFIX/share/hbench/Results
|
|
|
|
for basedir in $DIRS; do
|
|
OSDIR=`basename $basedir`
|
|
mkdir -p $PREFIX/bin/hbench/$OSDIR
|
|
$BSD_INSTALL_PROGRAM bin/$OSDIR/* $PREFIX/bin/hbench/$OSDIR
|
|
done
|
|
|
|
for files in $SCRIPTS; do
|
|
$BSD_INSTALL_SCRIPT scripts/$files $PREFIX/bin/hbench
|
|
done
|
|
mkdir -p $PREFIX/share/doc/hbench
|
|
for files in $DOCS; do
|
|
$BSD_INSTALL_DATA doc/$files $PREFIX/share/doc/hbench
|
|
done
|
|
cat <<EOF >$PREFIX/bin/run-hbench
|
|
#!/bin/sh
|
|
${PREFIX}/bin/hbench/interactive-setup
|
|
${PREFIX}/bin/hbench/maindriver ${PREFIX}/share/hbench/conf/`hostname`.run
|
|
EOF
|
|
chown $BINOWN:$BINGRP ${PREFIX}/bin/run-hbench
|
|
chmod 0755 ${PREFIX}/bin/run-hbench
|
|
cp Results/Makefile $PREFIX/share/hbench/Results
|
|
cp -R conf $PREFIX/share/hbench
|