public
Last active

Homebrew formula for installing FreeSWITCH that I wrote tonight. Unsure of best way to automatically "test" FreeSWITCH. Thoughts?

  • Download Gist
freeswitch.rb
Ruby
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 26 27 28 29
require 'formula'
 
class Freeswitch < Formula
url 'http://files.freeswitch.org/freeswitch-snapshot.tar.gz'
homepage ''
md5 'bb0aa3a04479f06caa8815530ca22d05'
version '1.0.8.alpha'
 
depends_on 'cmake'
depends_on 'jpeg'
depends_on 'spidermonkey'
 
def install
system "./bootstrap.sh"
system "./configure", "--enable-shared", "--enable-static",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--exec_prefix=#{prefix}"
system "make"
system "make install"
system "make cd-sounds-install"
system "make cd-moh-install"
end
 
def test
# this will fail we won't accept that, make it test the program works!
system "/usr/bin/false"
end
end

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.