summaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorsketch <sketch@pkgsrc.org>2009-01-14 12:20:57 +0000
committersketch <sketch@pkgsrc.org>2009-01-14 12:20:57 +0000
commit16f14133b69de5a1e061a538cd67952e531bd776 (patch)
tree13b0a31dd106b21cf73981c7c772775ccad07583 /benchmarks
parente3b90140c144befcdacb7c5886fb4612adf2e053 (diff)
downloadpkgsrc-16f14133b69de5a1e061a538cd67952e531bd776.tar.gz
Get rid of `hostname -s` in pkgsrc, on Solaris it sets the hostname to "-s".
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/hbench/Makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/benchmarks/hbench/Makefile b/benchmarks/hbench/Makefile
index c3eb74cd0b9..8cb0cc68151 100644
--- a/benchmarks/hbench/Makefile
+++ b/benchmarks/hbench/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.40 2008/04/05 14:09:18 chris Exp $
+# $NetBSD: Makefile,v 1.41 2009/01/14 12:20:57 sketch Exp $
DISTNAME= hbench-OS-1.0
PKGNAME= hbench-1.0
@@ -26,6 +26,11 @@ GET_ARCH_CMD= ${PKGSRCDIR:Q}/mk/gnu-config/config.guess | ${SED} -e 's/-.*-.*$$
GET_OS_CMD= ${PKGSRCDIR:Q}/mk/gnu-config/config.guess | ${SED} -e 's/^.*-.*-//'
PLIST_SUBST+= PLATFORM=${GET_OS_CMD:sh:Q}-${GET_ARCH_CMD:sh:Q}
+.include "../../mk/bsd.prefs.mk"
+
+HB_HOSTNAME!= ${UNAME} -n
+HB_SHORTNAME= ${HB_HOSTNAME:C/\..*//}
+
post-extract:
${CP} ${FILESDIR}/do-install ${WRKSRC}
@@ -48,12 +53,12 @@ benchmark:
${MKDIR} conf; \
${MKDIR} results; \
${SED} -e 's|@pwd@|'`/bin/pwd`'|g' \
- -e 's|@hostname@|'`/bin/hostname -s`'|g' \
+ -e 's|@hostname@|${HB_SHORTNAME}|g' \
-e 's|@wrksrc@|'`/bin/pwd`'|g' \
${FILESDIR}/setup.answers | ${MAKE} setup; \
- ${MV} conf/`/bin/hostname -s`.run conf/foo ; \
+ ${MV} conf/${HB_SHORTNAME}.run conf/foo ; \
${SED} -e 's|#PLAINBINDIR=${HBENCHROOT}|PLAINBINDIR='`/bin/pwd`'|' \
- < conf/foo > conf/`/bin/hostname -s`.run ; \
+ < conf/foo > conf/${HB_SHORTNAME}.run ; \
${MAKE} run
results: