aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/jmeter.rb
blob: d6be07008cfacad5a383e4988233e9c295c865e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
require 'formula'

class Jmeter < Formula
  url 'http://www.apache.org/dyn/closer.cgi?path=jmeter/binaries/jakarta-jmeter-2.5.1.tgz'
  homepage 'http://jakarta.apache.org/jmeter/'
  md5 'e72f17c352fa4d3469d042e6542dd36d'

  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