|
17 | 17 | # See the License for the specific language governing permissions and
|
18 | 18 | # limitations under the License.
|
19 | 19 |
|
20 |
| -if node[:platform] == "ubuntu" && node[:platform_version].to_f == 8.04 |
21 |
| - log "Ubuntu 8.04 does not supply sufficient development libraries via APT to install CouchDB #{node[:couch_db][:src_version]} from source." |
| 20 | +if node['platform'] == "ubuntu" && node['platform_version'].to_f == 8.04 |
| 21 | + log "Ubuntu 8.04 does not supply sufficient development libraries via APT to install CouchDB #{node['couch_db']['src_version']} from source." |
22 | 22 | return
|
23 | 23 | end
|
24 | 24 |
|
25 | 25 | include_recipe "erlang"
|
26 | 26 |
|
27 |
| -couchdb_tar_gz = File.join(Chef::Config[:file_cache_path], "/", "apache-couchdb-#{node[:couch_db][:src_version]}.tar.gz") |
| 27 | +couchdb_tar_gz = File.join(Chef::Config[:file_cache_path], "/", "apache-couchdb-#{node['couch_db']['src_version']}.tar.gz") |
28 | 28 | compile_flags = String.new
|
29 | 29 | dev_pkgs = Array.new
|
30 | 30 |
|
31 |
| -case node[:platform] |
| 31 | +case node['platform'] |
32 | 32 | when "debian", "ubuntu"
|
33 | 33 |
|
34 | 34 | dev_pkgs << "libicu-dev"
|
|
46 | 46 | package pkg
|
47 | 47 | end
|
48 | 48 |
|
49 |
| - if node[:platform_version].to_f >= 10.04 |
| 49 | + if node['platform_version'].to_f >= 10.04 |
50 | 50 | compile_flags = "--with-js-lib=/usr/lib/xulrunner-devel-1.9.2.8/lib --with-js-include=/usr/lib/xulrunner-devel-1.9.2.8/include"
|
51 | 51 | end
|
52 | 52 | end
|
53 | 53 |
|
54 | 54 | remote_file couchdb_tar_gz do
|
55 |
| - checksum node[:couch_db][:src_checksum] |
56 |
| - source node[:couch_db][:src_mirror] |
| 55 | + checksum node['couch_db']['src_checksum'] |
| 56 | + source node['couch_db']['src_mirror'] |
57 | 57 | end
|
58 | 58 |
|
59 |
| -bash "install couchdb #{node[:couch_db][:src_version]}" do |
| 59 | +bash "install couchdb #{node['couch_db']['src_version']}" do |
60 | 60 | cwd Chef::Config[:file_cache_path]
|
61 | 61 | code <<-EOH
|
62 | 62 | tar -zxf #{couchdb_tar_gz}
|
63 |
| - cd apache-couchdb-#{node[:couch_db][:src_version]} && ./configure #{compile_flags} && make && make install |
| 63 | + cd apache-couchdb-#{node['couch_db']['src_version']} && ./configure #{compile_flags} && make && make install |
64 | 64 | EOH
|
65 | 65 | not_if { ::FileTest.exists?("/usr/local/bin/couchdb") }
|
66 | 66 | end
|
|
0 commit comments