diff --git a/srcpkgs/apache-jmeter-doc b/srcpkgs/apache-jmeter-doc new file mode 120000 index 00000000000..a890885e3ac --- /dev/null +++ b/srcpkgs/apache-jmeter-doc @@ -0,0 +1 @@ +apache-jmeter \ No newline at end of file diff --git a/srcpkgs/apache-jmeter/template b/srcpkgs/apache-jmeter/template new file mode 100644 index 00000000000..fe4e8dd7465 --- /dev/null +++ b/srcpkgs/apache-jmeter/template @@ -0,0 +1,42 @@ +# Template file for 'apache-jmeter' +pkgname=apache-jmeter +version=5.1.1 +revision=1 +hostmakedepends="openjdk apache-ant" +depends="virtual?java-runtime" +short_desc="Application to load test functional behavior and measure performance" +maintainer="Kyle Nusbaum " +license="Apache-2.0" +homepage="https://jmeter.apache.org/" +distfiles="http://apache.osuosl.org//jmeter/source/apache-jmeter-${version}_src.tgz" +checksum=133fee3ccc300c759b5fbba4dd870db8e69aa0f72eca080fb37a8fb56c6caf6b + +do_configure() { + ant download_jars +} + +do_build() { + ant install +} + +do_install() { + rm -Rf src test build bin/testfiles + + vlicense LICENSE + vmkdir /usr/libexec/apache-jmeter + vcopy . /usr/libexec/apache-jmeter + + vmkdir /usr/bin + ln -s /usr/libexec/apache-jmeter/bin/jmeter ${DESTDIR}/usr/bin/jmeter +} + +apache-jmeter-doc_package() { + archs=noarch + short_description+=" - Documentation" + depends="${sourcepkg}>=${version}_${revision}" + pkg_install() { + vmove /usr/libexec/apache-jmeter/xdocs + vmove /usr/libexec/apache-jmeter/docs + vmove /usr/libexec/apache-jmeter/printable_docs + } +}