Skip to content

Instantly share code, notes, and snippets.

@justinrainbow
Created August 1, 2012 23:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinrainbow/3231597 to your computer and use it in GitHub Desktop.
Save justinrainbow/3231597 to your computer and use it in GitHub Desktop.
require 'formula'
class Jmeter < Formula
homepage 'http://jakarta.apache.org/jmeter/'
url 'http://apache.mesi.com.ar//jmeter/binaries/apache-jmeter-2.7.tgz'
md5 '73435baa6ed99c528dacfa36c7e1f119'
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment