77c73ecb89
Some of these were pointing at archive.apache.org. Now they aren’t, I investigated for good rationale for using the archive before altering it. mod_python still uses archive.apache.org as that is the only place it exists that I could find. jsvc *now* uses apache.archive.org as the formula was otherwise broken and the binary tarball it needs no longer exists on the main mirrors.
22 lines
545 B
Ruby
22 lines
545 B
Ruby
require 'formula'
|
|
|
|
class Jmeter < Formula
|
|
url 'http://www.apache.org/dyn/closer.cgi?path=jakarta/jmeter/binaries/jakarta-jmeter-2.4.tgz'
|
|
homepage 'http://jakarta.apache.org/jmeter/'
|
|
md5 '01ac101b161643a77267baec99b3acfe'
|
|
|
|
def startup_script name
|
|
<<-EOS.undent
|
|
#!/bin/bash
|
|
exec #{libexec}/bin/#{name} $@
|
|
EOS
|
|
end
|
|
|
|
def install
|
|
# Remove windows files
|
|
rm_f Dir["bin/*.bat"]
|
|
prefix.install %w{ LICENSE NOTICE README }
|
|
libexec.install Dir['*']
|
|
(bin+'jmeter').write startup_script('jmeter')
|
|
end
|
|
end
|