Working on curl chef script
This commit is contained in:
parent
936b997dff
commit
d75bc10ac0
1 changed files with 18 additions and 11 deletions
|
|
@ -1,9 +1,16 @@
|
||||||
execute "download curl into usr/local" do
|
curl = 'curl-7.21.4'
|
||||||
command "mkdir -p /usr/local && cd /usr/local/ && wget http://curl.haxx.se/download/curl-7.19.7.tar.gz"
|
|
||||||
|
execute 'download curl' do
|
||||||
|
command "mkdir -p /tmp/install && wget http://curl.download.nextag.com/download/#{curl}.tar.gz"
|
||||||
|
not_if "ls /tmp/install/#{curl}.tar.gz"
|
||||||
end
|
end
|
||||||
|
|
||||||
execute "configure, make, and install curl" do
|
execute "unzip curl" do
|
||||||
command "tar -xvzf curl-7.19.7.tar.gz && cd /usr/local/curl-7.19.7 && ./configure && make && make install"
|
command "cd /tmp/install && tar -xvf #{curl}.tar.gz"
|
||||||
|
command "cd /tmp/install/#{curl} && ./configure --with-ssl"
|
||||||
|
command "cd /tmp/install/#{curl} && make"
|
||||||
|
command "cd /tmp/install/#{curl} && make install"
|
||||||
|
not_if "ls /usr/local/lib/libcurl.so.4"
|
||||||
end
|
end
|
||||||
|
|
||||||
execute 'update dynamic loader cache for curl' do
|
execute 'update dynamic loader cache for curl' do
|
||||||
|
|
@ -15,10 +22,10 @@ execute 'run dynamic linker' do
|
||||||
command '/sbin/ldconfig'
|
command '/sbin/ldconfig'
|
||||||
end
|
end
|
||||||
|
|
||||||
execute 'add bundler line' do
|
#execute 'add bundler line' do
|
||||||
command 'cd /usr/local/app/diaspora/ && bundle config build.typhoeus --with-curl=/usr/local/curl-7.19.7/'
|
# command "cd /usr/local/app/diaspora/ && bundle config build.typhoeus --with-curl=/usr/local/#{curl}/"
|
||||||
end
|
#end
|
||||||
|
#
|
||||||
execute 'rebundle' do
|
#execute 'rebundle' do
|
||||||
command 'bundle install'
|
# command 'bundle install'
|
||||||
end
|
#end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue