Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/chef
diff options
context:
space:
mode:
authorRaphael Sofaer <raphael@joindiaspora.com>2011-02-23 23:00:32 +0300
committerRaphael Sofaer <raphael@joindiaspora.com>2011-02-24 03:06:55 +0300
commitd75bc10ac0939434205643572a7c0dbbcd887d29 (patch)
treec325014ed8fc83c75a5c3e33eae673f3b831d3ed /chef
parent936b997dff7cdd47898c03ef26af1bd6c5ad289e (diff)
Working on curl chef script
Diffstat (limited to 'chef')
-rw-r--r--chef/cookbooks/centos/recipes/curl.rb29
1 files changed, 18 insertions, 11 deletions
diff --git a/chef/cookbooks/centos/recipes/curl.rb b/chef/cookbooks/centos/recipes/curl.rb
index 9a47ca72b..4435f74dd 100644
--- a/chef/cookbooks/centos/recipes/curl.rb
+++ b/chef/cookbooks/centos/recipes/curl.rb
@@ -1,9 +1,16 @@
-execute "download curl into usr/local" do
- command "mkdir -p /usr/local && cd /usr/local/ && wget http://curl.haxx.se/download/curl-7.19.7.tar.gz"
+curl = 'curl-7.21.4'
+
+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
-execute "configure, make, and install curl" do
- command "tar -xvzf curl-7.19.7.tar.gz && cd /usr/local/curl-7.19.7 && ./configure && make && make install"
+execute "unzip curl" do
+ 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
execute 'update dynamic loader cache for curl' do
@@ -15,10 +22,10 @@ execute 'run dynamic linker' do
command '/sbin/ldconfig'
end
-execute 'add bundler line' do
- command 'cd /usr/local/app/diaspora/ && bundle config build.typhoeus --with-curl=/usr/local/curl-7.19.7/'
-end
-
-execute 'rebundle' do
- command 'bundle install'
-end
+#execute 'add bundler line' do
+# command "cd /usr/local/app/diaspora/ && bundle config build.typhoeus --with-curl=/usr/local/#{curl}/"
+#end
+#
+#execute 'rebundle' do
+# command 'bundle install'
+#end