diff options
author | mi <mi@FreeBSD.org> | 2012-09-26 08:12:16 +0800 |
---|---|---|
committer | mi <mi@FreeBSD.org> | 2012-09-26 08:12:16 +0800 |
commit | c2f9207504f0ed7fda14b59657d6d3ff5a486e04 (patch) | |
tree | 3933df159066c7c4a11b7047a1f169213f94ca6e /www/jmeter | |
parent | fffe58d6b07ae39e2527f129c43e5c78e9060f73 (diff) | |
download | freebsd-ports-gnome-c2f9207504f0ed7fda14b59657d6d3ff5a486e04.tar.gz freebsd-ports-gnome-c2f9207504f0ed7fda14b59657d6d3ff5a486e04.tar.zst freebsd-ports-gnome-c2f9207504f0ed7fda14b59657d6d3ff5a486e04.zip |
Update JMeter from 2.5.1 to 2.7 -- the latest at this moment. Re-arrange
the port to depend on JAR-files already provided by other ports, instead
of installing its own (bundled) versions of same.
Rename from "jakarta-jmeter" to simply "jmeter" -- according to Apache
site, Jakarta is no more and all its projects now live on their own.
Take over maintainership.
Approved by: beat (the previous maintainer)
Diffstat (limited to 'www/jmeter')
-rw-r--r-- | www/jmeter/Makefile | 91 | ||||
-rw-r--r-- | www/jmeter/distinfo | 2 | ||||
-rw-r--r-- | www/jmeter/files/jmeter.sh.in | 4 | ||||
-rw-r--r-- | www/jmeter/pkg-descr | 18 | ||||
-rw-r--r-- | www/jmeter/pkg-plist | 95 |
5 files changed, 210 insertions, 0 deletions
diff --git a/www/jmeter/Makefile b/www/jmeter/Makefile new file mode 100644 index 000000000000..773770a57a62 --- /dev/null +++ b/www/jmeter/Makefile @@ -0,0 +1,91 @@ +# New ports collection makefile for: jakarta-jmeter +# Date created: 12 August 2002 +# Whom: Ernst de Haan <znerd@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= apache-jmeter +PORTVERSION= 2.7 +CATEGORIES= www benchmarks java +MASTER_SITES= ${MASTER_SITE_APACHE} +MASTER_SITE_SUBDIR= jmeter/binaries +EXTRACT_SUFX= .tgz + +MAINTAINER= mi@aldan.algebra.com +COMMENT= Functional behaviour load and performance test application + +LICENSE= AL2 + +# These are JAR-files installed by other ports. The list should keep +# growing until all Java applications install just their own JARs -- not +# the 3rd-party ones: +RUN_DEPENDS= ${JAVAJARDIR}/activation.jar:${PORTSDIR}/java/jaf \ + ${JAVAJARDIR}/avalon-framework.jar:${PORTSDIR}/devel/avalon-framework \ + ${JAVAJARDIR}/commons-codec.jar:${PORTSDIR}/java/jakarta-commons-codec \ + ${JAVALIBDIR}/commons-collections.jar:${PORTSDIR}/java/jakarta-commons-collections \ + ${JAVALIBDIR}/commons-httpclient.jar:${PORTSDIR}/java/jakarta-commons-httpclient \ + ${JAVALIBDIR}/commons-io.jar:${PORTSDIR}/devel/jakarta-commons-io \ + ${JAVALIBDIR}/commons-lang.jar:${PORTSDIR}/java/jakarta-commons-lang \ + ${JAVAJARDIR}/commons-logging.jar:${PORTSDIR}/java/jakarta-commons-logging \ + ${JAVAJARDIR}/commons-net.jar:${PORTSDIR}/net/jakarta-commons-net \ + ${JAVAJARDIR}/httpclient.jar:${PORTSDIR}/www/httpclient \ + ${JAVAJARDIR}/httpcore.jar:${PORTSDIR}/www/httpcore \ + ${JAVAJARDIR}/httpmime.jar:${PORTSDIR}/www/httpclient \ + ${JAVAJARDIR}/jakarta-oro.jar:${PORTSDIR}/java/jakarta-oro \ + ${JAVAJARDIR}/jdom.jar:${PORTSDIR}/java/jdom \ + ${JAVAJARDIR}/junit.jar:${PORTSDIR}/java/junit \ + ${JAVAJARDIR}/mail.jar:${PORTSDIR}/java/javamail \ + ${JAVAJARDIR}/serializer.jar:${PORTSDIR}/textproc/xalan-j \ + ${JAVAJARDIR}/xalan.jar:${PORTSDIR}/textproc/xalan-j \ + ${JAVAJARDIR}/xercesImpl.jar:${PORTSDIR}/textproc/xerces-j \ + ${JAVAJARDIR}/xml-apis.jar:${PORTSDIR}/textproc/xerces-j \ + ${JAVAJARDIR}/xmlgraphics-commons.jar:${PORTSDIR}/graphics/xmlgraphics-commons \ + ${JAVAJARDIR}/xstream.jar:${PORTSDIR}/textproc/xstream \ + ${JAVASHAREDIR}/rhino/rhino.jar:${PORTSDIR}/lang/rhino + +USE_JAVA= yes +JAVA_VERSION= 1.5+ +NO_BUILD= yes +DATADIR= ${JAVASHAREDIR}/${PORTNAME} +SUB_FILES= jmeter.sh +DATAFILES= bin extras lib +# Do not even extract the MS-DOS files nor the JARs, +# that are already provided by other ports: +EXTRACT_AFTER_ARGS= |${TAR} -xpf - --exclude '*.bat' --exclude '*.cmd' \ + ${RUN_DEPENDS:M*.jar*:C|.*/(.+).jar:.*|--exclude '\1-*.jar'|} \ + --exclude 'oro-*.jar' + +.if !defined(NOPORTDOCS) +PORTDOCS= docs printable_docs README LICENSE +.endif + +.include <bsd.port.pre.mk> + +do-configure: + ${PRINTF} '\nuser.classpath=' >> ${WRKSRC}/bin/system.properties +.for j in ${RUN_DEPENDS:C/:.*//:M*.jar} + ${PRINTF} '$j:' >> ${WRKSRC}/bin/system.properties +.endfor + ${PRINTF} '\n' >> ${WRKSRC}/bin/system.properties + +do-install: + cd ${WRKSRC} \ + && ${FIND} ${DATAFILES} -type d -exec ${MKDIR} ${DATADIR}/{} \; + cd ${WRKSRC} \ + && ${FIND} ${DATAFILES} -type f -exec ${INSTALL_DATA} {} ${DATADIR}/{} \; +.if !defined(NOPORTDOCS) + cd ${WRKSRC} \ + && ${FIND} ${PORTDOCS} -type d -exec ${MKDIR} ${DOCSDIR}/{} \; + cd ${WRKSRC} \ + && ${FIND} ${PORTDOCS} -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \; +.endif + ${INSTALL_SCRIPT} ${WRKDIR}/jmeter.sh ${PREFIX}/bin/jmeter + +# For some reason, it is not enough for these three to simply be listed in +# jmeter.properties file. JMeter refuses to start, unless they are found in lib/ +BOOTSTRAP_JARS= avalon-framework xstream commons-io +post-install: + @${LN} -s ${BOOTSTRAP_JARS:C|.*|${JAVAJARDIR}/&.jar|} ${DATADIR}/lib/ + +.include <bsd.port.post.mk> diff --git a/www/jmeter/distinfo b/www/jmeter/distinfo new file mode 100644 index 000000000000..8f6de0320c93 --- /dev/null +++ b/www/jmeter/distinfo @@ -0,0 +1,2 @@ +SHA256 (apache-jmeter-2.7.tgz) = 6f25f11c1286050be8eb287715589525b83c55abae3ac8b311df99035f64b6b6 +SIZE (apache-jmeter-2.7.tgz) = 22960750 diff --git a/www/jmeter/files/jmeter.sh.in b/www/jmeter/files/jmeter.sh.in new file mode 100644 index 000000000000..d8f106d98d8b --- /dev/null +++ b/www/jmeter/files/jmeter.sh.in @@ -0,0 +1,4 @@ +#!/bin/sh +# $FreeBSD$ + +JAVA_VERSION="%%JAVA_VERSION%%" exec "%%LOCALBASE%%/bin/java" -jar "%%DATADIR%%/bin/ApacheJMeter.jar" "$@" diff --git a/www/jmeter/pkg-descr b/www/jmeter/pkg-descr new file mode 100644 index 000000000000..ab98c7d20628 --- /dev/null +++ b/www/jmeter/pkg-descr @@ -0,0 +1,18 @@ +Apache JMeter is a 100% pure Java desktop application designed to +load test functional behavior and measure performance. It was +originally designed for testing Web Applications but has since +expanded to other test functions. + +Apache JMeter may be used to test performance both on static and +dynamic resources (files, Servlets, Perl scripts, Java Objects, +Data Bases and Queries, FTP Servers and more). It can be used to +simulate a heavy load on a server, network or object to test its +strength or to analyze overall performance under different load +types. You can use it to make a graphical analysis of performance +or to test your server/script/object behavior under heavy +concurrent load. + +In addition to load-testing, the tool can also be used to verify +correctness of your web-applications. + +WWW: http://jmeter.apache.org/ diff --git a/www/jmeter/pkg-plist b/www/jmeter/pkg-plist new file mode 100644 index 000000000000..db8923fc2dc5 --- /dev/null +++ b/www/jmeter/pkg-plist @@ -0,0 +1,95 @@ +@comment $FreeBSD$ +%%DATADIR%%/bin/ApacheJMeter.jar +%%DATADIR%%/bin/BeanShellAssertion.bshrc +%%DATADIR%%/bin/BeanShellFunction.bshrc +%%DATADIR%%/bin/BeanShellListeners.bshrc +%%DATADIR%%/bin/BeanShellSampler.bshrc +%%DATADIR%%/bin/examples/CSVSample.jmx +%%DATADIR%%/bin/examples/CSVSample_actions.csv +%%DATADIR%%/bin/examples/CSVSample_user.csv +%%DATADIR%%/bin/hc.parameters +%%DATADIR%%/bin/httpclient.parameters +%%DATADIR%%/bin/jmeter +%%DATADIR%%/bin/jmeter-report +%%DATADIR%%/bin/jmeter-server +%%DATADIR%%/bin/jmeter.properties +%%DATADIR%%/bin/jmeter.sh +%%DATADIR%%/bin/log4j.conf +%%DATADIR%%/bin/logkit.xml +%%DATADIR%%/bin/mirror-server.sh +%%DATADIR%%/bin/proxyserver.jks +%%DATADIR%%/bin/saveservice.properties +%%DATADIR%%/bin/shutdown.sh +%%DATADIR%%/bin/stoptest.sh +%%DATADIR%%/bin/system.properties +%%DATADIR%%/bin/upgrade.properties +%%DATADIR%%/bin/user.properties +%%DATADIR%%/extras/ConvertHTTPSampler.txt +%%DATADIR%%/extras/Test.jmx +%%DATADIR%%/extras/addons.txt +%%DATADIR%%/extras/addons.xml +%%DATADIR%%/extras/ant-jmeter-1.1.1.jar +%%DATADIR%%/extras/build.xml +%%DATADIR%%/extras/collapse.png +%%DATADIR%%/extras/convertjmx.fdl +%%DATADIR%%/extras/execcode.bsh +%%DATADIR%%/extras/expand.png +%%DATADIR%%/extras/jmeter-results-detail-report.xsl +%%DATADIR%%/extras/jmeter-results-detail-report_21.xsl +%%DATADIR%%/extras/jmeter-results-report.xsl +%%DATADIR%%/extras/jmeter-results-report_21.xsl +%%DATADIR%%/extras/jmeter.fb +%%DATADIR%%/extras/printvars.bsh +%%DATADIR%%/extras/proxycert.sh +%%DATADIR%%/extras/remote.bsh +%%DATADIR%%/extras/schematic.xml +%%DATADIR%%/extras/schematic.xsl +%%DATADIR%%/extras/startup.bsh +%%DATADIR%%/lib/avalon-framework.jar +%%DATADIR%%/lib/bsf-2.4.0.jar +%%DATADIR%%/lib/bsf-api-3.1.jar +%%DATADIR%%/lib/bsh-2.0b5.jar +%%DATADIR%%/lib/bshclient.jar +%%DATADIR%%/lib/commons-io.jar +%%DATADIR%%/lib/commons-jexl-1.1.jar +%%DATADIR%%/lib/commons-jexl-2.1.1.jar +@comment %%DATADIR%%/lib/commons-net-3.0.1.jar +%%DATADIR%%/lib/excalibur-datasource-1.1.1.jar +%%DATADIR%%/lib/excalibur-instrument-1.0.jar +%%DATADIR%%/lib/excalibur-logger-1.1.jar +%%DATADIR%%/lib/excalibur-pool-1.2.jar +%%DATADIR%%/lib/ext/ApacheJMeter_components.jar +%%DATADIR%%/lib/ext/ApacheJMeter_core.jar +%%DATADIR%%/lib/ext/ApacheJMeter_ftp.jar +%%DATADIR%%/lib/ext/ApacheJMeter_functions.jar +%%DATADIR%%/lib/ext/ApacheJMeter_http.jar +%%DATADIR%%/lib/ext/ApacheJMeter_java.jar +%%DATADIR%%/lib/ext/ApacheJMeter_jdbc.jar +%%DATADIR%%/lib/ext/ApacheJMeter_jms.jar +%%DATADIR%%/lib/ext/ApacheJMeter_junit.jar +%%DATADIR%%/lib/ext/ApacheJMeter_ldap.jar +%%DATADIR%%/lib/ext/ApacheJMeter_mail.jar +%%DATADIR%%/lib/ext/ApacheJMeter_monitors.jar +%%DATADIR%%/lib/ext/ApacheJMeter_native.jar +%%DATADIR%%/lib/ext/ApacheJMeter_report.jar +%%DATADIR%%/lib/ext/ApacheJMeter_tcp.jar +%%DATADIR%%/lib/geronimo-jms_1.1_spec-1.1.1.jar +%%DATADIR%%/lib/htmllexer-2.1.jar +%%DATADIR%%/lib/htmlparser-2.1.jar +%%DATADIR%%/lib/jcharts-0.7.5.jar +%%DATADIR%%/lib/jorphan.jar +%%DATADIR%%/lib/jtidy-r938.jar +%%DATADIR%%/lib/junit/test.jar +%%DATADIR%%/lib/logkit-2.0.jar +%%DATADIR%%/lib/soap-2.3.1.jar +%%DATADIR%%/lib/xmlpull-1.1.3.1.jar +%%DATADIR%%/lib/xpp3_min-1.1.4c.jar +%%DATADIR%%/lib/xstream.jar +bin/jmeter +@dirrm %%DATADIR%%/bin/examples +@dirrm %%DATADIR%%/bin +@dirrm %%DATADIR%%/extras +@dirrm %%DATADIR%%/lib/ext +@dirrm %%DATADIR%%/lib/junit +@dirrm %%DATADIR%%/lib +@dirrm %%DATADIR%% |