diff options
Diffstat (limited to 'Library/Formula/freeswitch.rb')
| -rw-r--r-- | Library/Formula/freeswitch.rb | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/Library/Formula/freeswitch.rb b/Library/Formula/freeswitch.rb index 98dc66599..8db18e8e4 100644 --- a/Library/Formula/freeswitch.rb +++ b/Library/Formula/freeswitch.rb @@ -27,7 +27,9 @@ class Freeswitch < Formula system "make all cd-sounds-install cd-moh-install" end - def startup_plist; <<-EOS.undent + plist_options :manual => "freeswitch -nc --nonat" + + def plist; <<-EOS.undent <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> @@ -51,22 +53,6 @@ class Freeswitch < Formula EOS end - def caveats; <<-EOS.undent - If this is your first install, automatically load on login with: - mkdir -p ~/Library/LaunchAgents - cp #{plist_path} ~/Library/LaunchAgents/ - launchctl load -w ~/Library/LaunchAgents/#{plist_path.basename} - - If this is an upgrade and you already have the #{plist_path.basename} loaded: - launchctl unload -w ~/Library/LaunchAgents/#{plist_path.basename} - cp #{plist_path} ~/Library/LaunchAgents/ - launchctl load -w ~/Library/LaunchAgents/#{plist_path.basename} - - Or start it manually: - freeswitch -nc --nonat - EOS - end - def test system "#{bin}/freeswitch", "-version" end |
