homebrew-core/Formula/asterisk.rb
Chris Roos fcb3b399c5 Update Asterisk from 1.6.1.6 to 1.8.3.2.
* Added the '--with-sample-config' option. This will generate the sample
  Asterisk config files in /usr/local/etc/asterisk. It creates backups of any
  existing files first.

* Removed the patch that used curl instead of wget to download the sound
  files. This doesn't appear to be required any longer (at least, the sound
  files download correctly without it, where they didn't previously).

* Removed the '--host=x86_64-darwin' configure switch. Supplying this switch
  to configure results in the warning, 'configure: WARNING: If you wanted to
  set the --build type, don't use --host. If a cross compiler is detected then
  cross compile mode will be used.', and building without the switch appears
  to result in the correct architecture being targeted.

* Removed the manual creation of /usr/local/etc/asterisk. This directory is
  created automatically.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-04-04 08:55:27 -07:00

20 lines
632 B
Ruby

require 'formula'
class Asterisk < Formula
url 'http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.8.3.2.tar.gz'
homepage 'http://www.asterisk.org/'
md5 '0bee03f4498a6081146a579b51130633'
skip_clean :all # Or modules won't load
def options
[['--with-sample-config', "Install the sample config files. NOTE. Without this, you won't have any config file."]]
end
def install
system "./configure", "--prefix=#{prefix}", "--localstatedir=#{var}", "--sysconfdir=#{etc}"
system "make"
system "make install"
system "make samples" if ARGV.include? '--with-sample-config'
end
end