Skip to content

Commit

Permalink
ZeroMQ 2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelklishin committed Dec 27, 2011
1 parent 2fabf1b commit 9453d97
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 12 deletions.
3 changes: 3 additions & 0 deletions vagrant_base/zeromq/attributes/default.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
default[:zeromq][:package][:url] = "http://files.travis-ci.org/packages/deb/zeromq/zeromq_2.1.10+fpm0_i386.deb"
default[:zeromq][:package][:user] = "vagrant"
default[:zeromq][:package][:group] = "vagrant"
33 changes: 33 additions & 0 deletions vagrant_base/zeromq/recipes/20x.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#
# Cookbook Name:: zeromq
# Recipe:: 2.0.x
#
# Copyright 2011, Travis CI Development Team
#
# 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.
#

apt_repository "zeromq PPA" do
uri "http://ppa.launchpad.net/chris-lea/zeromq/ubuntu"
distribution "natty"
components ["main"]
key "https://raw.github.com/gist/dc879e13ab46579f80bb/4b9afa5f31d34eaf29ae209f6c2b99891d9935f1/gistfile1.txt"
action :add
end

package "libzmq-dev"
package "libzmq1"

# in case some test suites compile bindings like jzmq
# from source, for whatever reason. MK.
package "libtool"
32 changes: 20 additions & 12 deletions vagrant_base/zeromq/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,25 @@
# limitations under the License.
#

apt_repository "zeromq PPA" do
uri "http://ppa.launchpad.net/chris-lea/zeromq/ubuntu"
distribution "natty"
components ["main"]
key "https://raw.github.com/gist/dc879e13ab46579f80bb/4b9afa5f31d34eaf29ae209f6c2b99891d9935f1/gistfile1.txt"
action :add
end
require "tmpdir"

package "libzmq-dev"
package "libzmq1"
tmp = Dir.tmpdir
case node[:platform]
when "debian", "ubuntu"
# this assumes 32-bit base Vagrant box.
["zeromq_2.1.10+fpm0_i386.deb"].each do |deb|
path = File.join(tmp, deb)

# in case some test suites compile bindings like jzmq
# from source, for whatever reason. MK.
package "libtool"
remote_file(path) do
source node[:zeromq][:package][:url]
owner node[:zeromq][:package][:user]
group node[:zeromq][:package][:group]
end

package(deb) do
action :install
source path
provider Chef::Provider::Package::Dpkg
end
end # each
end # case

0 comments on commit 9453d97

Please sign in to comment.