Sha256: cdda8b8850202abd39a1d7a45cde914ff32017597e81d13b5ffa190539ba5c14
Contents?: true
Size: 1.33 KB
Versions: 1
Compression:
Stored size: 1.33 KB
Contents
# # Author:: Seth Vargo <sethvargo@gmail.com> # Copyright:: Copyright (c) 2012, Opscode, Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # pkgs = case node['platform_family'] when 'rhel' %w(libevent-devel ncurses-devel gcc make) else %w(libevent-dev libncurses5-dev gcc make) end pkgs.each do |pkg| package pkg end tar_name = "tmux-#{node['tmux']['version']}" remote_file "#{Chef::Config['file_cache_path']}/#{tar_name}.tar.gz" do source "http://downloads.sourceforge.net/tmux/#{tar_name}.tar.gz" checksum node['tmux']['checksum'] notifies :run, 'bash[install_tmux]', :immediately end bash 'install_tmux' do user 'root' cwd Chef::Config['file_cache_path'] code <<-EOH tar -zxf #{tar_name}.tar.gz (cd #{tar_name} && ./configure && make && make install) EOH action :nothing end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
guard-strainer-1.0.0 | spec/fixtures/cookbooks/tmux/recipes/source.rb |