# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Java server benchmark utility" HOMEPAGE="http://www.volano.com/benchmarks.html" SRC_URI="http://www.volano.com/pub/vmark2_5_0_9.class" LICENSE="Volano" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="virtual/jre >=sys-apps/sed-4" src_unpack() { :; } src_install() { java -classpath ${DISTDIR} vmark2_5_0_9 -o ${WORKDIR}/${P} dodir /opt/${PN} cd ${WORKDIR}/${P} chmod 755 *.sh einfo "Fixing startup.sh..." sed -i \ -e "s:java=.*:java="'${JAVA_HOME}'"\/bin/\java:g" startup.sh || die "sed startup.sh" cp -r . ${D}/opt/${PN} # Make sure portage doesn't prune the logs directory keepdir /opt/${PN}/logs } pkg_postinst() { ewarn "The vendor provided installation script is somewhat broken!" einfo einfo "startup.sh was patched to allow the use of the current JVM as" einfo "selected by java-config. This means that regardless of the" einfo "Java vendor you specify to ${PN}, it will STILL use the default" einfo "JVM configured via java-config" einfo einfo "Just make sure that when you run ${PN}, the Java vendor you specify" einfo "matches up with what java-config is configured for. Otherwise there" einfo "may be problems." einfo einfo "Remember to set the host property in startup.sh to the host that is" einfo "running the server" }