FiXato-ubuntu-machine 0.5.3.2.3 → 0.5.3.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,37 @@
1
+ namespace :ffmpeg do
2
+ set :x264_commit_hash, ''
3
+ set :ffmpeg_commit_hash, ''
4
+ set :libswscale_commit_hash, ''
5
+
6
+ desc 'Install FFmpeg dependencies'
7
+ task :install_dependencies, :roles => :app do
8
+ sudo "aptitude install -y ccache checkinstall fakeroot liba52-0.7.4-dev liba52-dev libfaac-dev libfaad-dev libfreetype6-dev libgpac-dev libjpeg62-dev libmp3lame-dev libogg-dev libpng12-dev libtheora-dev libtiff4-dev libvorbis-dev libxvidcore4-dev"
9
+ run "wget http://www.tortall.net/projects/yasm/releases/yasm-0.7.1.tar.gz -O yasm-0.7.1.tar.gz && tar -xzf yasm-0.7.1.tar.gz && cd yasm-0.7.1 && ./configure && make && sudo checkinstall -y"
10
+ sudo "ldconfig"
11
+ run "if test -x x264; then cd x264 && git checkout master && git pull; else git clone git://git.videolan.org/x264.git; fi"
12
+ if x264_commit_hash.size > 0
13
+ run "cd x264 && git checkout #{x264_commit_hash}"
14
+ end
15
+ run "cd x264 && ./configure --enable-pthread --enable-mp4-output --enable-shared --enable-pic --extra-asflags='-fPIC' --extra-cflags='-march=k8 -mtune=k8 -pipe -fomit-frame-pointer' && make && sudo checkinstall -y"
16
+ sudo "ldconfig"
17
+ run "wget http://ftp.penguin.cz/pub/users/utx/amr/amrnb-7.0.0.2.tar.bz2 -O amrnb-7.0.0.2.tar.bz2 && tar -xjf amrnb-7.0.0.2.tar.bz2 && cd amrnb-7.0.0.2 && ./configure && make && sudo make install"
18
+ run "wget http://ftp.penguin.cz/pub/users/utx/amr/amrwb-7.0.0.3.tar.bz2 -O amrwb-7.0.0.3.tar.bz2 && tar -xjf amrwb-7.0.0.3.tar.bz2 && cd amrwb-7.0.0.3 && ./configure && make && sudo make install"
19
+ sudo "ldconfig"
20
+ end
21
+
22
+ desc 'Install FFmpeg'
23
+ task :install, :roles => :app do
24
+ install_dependencies
25
+ run "if test -x ffmpeg; then cd ffmpeg && git checkout master && git pull; else git clone git://git.ffmpeg.org/ffmpeg; fi"
26
+ run "if test -x ffmpeg/libswscale; then cd ffmpeg/libswscale && git checkout master && git pull; else cd ffmpeg && git clone git://git.ffmpeg.org/libswscale; fi"
27
+ if ffmpeg_commit_hash.size > 0
28
+ run "cd ffmpeg && git checkout #{ffmpeg_commit_hash}"
29
+ end
30
+ if libswscale_commit_hash.size > 0
31
+ run "cd ffmpeg/libswscale && git checkout #{libswscale_commit_hash}"
32
+ end
33
+ sudo "ldconfig"
34
+ run "cd ffmpeg && ./configure --enable-gpl --enable-shared --enable-nonfree --enable-libfaadbin --enable-libamr-nb --enable-libamr-wb --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libx264 --enable-pthreads --enable-libxvid --disable-liba52 --disable-libvorbis --disable-libtheora --disable-libgsm --disable-postproc --disable-swscale --disable-debug --cc='ccache gcc' && make && sudo checkinstall -y"
35
+ sudo "ldconfig"
36
+ end
37
+ end
@@ -36,4 +36,21 @@ namespace :gems do
36
36
  name = Capistrano::CLI.ui.ask("Which gem should we uninstall: ")
37
37
  sudo "gem uninstall #{name}"
38
38
  end
39
+
40
+ desc "Scp local gem to the remote server and install it"
41
+ task :deploy_local_gem, :roles => :app do
42
+ local_gem_path = Capistrano::CLI.ui.ask("Please supply the path to the local gem: ")
43
+ run "mkdir -p gems"
44
+ `scp -P #{ssh_options[:port]} #{File.expand_path(local_gem_path)} #{user}@#{server_name}:gems/`
45
+ sudo "gem install -l gems/#{File.basename(local_gem_path)}"
46
+ end
47
+
48
+ desc "Scp a set of local gems preconfigured in :local_gems_to_deploy to the remote server and install them"
49
+ task :deploy_local_gems, :roles => :app do
50
+ run "mkdir -p gems"
51
+ local_gems_to_deploy.each do |local_gem_path|
52
+ `scp -P #{ssh_options[:port]} #{File.expand_path(local_gem_path)} #{user}@#{server_name}:gems/`
53
+ sudo "gem install -l gems/#{File.basename(local_gem_path)}"
54
+ end
55
+ end
39
56
  end
@@ -0,0 +1,26 @@
1
+ require 'yaml'
2
+ namespace :lmsensors do
3
+ desc "Install lmsensors"
4
+ task :install, :roles => :app do
5
+ sudo "aptitude install -y lm-sensors"
6
+ to_probe = []
7
+ sudo "sensors-detect", :pty => true do |ch, stream, data|
8
+ if [/YES\/no/,/yes\/NO/,/to continue/].find { |regex| data =~ regex}
9
+ # prompt, and then send the response to the remote process
10
+ ch.send_data(Capistrano::CLI.password_prompt(data) + "\n")
11
+ elsif offset = data =~ /#----cut here----\s+# Chip drivers/
12
+ text = data[offset,data.size - offset]
13
+ text.gsub!('# Chip drivers','').gsub!('#----cut here----','')
14
+ to_probe = text.strip.split("\n").map{|str| str.strip}
15
+ Capistrano::Configuration.default_io_proc.call(ch, stream, data)
16
+ else
17
+ # use the default handler for all other text
18
+ Capistrano::Configuration.default_io_proc.call(ch, stream, data)
19
+ end
20
+ end
21
+ puts "Will prob the following modules:" % to_probe.join(',')
22
+ to_probe.each do |mod|
23
+ sudo "modprobe #{mod}"
24
+ end
25
+ end
26
+ end
@@ -83,5 +83,13 @@ namespace :ruby do
83
83
  sudo "a2enmod passenger"
84
84
  apache.force_reload
85
85
  end
86
-
86
+
87
+ desc 'Make Ruby Enterprise and Rubygems Enterprise default'
88
+ task :make_enterprise_default, :roles => :app do
89
+ sudo "ln -fs #{ruby_enterprise_path_prefix}/ruby-enterprise/bin/ruby /usr/bin/ruby"
90
+ sudo "ln -fs #{ruby_enterprise_path_prefix}/ruby-enterprise/bin/ri /usr/bin/ri"
91
+ sudo "ln -fs #{ruby_enterprise_path_prefix}/ruby-enterprise/bin/rdoc /usr/bin/rdoc"
92
+ sudo "ln -fs #{ruby_enterprise_path_prefix}/ruby-enterprise/bin/irb /usr/bin/irb"
93
+ sudo "ln -fs #{ruby_enterprise_path_prefix}/ruby-enterprise/bin/gem /usr/bin/gem"
94
+ end
87
95
  end
@@ -1,4 +1,8 @@
1
+ [global]
2
+ tds version = 4.2
3
+ text size = 64512
4
+
1
5
  [<%= odbc_sourcename %>]
2
- host = <%= odbc_host %>
3
- port = 1433
4
- tds version = 7.0
6
+ # host = <%= odbc_host %>
7
+ # port = <%= odbc_port %>
8
+ tds version = <%= odbc_tds_version rescue '8.0' %>
@@ -1,6 +1,8 @@
1
- [<%= odbc_sourcename %>SERVER]
2
- Driver = FreeTDS
1
+ [<%= odbc_sourcename %>]
2
+ Driver = FreeTDS
3
3
  Description = ODBC Connection via FreeTDS
4
- Trace = No
5
- Servername = <%= odbc_sourcename %>
6
- Database = <%= odbc_database %>
4
+ Trace = No
5
+ Server = <%= odbc_host %>
6
+ Port = <%= odbc_port %>
7
+ TDS Version = <%= odbc_tds_version rescue '8.0' %>
8
+ Database = <%= odbc_database %>
@@ -8,11 +8,13 @@ end
8
8
 
9
9
  Capistrano::Configuration.instance.load {load("#{File.dirname(__FILE__)}/ubuntu-machine/apache.rb")}
10
10
  Capistrano::Configuration.instance.load {load("#{File.dirname(__FILE__)}/ubuntu-machine/aptitude.rb")}
11
+ Capistrano::Configuration.instance.load {load("#{File.dirname(__FILE__)}/ubuntu-machine/ffmpeg.rb")}
11
12
  Capistrano::Configuration.instance.load {load("#{File.dirname(__FILE__)}/ubuntu-machine/gems.rb")}
12
13
  Capistrano::Configuration.instance.load {load("#{File.dirname(__FILE__)}/ubuntu-machine/git.rb")}
13
14
  Capistrano::Configuration.instance.load {load("#{File.dirname(__FILE__)}/ubuntu-machine/odbc.rb")}
14
15
  Capistrano::Configuration.instance.load {load("#{File.dirname(__FILE__)}/ubuntu-machine/helpers.rb")}
15
16
  Capistrano::Configuration.instance.load {load("#{File.dirname(__FILE__)}/ubuntu-machine/iptables.rb")}
17
+ Capistrano::Configuration.instance.load {load("#{File.dirname(__FILE__)}/ubuntu-machine/lmsensors.rb")}
16
18
  Capistrano::Configuration.instance.load {load("#{File.dirname(__FILE__)}/ubuntu-machine/machine.rb")}
17
19
  Capistrano::Configuration.instance.load {load("#{File.dirname(__FILE__)}/ubuntu-machine/mysql.rb")}
18
20
  Capistrano::Configuration.instance.load {load("#{File.dirname(__FILE__)}/ubuntu-machine/php.rb")}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: FiXato-ubuntu-machine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3.2.3
4
+ version: 0.5.3.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Balthazar
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2009-06-12 00:00:00 -07:00
14
+ date: 2009-06-17 00:00:00 -07:00
15
15
  default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
@@ -38,11 +38,13 @@ files:
38
38
  - lib/capistrano/ext/ubuntu-machine.rb
39
39
  - lib/capistrano/ext/ubuntu-machine/apache.rb
40
40
  - lib/capistrano/ext/ubuntu-machine/aptitude.rb
41
+ - lib/capistrano/ext/ubuntu-machine/ffmpeg.rb
41
42
  - lib/capistrano/ext/ubuntu-machine/gems.rb
42
43
  - lib/capistrano/ext/ubuntu-machine/git.rb
43
44
  - lib/capistrano/ext/ubuntu-machine/odbc.rb
44
45
  - lib/capistrano/ext/ubuntu-machine/helpers.rb
45
46
  - lib/capistrano/ext/ubuntu-machine/iptables.rb
47
+ - lib/capistrano/ext/ubuntu-machine/lmsensors.rb
46
48
  - lib/capistrano/ext/ubuntu-machine/machine.rb
47
49
  - lib/capistrano/ext/ubuntu-machine/mysql.rb
48
50
  - lib/capistrano/ext/ubuntu-machine/php.rb