diff options
| author | Chris Roos | 2011-04-04 11:44:57 +0100 |
|---|---|---|
| committer | Adam Vandenberg | 2011-04-04 08:55:27 -0700 |
| commit | d17938adf1e56a31fadea5a955ce9079870e0f8a (patch) | |
| tree | a1fc3ca881bc88d0cabe10732e17737b4247f811 /Library/Formula | |
| parent | 45e661e45261374517770b1c6794d7c93d6dcea5 (diff) | |
| download | homebrew-d17938adf1e56a31fadea5a955ce9079870e0f8a.tar.bz2 | |
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>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/asterisk.rb | 34 |
1 files changed, 7 insertions, 27 deletions
diff --git a/Library/Formula/asterisk.rb b/Library/Formula/asterisk.rb index e5dd1137f..67a2776ec 100644 --- a/Library/Formula/asterisk.rb +++ b/Library/Formula/asterisk.rb @@ -1,40 +1,20 @@ require 'formula' class Asterisk < Formula - url 'http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.6.1.6.tar.gz' + url 'http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.8.3.2.tar.gz' homepage 'http://www.asterisk.org/' - md5 '63a928373e741524aac09d8c078df7d5' + md5 '0bee03f4498a6081146a579b51130633' skip_clean :all # Or modules won't load - # Use cURL instead of wget - def patches; DATA; end + def options + [['--with-sample-config', "Install the sample config files. NOTE. Without this, you won't have any config file."]] + end def install - configure_flags = [ "--prefix=#{prefix}", "--localstatedir=#{var}", "--sysconfdir=#{etc}" ] - # Avoid "src/add.c:1: error: CPU you selected does not support x86-64 instruction set" - configure_flags << "--host=x86_64-darwin" if MacOS.prefer_64_bit? - system "./configure", *configure_flags + system "./configure", "--prefix=#{prefix}", "--localstatedir=#{var}", "--sysconfdir=#{etc}" system "make" system "make install" - (etc+"asterisk").mkpath + system "make samples" if ARGV.include? '--with-sample-config' end end - - -__END__ ---- a/sounds/Makefile 2009-10-13 02:12:08.000000000 +0300 -+++ b/sounds/Makefile 2009-10-13 02:15:11.000000000 +0300 -@@ -53,10 +53,8 @@ - MM:=$(subst -SLN16,-sln16,$(MM)) - MOH:=$(MM:MOH-%=asterisk-moh-%.tar.gz) - MOH_TAGS:=$(MM:MOH-%=$(MOH_DIR)/.asterisk-moh-%) --# If "fetch" is used, --continue is not a valid option. --ifeq ($(WGET),wget) --WGET_ARGS:=--continue --endif -+DOWNLOAD:=curl -+WGET_ARGS:=-O - - all: $(CORE_SOUNDS) $(EXTRA_SOUNDS) $(MOH) - |
