gentoo-overlay/app-benchmarks/jmeter-bin/jmeter-bin-2.5.1.ebuild

31 lines
777 B
Bash
Raw Normal View History

# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
DESCRIPTION="Load test and measure performance on HTTP/FTP services and databases."
HOMEPAGE="https://jmeter.apache.org/"
#SRC_URI="mirror://apache/jakarta/jmeter/binaries/jakarta-jmeter-${PV}.tgz"
SRC_URI="https://archive.apache.org/dist/jakarta/jmeter/binaries/jakarta-jmeter-${PV}.tgz"
LICENSE="Apache-2.0"
SLOT="0"
IUSE="doc"
KEYWORDS="~amd64 ~x86"
DEPEND=">=virtual/jdk-1.4"
RDEPEND=">=virtual/jre-1.4"
S="${WORKDIR}/jakarta-jmeter-${PV}/"
src_prepare() {
cd "${S}/bin/"
rm -f *.bat *.cmd
}
src_install() {
dodir /opt/${PN}
cp -aR * "${D}/opt/${PN}/"
use doc || rm -fR "${D}/opt/${PN}/docs"
dobin "${FILESDIR}/jmeter"
chmod 755 "${D}/usr/bin/jmeter"
}