Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

ZeroMQ 2.1.0

  • Loading branch information...
commit 9453d97625b4a74847c641fc5ea66d0b111159df 1 parent 2fabf1b
@michaelklishin michaelklishin authored
View
3  vagrant_base/zeromq/attributes/default.rb
@@ -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"
View
33 vagrant_base/zeromq/recipes/20x.rb
@@ -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"
View
32 vagrant_base/zeromq/recipes/default.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.