1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

- Update to bsd.java.mk 2.0

- Use javavmwrapper in the launcher
- Use SUB_FILES to configure the launcher shell script
- Install in DATADIR=${JAVASHAREDIR}/${PORTNAME}
- Honor hier: install documentation in ${DOCSDIR}
- Honor ${PORTDOCS}
- Bump PORTREVISION due to file path changes
- Add $FreeBSD$ tags
This commit is contained in:
Herve Quiroz 2005-04-28 19:57:29 +00:00
parent 79d0a1a407
commit e5f3fd7b6e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=134331
4 changed files with 72 additions and 314 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= jmeter
PORTVERSION= 1.9.1
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= www benchmarks java
MASTER_SITES= ${MASTER_SITE_APACHE_JAKARTA}
MASTER_SITE_SUBDIR= jmeter/binaries
@ -18,47 +18,33 @@ EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= Functional behaviour load and performance test application
USE_JAVA= 1.3+
USE_JAVA= yes
JAVA_VERSION= 1.3+
NO_BUILD= yes
APP_HOME?= ${PREFIX}/${PKGNAMEPREFIX}${PORTNAME}
PLIST_SUB+= T=${APP_HOME:S/^${PREFIX}\///}
REPLACE_FILES= ${FILESDIR}/jmeter
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
SUB_FILES= jmeter.sh
DATAFILES= bin extras lib
.if !defined(NOPORTDOCS)
PORTDOCS= docs printable_docs README LICENSE
.endif
.include <bsd.port.pre.mk>
post-patch:
@${ECHO_CMD} -n ">> Removing unneeded files..."
@${FIND} ${WRKSRC} -type f \( -name \*.bat -o -name \*.orig -o -name \*.exe -o -name \*.bak \) -delete
@${ECHO_CMD} " [ DONE ]"
.for f in ${REPLACE_FILES}
@${ECHO_CMD} -n ">> Customizing `basename $f`..."
@${SED} \
-e "/%%JAVA%%/s//${JAVA:S/\//\\\//g}/g" \
-e "/%%APP_HOME%%/s//${APP_HOME:S/\//\\\//g}/g" \
$f > ${WRKDIR}/`basename $f`
@${ECHO_CMD} " [ DONE ]"
.endfor
${FIND} ${WRKSRC} -type f \( -name \*.bat -o -name \*.orig -o -name \*.exe -o -name \*.bak \) -delete
do-install:
@${ECHO_CMD} -n ">> Creating destination directory..."
@${MKDIR} ${APP_HOME}
@${ECHO_CMD} " [ DONE ]"
@${ECHO_CMD} -n ">> Copying files to destination directory..."
@${CP} -R ${WRKSRC}/* ${APP_HOME}
.for f in ${REPLACE_FILES}
@${CP} ${WRKDIR}/`basename $f` ${APP_HOME}/bin
.endfor
@${ECHO_CMD} " [ DONE ]"
@${ECHO_CMD} -n ">> Fixing permissions..."
@${FIND} ${APP_HOME} -print0 -type d | ${XARGS} -0 ${CHMOD} 755
@${CHMOD} 755 ${APP_HOME}/bin/jmeter
@${ECHO_CMD} " [ DONE ]"
@${ECHO_CMD} -n ">> Creating symlink ${PREFIX}/bin/jmeter..."
@${LN} -sf ${APP_HOME}/bin/jmeter ${PREFIX}/bin/jmeter
@${ECHO_CMD} " [ DONE ]"
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
.include <bsd.port.post.mk>

View File

@ -1,5 +0,0 @@
#!/bin/sh
#
# $FreeBSD$
%%JAVA%% -jar %%APP_HOME%%/bin/ApacheJMeter.jar "$@"

View File

@ -0,0 +1,4 @@
#!/bin/sh
# $FreeBSD$
JAVA_VERSION="%%JAVA_VERSION%%" "%%LOCALBASE%%/bin/java" -jar "%%DATADIR%%/bin/ApacheJMeter.jar" "$@"

View File

@ -1,274 +1,47 @@
@comment $FreeBSD$
bin/jmeter
%%T%%/docs/images/screenshots/assertion/assertion.gif
%%T%%/docs/images/screenshots/assertion/example1a.png
%%T%%/docs/images/screenshots/assertion/example1b.gif
%%T%%/docs/images/screenshots/assertion/example1c-fail.gif
%%T%%/docs/images/screenshots/assertion/example1c-pass.gif
%%T%%/docs/images/screenshots/ldaptest/viewtable.png
%%T%%/docs/images/screenshots/ldaptest/delete.png
%%T%%/docs/images/screenshots/ldaptest/login-config-element.png
%%T%%/docs/images/screenshots/ldaptest/modify.png
%%T%%/docs/images/screenshots/ldaptest/requestdefaults.png
%%T%%/docs/images/screenshots/ldaptest/search.png
%%T%%/docs/images/screenshots/ldaptest/threadgroup.png
%%T%%/docs/images/screenshots/ldaptest/add.png
%%T%%/docs/images/screenshots/logic-controller/simple-example.gif
%%T%%/docs/images/screenshots/logic-controller/interleave.png
%%T%%/docs/images/screenshots/logic-controller/interleave2.png
%%T%%/docs/images/screenshots/logic-controller/interleave3.png
%%T%%/docs/images/screenshots/logic-controller/loop-controller.gif
%%T%%/docs/images/screenshots/logic-controller/loop-example.gif
%%T%%/docs/images/screenshots/logic-controller/once-only-controller.gif
%%T%%/docs/images/screenshots/logic-controller/once-only-example.png
%%T%%/docs/images/screenshots/logic-controller/random-controller.gif
%%T%%/docs/images/screenshots/logic-controller/recording-controller.gif
%%T%%/docs/images/screenshots/logic-controller/simple-controller.gif
%%T%%/docs/images/screenshots/logic-controller/interleave-controller.png
%%T%%/docs/images/screenshots/remote/run-menu00.gif
%%T%%/docs/images/screenshots/timers/constant_throughput_timer.gif
%%T%%/docs/images/screenshots/timers/constant_timer.gif
%%T%%/docs/images/screenshots/timers/gauss_random_timer.gif
%%T%%/docs/images/screenshots/timers/uniform_random_timer.gif
%%T%%/docs/images/screenshots/webtest/threadgroup2.png
%%T%%/docs/images/screenshots/webtest/file-reporter.gif
%%T%%/docs/images/screenshots/webtest/http-defaults1.png
%%T%%/docs/images/screenshots/webtest/http-defaults2.png
%%T%%/docs/images/screenshots/webtest/http-request1.png
%%T%%/docs/images/screenshots/webtest/http-request2.png
%%T%%/docs/images/screenshots/webtest/threadgroup.png
%%T%%/docs/images/screenshots/webtest/file-reporter-results.gif
%%T%%/docs/images/screenshots/jdbctest/graph-results.png
%%T%%/docs/images/screenshots/jdbctest/JDBCRequest.png
%%T%%/docs/images/screenshots/jdbctest/JDBCRequest2.png
%%T%%/docs/images/screenshots/jdbctest/JDBCRequest3.png
%%T%%/docs/images/screenshots/jdbctest/threadgroup.png
%%T%%/docs/images/screenshots/jdbctest/threadgroup2.png
%%T%%/docs/images/screenshots/ftp-config/ftp-request-defaults.gif
%%T%%/docs/images/screenshots/ftptest/ftp-request2.png
%%T%%/docs/images/screenshots/ftptest/ftp-defaults2.png
%%T%%/docs/images/screenshots/ftptest/ftp-request.png
%%T%%/docs/images/screenshots/ftptest/ftp-defaults.png
%%T%%/docs/images/screenshots/ftptest/spline-results.png
%%T%%/docs/images/screenshots/ftptest/threadgroup.png
%%T%%/docs/images/screenshots/ftptest/threadgroup2.png
%%T%%/docs/images/screenshots/gen-controller/ftp-request.gif
%%T%%/docs/images/screenshots/gen-controller/http-request.png
%%T%%/docs/images/screenshots/gen-controller/jdbc-request.gif
%%T%%/docs/images/screenshots/http-config/auth-manager-example1a.gif
%%T%%/docs/images/screenshots/http-config/auth-manager-example1b.gif
%%T%%/docs/images/screenshots/http-config/header-manager-example1a.gif
%%T%%/docs/images/screenshots/http-config/header-manager-example1b.gif
%%T%%/docs/images/screenshots/http-config/http-auth-manager.gif
%%T%%/docs/images/screenshots/http-config/http-config-example.png
%%T%%/docs/images/screenshots/http-config/http-cookie-manager.gif
%%T%%/docs/images/screenshots/http-config/http-header-manager.gif
%%T%%/docs/images/screenshots/http-config/http-proxy-server.gif
%%T%%/docs/images/screenshots/http-config/http-request-defaults.png
%%T%%/docs/images/screenshots/http-config/proxy-server-example1a.gif
%%T%%/docs/images/screenshots/jdbc-config/jdbc-db-conn-pool.gif
%%T%%/docs/images/screenshots/jdbc-config/jdbc-db-login.gif
%%T%%/docs/images/screenshots/jdbc-config/jdbc-sql-query.gif
%%T%%/docs/images/screenshots/function_helper_dialog.png
%%T%%/docs/images/screenshots/gauss_random_timer.gif
%%T%%/docs/images/screenshots/graph_full_results.gif
%%T%%/docs/images/screenshots/graph_results.png
%%T%%/docs/images/screenshots/html_param_mask.gif
%%T%%/docs/images/screenshots/interleave.gif
%%T%%/docs/images/screenshots/java_defaults.png
%%T%%/docs/images/screenshots/java_request.gif
%%T%%/docs/images/screenshots/jdbctest.gif
%%T%%/docs/images/screenshots/ldap_defaults.png
%%T%%/docs/images/screenshots/ldap_request.png
%%T%%/docs/images/screenshots/login-config.png
%%T%%/docs/images/screenshots/loop_controller.gif
%%T%%/docs/images/screenshots/mailer_vis.png
%%T%%/docs/images/screenshots/modification.png
%%T%%/docs/images/screenshots/module_controller.png
%%T%%/docs/images/screenshots/once_only.gif
%%T%%/docs/images/screenshots/parameter_mask.png
%%T%%/docs/images/screenshots/proxy_control.png
%%T%%/docs/images/screenshots/regex_extractor.png
%%T%%/docs/images/screenshots/scoping1.png
%%T%%/docs/images/screenshots/scoping2.png
%%T%%/docs/images/screenshots/scoping3.png
%%T%%/docs/images/screenshots/simple_config_element.png
%%T%%/docs/images/screenshots/size_assertion.png
%%T%%/docs/images/screenshots/soap_sampler.png
%%T%%/docs/images/screenshots/webtest.gif
%%T%%/docs/images/screenshots/spline_visualizer.png
%%T%%/docs/images/screenshots/table_results.png
%%T%%/docs/images/screenshots/testplan.png
%%T%%/docs/images/screenshots/threadgroup.png
%%T%%/docs/images/screenshots/throughput_controller.png
%%T%%/docs/images/screenshots/uniform_random_timer.gif
%%T%%/docs/images/screenshots/url_rewriter.png
%%T%%/docs/images/screenshots/url_rewrite_example_a.png
%%T%%/docs/images/screenshots/url_rewrite_example_b.gif
%%T%%/docs/images/screenshots/user_params.png
%%T%%/docs/images/screenshots/user_param_modifier.gif
%%T%%/docs/images/screenshots/view_results_tree.png
%%T%%/docs/images/screenshots/view_result_tree.gif
%%T%%/docs/images/screenshots/webservice_sampler.png
%%T%%/docs/images/screenshots/workbench.png
%%T%%/docs/images/screenshots/xml_assertion.png
%%T%%/docs/images/screenshots/assertions.gif
%%T%%/docs/images/screenshots/adding_threadgroup.gif
%%T%%/docs/images/screenshots/aggregate_report.png
%%T%%/docs/images/screenshots/assertion_results.gif
%%T%%/docs/images/screenshots/assertion_results.png
%%T%%/docs/images/screenshots/base_ui.gif
%%T%%/docs/images/screenshots/constant_timer.gif
%%T%%/docs/images/screenshots/counter.png
%%T%%/docs/images/screenshots/data_analyzer.gif
%%T%%/docs/images/screenshots/duration_assertion.png
%%T%%/docs/images/screenshots/file_reporter.gif
%%T%%/docs/images/screenshots/ftptest.gif
%%T%%/docs/images/httpcontroller.jpg
%%T%%/docs/images/httptestsample.jpg
%%T%%/docs/images/java-apache-project.gif
%%T%%/docs/images/jdbc_controller.jpg
%%T%%/docs/images/jmeter.jpg
%%T%%/docs/images/jmeter2.jpg
%%T%%/docs/images/jmeter_running.jpg
%%T%%/docs/images/jmeter_run_panel.jpg
%%T%%/docs/images/simplehttpcontroller.jpg
%%T%%/docs/images/snapshot.gif
%%T%%/docs/images/test_sample.jpg
%%T%%/docs/usermanual/test_plan.html
%%T%%/docs/usermanual/boss.html
%%T%%/docs/usermanual/build-adv-web-test-plan.html
%%T%%/docs/usermanual/build-db-test-plan.html
%%T%%/docs/usermanual/build-ftp-test-plan.html
%%T%%/docs/usermanual/build-jndi-test-plan.html
%%T%%/docs/usermanual/build-ldap-test-plan.html
%%T%%/docs/usermanual/build-test-plan.html
%%T%%/docs/usermanual/build-web-test-plan.html
%%T%%/docs/usermanual/component_reference.html
%%T%%/docs/usermanual/functions.html
%%T%%/docs/usermanual/glossary.html
%%T%%/docs/usermanual/index.html
%%T%%/docs/usermanual/intro.html
%%T%%/docs/usermanual/remote-test.html
%%T%%/docs/usermanual/best-practices.html
%%T%%/docs/extending/index.html
%%T%%/docs/extending/JMeter Extension Scenario.html
%%T%%/docs/demos/URLRewritingExample.jmx
%%T%%/docs/demos/AuthManagerTestPlan.jmx
%%T%%/docs/demos/HeaderManagerTestPlan.jmx
%%T%%/docs/demos/InterleaveTestPlan.jmx
%%T%%/docs/demos/InterleaveTestPlan2.jmx
%%T%%/docs/demos/LoopTestPlan.jmx
%%T%%/docs/demos/OnceOnlyTestPlan.jmx
%%T%%/docs/demos/ProxyServerTestPlan.jmx
%%T%%/docs/demos/SimpleTestPlan.jmx
%%T%%/docs/demos/AssertionTestPlan.jmx
%%T%%/docs/extending.html
%%T%%/docs/how_to_use_jmeter.html
%%T%%/docs/index.html
%%T%%/docs/installing.html
%%T%%/docs/jmeter_irc.html
%%T%%/docs/license.html
%%T%%/docs/running.html
%%T%%/docs/todo.html
%%T%%/docs/bugs.html
%%T%%/docs/changes.html
%%T%%/docs/contributing.html
%%T%%/lib/ext/ApacheJMeter_ldap.jar
%%T%%/lib/ext/ApacheJMeter_core.jar
%%T%%/lib/ext/ApacheJMeter_ftp.jar
%%T%%/lib/ext/ApacheJMeter_functions.jar
%%T%%/lib/ext/ApacheJMeter_http.jar
%%T%%/lib/ext/ApacheJMeter_java.jar
%%T%%/lib/ext/ApacheJMeter_jdbc.jar
%%T%%/lib/ext/ApacheJMeter_components.jar
%%T%%/lib/avalon-excalibur-4.1.jar
%%T%%/lib/avalon-framework-4.1.4.jar
%%T%%/lib/commons-collections.jar
%%T%%/lib/jakarta-oro-2.0.7.jar
%%T%%/lib/jdom-b8.jar
%%T%%/lib/jorphan.jar
%%T%%/lib/js.jar
%%T%%/lib/js_jar_license(mozilla).html
%%T%%/lib/junit.jar
%%T%%/lib/junit_license.html
%%T%%/lib/logkit-1.2.jar
%%T%%/lib/soap.jar
%%T%%/lib/Tidy.jar
%%T%%/lib/xalan.jar
%%T%%/lib/xercesImpl.jar
%%T%%/lib/xml-apis.jar
%%T%%/extras/JMeter Ant Task_files/JMeterResults.jpg
%%T%%/extras/ant-jmeter.jar
%%T%%/extras/JMeter Ant Task.html
%%T%%/extras/jmeter-results-report.xsl
%%T%%/extras/JMeterResults.jpg
%%T%%/extras/JMeterResultsDetail.jpg
%%T%%/extras/jmeter-results-detail-report.zip
%%T%%/printable_docs/usermanual/test_plan.html
%%T%%/printable_docs/usermanual/boss.html
%%T%%/printable_docs/usermanual/build-adv-web-test-plan.html
%%T%%/printable_docs/usermanual/build-db-test-plan.html
%%T%%/printable_docs/usermanual/build-ftp-test-plan.html
%%T%%/printable_docs/usermanual/build-jndi-test-plan.html
%%T%%/printable_docs/usermanual/build-ldap-test-plan.html
%%T%%/printable_docs/usermanual/build-test-plan.html
%%T%%/printable_docs/usermanual/build-web-test-plan.html
%%T%%/printable_docs/usermanual/component_reference.html
%%T%%/printable_docs/usermanual/functions.html
%%T%%/printable_docs/usermanual/glossary.html
%%T%%/printable_docs/usermanual/index.html
%%T%%/printable_docs/usermanual/intro.html
%%T%%/printable_docs/usermanual/remote-test.html
%%T%%/printable_docs/usermanual/best-practices.html
%%T%%/printable_docs/extending/index.html
%%T%%/printable_docs/extending/JMeter Extension Scenario.html
%%T%%/printable_docs/changes.html
%%T%%/printable_docs/contributing.html
%%T%%/printable_docs/extending.html
%%T%%/printable_docs/how_to_use_jmeter.html
%%T%%/printable_docs/index.html
%%T%%/printable_docs/installing.html
%%T%%/printable_docs/jmeter_irc.html
%%T%%/printable_docs/license.html
%%T%%/printable_docs/running.html
%%T%%/printable_docs/todo.html
%%T%%/printable_docs/bugs.html
%%T%%/bin/jmeter-server
%%T%%/bin/jmeter.log
%%T%%/bin/jmeter.properties
%%T%%/bin/upgrade.properties
%%T%%/bin/users.dtd
%%T%%/bin/users.xml
%%T%%/bin/jmeter
%%T%%/bin/ApacheJMeter.jar
%%T%%/README
%%T%%/LICENSE
share/nls/POSIX
share/nls/en_US.US-ASCII
@dirrm %%T%%/docs/images/screenshots/assertion
@dirrm %%T%%/docs/images/screenshots/ldaptest
@dirrm %%T%%/docs/images/screenshots/logic-controller
@dirrm %%T%%/docs/images/screenshots/remote
@dirrm %%T%%/docs/images/screenshots/timers
@dirrm %%T%%/docs/images/screenshots/webtest
@dirrm %%T%%/docs/images/screenshots/jdbctest
@dirrm %%T%%/docs/images/screenshots/ftp-config
@dirrm %%T%%/docs/images/screenshots/ftptest
@dirrm %%T%%/docs/images/screenshots/gen-controller
@dirrm %%T%%/docs/images/screenshots/http-config
@dirrm %%T%%/docs/images/screenshots/jdbc-config
@dirrm %%T%%/docs/images/screenshots
@dirrm %%T%%/docs/images
@dirrm %%T%%/docs/usermanual
@dirrm %%T%%/docs/extending
@dirrm %%T%%/docs/demos
@dirrm %%T%%/docs
@dirrm %%T%%/lib/ext
@dirrm %%T%%/lib
@dirrm %%T%%/extras/JMeter Ant Task_files
@dirrm %%T%%/extras
@dirrm %%T%%/printable_docs/usermanual
@dirrm %%T%%/printable_docs/extending
@dirrm %%T%%/printable_docs
@dirrm %%T%%/bin
@dirrm %%T%%
%%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_ldap.jar
%%DATADIR%%/lib/avalon-excalibur-4.1.jar
%%DATADIR%%/lib/avalon-framework-4.1.4.jar
%%DATADIR%%/lib/Tidy.jar
%%DATADIR%%/lib/commons-collections.jar
%%DATADIR%%/lib/jakarta-oro-2.0.7.jar
%%DATADIR%%/lib/jdom-b8.jar
%%DATADIR%%/lib/jorphan.jar
%%DATADIR%%/lib/js.jar
%%DATADIR%%/lib/js_jar_license(mozilla).html
%%DATADIR%%/lib/junit.jar
%%DATADIR%%/lib/junit_license.html
%%DATADIR%%/lib/logkit-1.2.jar
%%DATADIR%%/lib/soap.jar
%%DATADIR%%/lib/xalan.jar
%%DATADIR%%/lib/xercesImpl.jar
%%DATADIR%%/lib/xml-apis.jar
%%DATADIR%%/extras/JMeter Ant Task_files/JMeterResults.jpg
%%DATADIR%%/extras/JMeter Ant Task.html
%%DATADIR%%/extras/JMeterResults.jpg
%%DATADIR%%/extras/JMeterResultsDetail.jpg
%%DATADIR%%/extras/ant-jmeter.jar
%%DATADIR%%/extras/jmeter-results-detail-report.zip
%%DATADIR%%/extras/jmeter-results-report.xsl
%%DATADIR%%/bin/ApacheJMeter.jar
%%DATADIR%%/bin/jmeter
%%DATADIR%%/bin/jmeter-server
%%DATADIR%%/bin/jmeter.log
%%DATADIR%%/bin/jmeter.properties
%%DATADIR%%/bin/upgrade.properties
%%DATADIR%%/bin/users.dtd
%%DATADIR%%/bin/users.xml
@dirrm %%DATADIR%%/lib/ext
@dirrm %%DATADIR%%/lib
@dirrm %%DATADIR%%/extras/JMeter Ant Task_files
@dirrm %%DATADIR%%/extras
@dirrm %%DATADIR%%/bin
@dirrm %%DATADIR%%