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

class Activemq < Formula
  url 'http://www.reverse.net/pub/apache/activemq/apache-activemq/5.4.2/apache-activemq-5.4.2-bin.tar.gz'
  homepage 'http://activemq.apache.org/'
  md5 '804c1a4c01b80321a743648add1fdd06'

  skip_clean 'libexec/webapps/admin/WEB-INF/jsp'

  def startup_script name
    <<-EOS.undent
      #!/bin/bash
      exec #{libexec}/bin/#{name} $@
    EOS
  end

  def install
    rm_rf Dir['bin/linux-x86-*']

    prefix.install %w{ LICENSE NOTICE README.txt }
    libexec.install Dir['*']

    (bin+'activemq-admin').write startup_script('activemq-admin')
  end
end