fertesta (owner)

Revisions

gist: 210610 Download_button fork
public
Public Clone URL: git://gist.github.com/210610.git
Embed All Files: show embed
Capfile #
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
load 'deploy' if respond_to?(:namespace) # cap2 differentiator
Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
 
server "sip.fragsoft.com.br", :app
 
set :repository, "http://svn.freeswitch.org/svn/freeswitch/trunk"
set :deploy_to, "/tmp/fsbin/"
set :user, "root"
set :use_sudo, false
 
namespace :freeswitch do
# desc "SVN Checkout source code from Freeswitch site."
# task :checkout do
# run "cd /tmp; svn co http://svn.freeswitch.org/svn/freeswitch/trunk freeswitch"
# end
  desc "Build all the svn checked out stuff"
  task :build do
    run "cd /tmp/fsbin/current/; ./bootstrap.sh; ./configure; make -j4"
  end
  desc "Install in default location: /usr/local/freeswitch"
  task :install do
    run "cd /tmp/fsbin/current/; make install"
  end
  task :uninstall do
    run "cd /tmp/fsbin/current/; make uninstall"
  end
end