diff options
author | sketch <sketch> | 2009-01-14 12:20:57 +0000 |
---|---|---|
committer | sketch <sketch> | 2009-01-14 12:20:57 +0000 |
commit | 6563af10677d7d2e4919315bd5eb5a2a13d9b3d2 (patch) | |
tree | 13b0a31dd106b21cf73981c7c772775ccad07583 /benchmarks | |
parent | d57f6279c8054b4c8aa0dd2299a4eb0edf861e49 (diff) | |
download | pkgsrc-6563af10677d7d2e4919315bd5eb5a2a13d9b3d2.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/Makefile | 13 |
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: |