debian/0000755000000000000000000000000011773574030007175 5ustar debian/source.lintian-overrides0000644000000000000000000000033011712357625014053 0ustar # override duplicate description for transitional packages ohai source: duplicate-short-description libohai-ruby libohai-ruby1.8 ohai-doc ohai source: duplicate-long-description libohai-ruby libohai-ruby1.8 ohai-doc debian/compat0000644000000000000000000000000211712357625010375 0ustar 7 debian/changelog0000644000000000000000000001605211773573713011062 0ustar ohai (6.14.0-2) unstable; urgency=low * Bump standards version to 3.9.2; no changes needed * Bump build dependency on gem2deb to >= 0.3.0~ -- Antonio Terceiro Sat, 30 Jun 2012 09:57:45 -0300 ohai (6.14.0-1) unstable; urgency=low * New upstream version -- Tollef Fog Heen Thu, 31 May 2012 22:57:21 +0200 ohai (0.6.12-3) unstable; urgency=low * Add more missing dependencies. * Move to section admin as per ftp-master overrides. -- Tollef Fog Heen Thu, 03 May 2012 12:48:06 +0200 ohai (0.6.12-2) unstable; urgency=low * Add missing dependency on ruby-ipaddress. * Add missing dependency on ruby-sigar. -- Tollef Fog Heen Thu, 03 May 2012 11:34:48 +0200 ohai (0.6.12-1) unstable; urgency=low [ Praveen Arimbrathodiyil ] * New upstream release (0.6.10). * Use gem2deb helper for packaging. (Closes: #639787) * Add myself to uploaders. * run all tests (add new build dependencies). - ruby-mixlib-config, ruby-mixlib-log, ruby-mixlib-cli, - ruby-systemu, ruby-yajl, ruby-rspec, ruby-sigar [ Antonio Terceiro ] * debian/patches/Missing-require-rubygems.patch: add missing `require 'rubygems'`, which is required when running under Ruby 1.8 * debian/patches/Obtain-Ruby-plugin-test-data-from-system-ruby.patch: get test data for Ruby plugin from a system() call to `ruby` instead of reading the configuration of the running Ruby. This allows to run the tests under one interpreter while `ruby` is another interpreter, e.g., running the tests under Ruby 1.9 while Ruby 1.8 is the default Ruby, or the other way around. -- Antonio Terceiro Tue, 17 Apr 2012 22:56:56 -0300 ohai (0.5.6-1) unstable; urgency=low * New upstream release (0.5.6). -- Joshua Timberman Tue, 29 Jun 2010 14:47:35 -0600 ohai (0.5.4-4) unstable; urgency=low * Fix use ohai binary from source instead of the one mangled by setup.rb. * Build-depend graphviz so rdoc gets created properly for ohai-doc. -- Joshua Timberman Wed, 12 May 2010 11:03:32 -0600 ohai (0.5.4-3) unstable; urgency=low * Fix remove_rubygems patch for new version of bin/ohai. [ Deepak Tripathi ] * Bumped Standard Version to 3.8.4 (no changes) -- Joshua Timberman Tue, 11 May 2010 20:05:36 -0600 ohai (0.5.4-2) unstable; urgency=low * Fix source package for launchpad. -- Joshua Timberman Tue, 11 May 2010 17:26:26 -0600 ohai (0.5.4-1) unstable; urgency=low * New upstream release (0.5.4). * [OHAI-185] - Specs fail on all platforms other than darwin * [OHAI-187] - Ohai plugin breaks shef * [OHAI-190] - Chef plugin for ohai uses the same namespace as the chef attributes -- Joshua Timberman Tue, 11 May 2010 16:37:21 -0600 ohai (0.5.2-1) unstable; urgency=low * New upstream release (0.5.2). * [OHAI-170] - Rackspace cloud detection fails on machines with strictly intracloud traffic * [OHAI-171] - executable script-without-shebang * [OHAI-174] - ohai problems with dropping privileges * [OHAI-159] - php plugin * [OHAI-160] - lua plugin * [OHAI-161] - mono plugin * [OHAI-162] - groovy plugin * [OHAI-178] - don't use ruby plugin to guess OS -- Joshua Timberman Thu, 06 May 2010 23:09:49 -0600 ohai (0.5.0-2) unstable; urgency=low * Remove rubygems patch missed bin/ohai. * ohai needs to depend on 'ruby' or it fails to process plugins. -- Joshua Timberman Tue, 09 Mar 2010 19:21:06 -0700 ohai (0.5.0-1) unstable; urgency=low * New upstream release (0.5.0). * [OHAI-155] - Chef summons army of dmidecode Zombies * [OHAI-166] - Make it possible to disable plugins * Update man page w/ see also section. -- Joshua Timberman Thu, 04 Mar 2010 12:48:35 -0700 ohai (0.4.0-1) unstable; urgency=low * New upstream release (0.4.0). * [OHAI-119] - don't 'require rubygems' explicitly * [OHAI-139] - ohai no longer requires json in gemspec, fails to run if user doesn't install a json library * [OHAI-140] - require rubygems in bin/ohai * [OHAI-143] - ohai, running in chef-client, triggers a MRI segfault probably related to garbage collection * [OHAI-147] - exception on pretty_generate when specifying an attribute with json 1.2.0 * [OHAI-150] - ohai network fails without default gateway * [OHAI-84] - Extend Ohai to support more of the information found in sys and proc, want to cover things found in dstat scope. * [OHAI-7] - Command line should be sorted alphabetically, for the first keys * [OHAI-151] - Support to include data from /etc/passwd and /etc/group * [OHAI-137] - command.rb should be Apache 2.0 License -- Joshua Timberman Sun, 28 Feb 2010 17:15:49 -0700 ohai (0.3.6-2) unstable; urgency=low [Joshua Timberman] * New maintainer. * Fixing changelog entries missing between maintainers. * Remove graphviz from build dep * Bump standards version to 3.8.3 * Now requires libmixlib-{config,cli,log}-ruby * Noting changes from upstream release (0.3.4) * [OHAI-107] - EC2 spec tests fails when not connected to network * [OHAI-111] - ec2 userdata gets truncated * [OHAI-112] - when installed on ubuntu/debian packages w/o rubygems ohai fails with a type error * [OHAI-130] - Ruby plugin should pull configuration from ruby in the system path * [OHAI-95] - Support multiple JSON libraries * [OHAI-116] - Redhat platform version should include the subrelease * [OHAI-120] - refactor ohai to use Mixlib * Additional changes from upstream release (0.3.6) * [OHAI-131] - ohai lies about its version * [OHAI-134] - yajl-ruby causes incompatibility with json gem * [OHAI-138] - create explicit dependencies on source version. -- Joshua Timberman Fri, 08 Jan 2010 13:44:38 -0600 ohai (0.3.6-1) unstable; urgency=low [Joshua Timberman] * Add DRE team to uploaders. * Bump standards version to 3.8.3 [Bryan McLellan] * New upstream release * Add Joshua Timberman to uploaders * Add ohai as suggests to libohai-ruby * Update watch to use githubredir * Add quilt patch to remove rubygems require * Remove package man page in favor of upstream -- Bryan McLellan Thu, 07 Jan 2010 12:51:20 -0800 ohai (0.3.2-1) unstable; urgency=low * New upstream release * Add libsystemu-ruby as new dependency -- Bryan McLellan Wed, 15 Jul 2009 14:46:28 -0700 ohai (0.3.0-2) unstable; urgency=low * Move ruby-pkg-tools from Build-Depends-Indep to Build-Depends * Bump standards to 3.8.2 -- Bryan McLellan Fri, 19 Jun 2009 14:14:39 -0700 ohai (0.3.0-1) unstable; urgency=low * New upstream release -- Bryan McLellan Fri, 19 Jun 2009 10:40:49 -0700 ohai (0.2.0-1) unstable; urgency=low * Initial release (Closes: #514680) -- Bryan McLellan Tue, 28 Apr 2009 15:29:15 -0700 debian/copyright0000644000000000000000000000761011712357625011136 0ustar Format: http://dep.debian.net/deps/dep5 Upstream-Name: ohai Source: https://github.com/opscode/ohai Files: * Copyright: 2008-2011 Opscode, Inc License: Apache-2.0 Files: lib/ohai/mash.rb Copyright: 2009 Dan Kubb 2005-2008 David Heinemeier Hansson License: Expat Files: lib/ohai/application.rb Copyright: 2009 Mathieu Sauve-Frankel License: Apache-2.0 Files: lib/ohai/plugins/freebsd/cpu.rb Copyright: 2008 Bryan McLellan License: Apache-2.0 Files: lib/ohai/plugins/netbsd/* lib/ohai/plugins/openbsd/* lib/ohai/plugins/freebsd/* lib/ohai/plugins/darwin/uptime.rb spec/ohai/plugins/dmi_spec.rb Copyright: 2009 Bryan McLellan License: Apache-2.0 Files: lib/ohai/plugins/netbsd/cpu.rb Copyright:2009 Mathieu Sauve-Frankel License: Apache-2.0 Files: lib/ohai/plugins/chef.rb lib/ohai/plugins/ohai.rb Copyright: 2010 Tollef Fog Heen License: Apache-2.0 Files: spec/ohai/plugins/chef_spec.rb spec/ohai/plugins/ohai_spec.rb Copyright: 2008 Opscode, Inc 2010 Tollef Fog Heen License: Apache-2.0 Files: lib/ohai/plugins/network_listeners.rb lib/ohai/plugins/groovy.rb lib/ohai/plugins/mono.rb lib/ohai/plugins/lua.rb lib/ohai/plugins/c.rb lib/ohai/plugins/php.rb spec/ohai/plugins/mono_spec.rb spec/ohai/plugins/lua_spec.rb spec/ohai/plugins/php_spec.rb spec/ohai/plugins/groovy_spec.rb Copyright: 2009 VMware, Inc License: Apache-2.0 Files: lib/ohai/plugins/windows/cpu.rb lib/ohai/plugins/hpux/* lib/ohai/plugins/sigar/* lib/ohai/plugins/aix/* spec/ohai/plugins/c_spec.rb Copyright: 2010 VMware, Inc License: Apache-2.0 Files: lib/ohai/plugins/ip_scopes.rb Copyright: 2010 Sociable Limited License: Apache-2.0 Files: lib/ohai/plugins/dmi_common.rb lib/ohai/plugins/solaris2/dmi.rb lib/ohai/plugins/dmi.rb Copyright: 2010 Kurt Yoder License: Apache-2.0 Files: lib/ohai/plugins/solaris2/* Copyright: 2008 Opscode, Inc 2009 Daniel DeLeo License: Apache-2.0 Files: lib/ohai/plugins/sigar/network.rb Copyright: 2009 Matthew Kent License: Apache-2.0 Files: spec/ohai/mixin/command_spec.rb Copyright: 2009 Matthew Kent License: Apache-2.0 Files: debian/* Copyright: 2009 Bryan McLellan 2011-2012 Praveen Arimbrathodiyil License: Apache-2.0 License: Apache-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. . On Debian systems, the full text of the Apache License version 2.0 can be found in the file `/usr/share/common-licenses/Apache-2.0'. License: Expat Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. debian/control0000644000000000000000000000443011773573667010620 0ustar Source: ohai Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Joshua Timberman , Praveen Arimbrathodiyil , Antonio Terceiro DM-Upload-Allowed: yes Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.3.0~), ruby-mixlib-config, ruby-mixlib-log, ruby-mixlib-cli, ruby-systemu, ruby-yajl, ruby-rspec, ruby-sigar, ruby-ipaddress Standards-Version: 3.9.3 Vcs-Git: git://git.debian.org/pkg-ruby-extras/ohai.git Vcs-Browser: http://git.debian.org/?p=pkg-ruby-extras/ohai.git;a=summary Homepage: http://wiki.opscode.com/display/chef/Ohai XS-Ruby-Versions: all Package: ohai Section: admin Architecture: all XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, ruby-ipaddress, ruby-sigar, ruby-mixlib-config, ruby-mixlib-log, ruby-systemu, ruby-yajl, ruby-mixlib-cli Replaces: libohai-ruby (<< 0.6.10-1~), libohai-ruby1.8 (<< 0.6.10-1~), ohai-doc (<< 0.6.10-1~) Breaks: libohai-ruby (<< 0.6.10-1~), libohai-ruby1.8 (<< 0.6.10-1~), ohai-doc (<< 0.6.10-1~) Provides: libohai-ruby, libohai-ruby1.8, ohai-doc Description: Detects data about your operating system and reports it in JSON Information about your system is collected and returned as multidimensional attributes in JSON format. The following information is captured: * Operating system and kernel * Filesystems in use * Network configuration and statistics * Available languages * Virtualization # Transitional packages Package: libohai-ruby Section: oldlibs Priority: extra Architecture: all Depends: ${misc:Depends}, ohai Description: Transitional package for ohai This is a transitional package to ease upgrades to the ohai package. It can safely be removed. Package: libohai-ruby1.8 Section: oldlibs Priority: extra Architecture: all Depends: ${misc:Depends}, ohai Description: Transitional package for ohai This is a transitional package to ease upgrades to the ohai package. It can safely be removed. Package: ohai-doc Section: oldlibs Priority: extra Architecture: all Depends: ${misc:Depends}, ohai Description: Transitional package for ohai This is a transitional package to ease upgrades to the ohai package. It can safely be removed. debian/rules0000755000000000000000000000007511715036571010256 0ustar #!/usr/bin/make -f %: dh $@ --buildsystem=ruby --with ruby debian/ruby-tests.rb0000644000000000000000000000020211743122601011623 0ustar Encoding.default_external = 'UTF-8' if defined?(Encoding) require 'rspec/autorun' Dir['spec/**/*_spec.rb'].each { |f| require f } debian/source/0000755000000000000000000000000011712357625010477 5ustar debian/source/format0000644000000000000000000000001411712357625011705 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000013511712357625010227 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/ohai .*/ohai-(.*).tar.gz debian/patches/0000755000000000000000000000000011743417674010633 5ustar debian/patches/Missing-require-rubygems.patch0000644000000000000000000000075311742005242016556 0ustar Description: Add missing `require 'rubygems'` Without this, the tests do not pass under Ruby 1.8 Author: Antonio Terceiro --- ohai-0.6.12.orig/spec/ohai/plugins/ruby_spec.rb +++ ohai-0.6.12/spec/ohai/plugins/ruby_spec.rb @@ -16,7 +16,7 @@ # limitations under the License. # - +require 'rubygems' require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper.rb') ruby_bin = File.join(::Config::CONFIG['bindir'], ::Config::CONFIG['ruby_install_name']) debian/patches/series0000644000000000000000000000012311743120516012026 0ustar Missing-require-rubygems.patch Obtain-Ruby-plugin-test-data-from-system-ruby.patch debian/patches/Obtain-Ruby-plugin-test-data-from-system-ruby.patch0000644000000000000000000000534511743120555022425 0ustar Description: Obtain Ruby plugin test data from system ruby This fixes the tests for the case where `ruby` is not the same Ruby interpreter as the one you are running the tests against. For example, the `ruby` in yout $PATH might be Ruby 1.8, but you are running the tests under Ruby 1.9 (or vice-versa). Author: Antonio Terceiro Bug: http://tickets.opscode.com/browse/OHAI-332 --- ohai-0.6.12.orig/spec/ohai/plugins/ruby_spec.rb +++ ohai-0.6.12/spec/ohai/plugins/ruby_spec.rb @@ -18,8 +18,7 @@ require 'rubygems' require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper.rb') - -ruby_bin = File.join(::Config::CONFIG['bindir'], ::Config::CONFIG['ruby_install_name']) +require 'tempfile' describe Ohai::System, "plugin ruby" do @@ -36,23 +35,36 @@ describe Ohai::System, "plugin ruby" do @ruby_ohai_data = @ruby_ohai_data_pristine.dup end - { + code = <<-EOS + require 'rbconfig' + require 'rubygems' + ruby_bin = File.join(::RbConfig::CONFIG['bindir'], ::RbConfig::CONFIG['ruby_install_name']) + data = { :platform => RUBY_PLATFORM, :version => RUBY_VERSION, :release_date => RUBY_RELEASE_DATE, - :target => ::Config::CONFIG['target'], - :target_cpu => ::Config::CONFIG['target_cpu'], - :target_vendor => ::Config::CONFIG['target_vendor'], - :target_os => ::Config::CONFIG['target_os'], - :host => ::Config::CONFIG['host'], - :host_cpu => ::Config::CONFIG['host_cpu'], - :host_os => ::Config::CONFIG['host_os'], - :host_vendor => ::Config::CONFIG['host_vendor'], - :gems_dir => %x{#{ruby_bin} #{::Config::CONFIG['bindir']}/gem env gemdir}.chomp!, - :gem_bin => [ ::Gem.default_exec_format % 'gem', 'gem' ].map{|bin| "#{::Config::CONFIG['bindir']}/#{bin}" + :target => ::RbConfig::CONFIG['target'], + :target_cpu => ::RbConfig::CONFIG['target_cpu'], + :target_vendor => ::RbConfig::CONFIG['target_vendor'], + :target_os => ::RbConfig::CONFIG['target_os'], + :host => ::RbConfig::CONFIG['host'], + :host_cpu => ::RbConfig::CONFIG['host_cpu'], + :host_os => ::RbConfig::CONFIG['host_os'], + :host_vendor => ::RbConfig::CONFIG['host_vendor'], + :gems_dir => %x{\#{ruby_bin} \#{::RbConfig::CONFIG['bindir']}/gem env gemdir}.chomp!, + :gem_bin => [ ::Gem.default_exec_format % 'gem', 'gem' ].map{|bin| "\#{::RbConfig::CONFIG['bindir']}/\#{bin}" }.find{|bin| ::File.exists? bin}, :ruby_bin => ruby_bin - }.each do |attribute, value| + } + puts data.inspect + EOS + program = Tempfile.new('ruby') + program.write(code) + program.close + data = eval(`ruby #{program.path}`) + program.unlink + + data.each do |attribute, value| it "should have #{attribute} set" do @ruby_ohai_data[attribute].should eql(value) end debian/ohai.docs0000644000000000000000000000001411712357625010764 0ustar README.rdoc debian/manpages0000644000000000000000000000002511712357625010712 0ustar docs/man/man1/ohai.1 debian/require-rubygems.overrides0000644000000000000000000000010011742015105014404 0ustar --- - debian/ohai/usr/lib/ruby/vendor_ruby/ohai/plugins/ruby.rb