summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2013-02-03 12:22:40 +0000
committerPacho Ramos <pacho@gentoo.org>2013-02-03 12:22:40 +0000
commit91fda685376257f15d08353706949ff185ae8055 (patch)
tree5b699c5340c742996ff90578f8f26fe5bcf16b1c /dev-ruby/facter
parentCleanup due #22900 (diff)
downloadgentoo-2-91fda685376257f15d08353706949ff185ae8055.tar.gz
gentoo-2-91fda685376257f15d08353706949ff185ae8055.tar.bz2
gentoo-2-91fda685376257f15d08353706949ff185ae8055.zip
Cleanup due #22900
(Portage version: 2.1.11.50/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
Diffstat (limited to 'dev-ruby/facter')
-rw-r--r--dev-ruby/facter/ChangeLog9
-rw-r--r--dev-ruby/facter/facter-1.6.0.ebuild28
-rw-r--r--dev-ruby/facter/facter-1.6.14.ebuild32
-rw-r--r--dev-ruby/facter/facter-1.6.3.ebuild28
-rw-r--r--dev-ruby/facter/files/facter-1.5.2-virtual.patch31
-rw-r--r--dev-ruby/facter/files/facter-1.5.7-fqdn.patch70
-rw-r--r--dev-ruby/facter/files/facter-1.5.7-ruby19.patch61
-rw-r--r--dev-ruby/facter/files/facter-1.5.7-virtual.patch13
-rw-r--r--dev-ruby/facter/files/facter-1.5.8-freebsd-spec.patch18
-rw-r--r--dev-ruby/facter/metadata.xml2
10 files changed, 9 insertions, 283 deletions
diff --git a/dev-ruby/facter/ChangeLog b/dev-ruby/facter/ChangeLog
index 01ec6f53ec63..16bfd7f46334 100644
--- a/dev-ruby/facter/ChangeLog
+++ b/dev-ruby/facter/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-ruby/facter
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/facter/ChangeLog,v 1.66 2013/01/05 17:34:43 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/facter/ChangeLog,v 1.67 2013/02/03 12:22:39 pacho Exp $
+
+ 03 Feb 2013; Pacho Ramos <pacho@gentoo.org> -facter-1.6.0.ebuild,
+ -facter-1.6.14.ebuild, -facter-1.6.3.ebuild,
+ -files/facter-1.5.2-virtual.patch, -files/facter-1.5.7-fqdn.patch,
+ -files/facter-1.5.7-ruby19.patch, -files/facter-1.5.7-virtual.patch,
+ -files/facter-1.5.8-freebsd-spec.patch, metadata.xml:
+ Cleanup due #22900
05 Jan 2013; Agostino Sarubbo <ago@gentoo.org> facter-1.6.16.ebuild:
Stable for sparc, wrt bug #446954
diff --git a/dev-ruby/facter/facter-1.6.0.ebuild b/dev-ruby/facter/facter-1.6.0.ebuild
deleted file mode 100644
index bfdf8f07bd51..000000000000
--- a/dev-ruby/facter/facter-1.6.0.ebuild
+++ /dev/null
@@ -1,28 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/facter/facter-1.6.0.ebuild,v 1.8 2012/12/02 18:58:29 graaff Exp $
-
-EAPI="2"
-
-USE_RUBY="ruby18 ree18 jruby"
-RUBY_FAKEGEM_TASK_DOC=""
-RUBY_FAKEGEM_TASK_TEST="spec"
-RUBY_FAKEGEM_EXTRADOC="CHANGELOG README.md"
-RUBY_FAKEGEM_BINWRAP="facter"
-
-inherit ruby-fakegem
-
-DESCRIPTION="A cross-platform Ruby library for retrieving facts from operating systems"
-HOMEPAGE="http://www.puppetlabs.com/puppet/related-projects/facter/"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-IUSE=""
-KEYWORDS="amd64 hppa ppc ~ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
-
-RDEPEND+="<sys-apps/net-tools-1.60_p20120127084908"
-
-ruby_add_bdepend "test? (
- dev-ruby/mocha
- dev-ruby/rspec:2
- )"
diff --git a/dev-ruby/facter/facter-1.6.14.ebuild b/dev-ruby/facter/facter-1.6.14.ebuild
deleted file mode 100644
index 50032076aa2b..000000000000
--- a/dev-ruby/facter/facter-1.6.14.ebuild
+++ /dev/null
@@ -1,32 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/facter/facter-1.6.14.ebuild,v 1.2 2012/12/02 18:58:29 graaff Exp $
-
-EAPI="4"
-
-USE_RUBY="ruby18 ruby19 ree18 jruby"
-RUBY_FAKEGEM_TASK_DOC=""
-RUBY_FAKEGEM_RECIPE_TEST="rspec"
-RUBY_FAKEGEM_EXTRADOC="README.md"
-RUBY_FAKEGEM_BINWRAP="facter"
-
-inherit ruby-fakegem
-
-DESCRIPTION="A cross-platform Ruby library for retrieving facts from operating systems"
-HOMEPAGE="http://www.puppetlabs.com/puppet/related-projects/facter/"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-IUSE=""
-KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
-
-CDEPEND="
- <sys-apps/net-tools-1.60_p20120127084908
- sys-apps/dmidecode
- sys-apps/lsb-release
- sys-apps/pciutils"
-
-RDEPEND+=" ${CDEPEND}"
-DEPEND+=" test? ( ${CDEPEND} )"
-
-ruby_add_bdepend "test? ( dev-ruby/mocha )"
diff --git a/dev-ruby/facter/facter-1.6.3.ebuild b/dev-ruby/facter/facter-1.6.3.ebuild
deleted file mode 100644
index a9befc4c7ae8..000000000000
--- a/dev-ruby/facter/facter-1.6.3.ebuild
+++ /dev/null
@@ -1,28 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/facter/facter-1.6.3.ebuild,v 1.6 2012/12/02 18:58:29 graaff Exp $
-
-EAPI="4"
-
-USE_RUBY="ruby18 ruby19 ree18 jruby"
-RUBY_FAKEGEM_TASK_DOC=""
-RUBY_FAKEGEM_TASK_TEST="spec"
-RUBY_FAKEGEM_EXTRADOC="CHANGELOG README.md"
-RUBY_FAKEGEM_BINWRAP="facter"
-
-inherit ruby-fakegem
-
-DESCRIPTION="A cross-platform Ruby library for retrieving facts from operating systems"
-HOMEPAGE="http://www.puppetlabs.com/puppet/related-projects/facter/"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-IUSE=""
-KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris"
-
-RDEPEND+="<sys-apps/net-tools-1.60_p20120127084908"
-
-ruby_add_bdepend "test? (
- dev-ruby/mocha
- dev-ruby/rspec:2
- )"
diff --git a/dev-ruby/facter/files/facter-1.5.2-virtual.patch b/dev-ruby/facter/files/facter-1.5.2-virtual.patch
deleted file mode 100644
index 91cb039620fa..000000000000
--- a/dev-ruby/facter/files/facter-1.5.2-virtual.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-Index: facter-1.5.2/lib/facter/virtual.rb
-===================================================================
---- facter-1.5.2.orig/lib/facter/virtual.rb
-+++ facter-1.5.2/lib/facter/virtual.rb
-@@ -7,7 +7,7 @@ Facter.add("virtual") do
-
- setcode do
-
-- if FileTest.exists?("/proc/user_beancounters")
-+ if FileTest.exists?("/proc/vz/veinfo") && !FileTest.exists?("/proc/vz/version")
- result = "openvz"
- end
-
-@@ -45,12 +45,11 @@ Facter.add("virtual") do
- result = "vmware_server"
- end
-
-- mountexists = system "which mount > /dev/null 2>&1"
-- if $?.exitstatus == 0
-- output = %x{mount}
-- output.each {|p|
-- result = "vserver" if p =~ /\/dev\/hdv1/
-- }
-+ if FileTest.exists?("/proc/self/status")
-+ txt = File.read("/proc/self/status")
-+ if txt =~ /^(s_context|VxID):[[:blank:]]*[1-9]/
-+ result = "vserver"
-+ end
- end
-
- if FileTest.directory?('/proc/virtual')
diff --git a/dev-ruby/facter/files/facter-1.5.7-fqdn.patch b/dev-ruby/facter/files/facter-1.5.7-fqdn.patch
deleted file mode 100644
index 685e8c0ef9ce..000000000000
--- a/dev-ruby/facter/files/facter-1.5.7-fqdn.patch
+++ /dev/null
@@ -1,70 +0,0 @@
-commit dca615c98b864d75e2ac5899d98d04a2bd979eba
-Author: Ohad Levy <ohad.levy@infineon.com>
-Date: Mon Jan 18 10:42:43 2010 +0800
-
- fixes #2573, #2085, #1291 - fixes domain and fqdn facts resolution
-
- This patch removes the relationship between the domain fact and LDAP/NIS domains.
- domain fact relates to DNS domain - this will avoid the confusion caused
- by the LDAP/NIS domain (which might be different to the DNS domain name).
- Additionally, if hostname is already in long form, it won't try to build
- the fqdn fact from hostname and domain.
-
-diff --git a/lib/facter/domain.rb b/lib/facter/domain.rb
-index b1bba4d..5dfead0 100644
---- a/lib/facter/domain.rb
-+++ b/lib/facter/domain.rb
-@@ -4,14 +4,14 @@ Facter.add(:domain) do
- # steps is important
-
- Facter.value(:hostname)
-- next $domain if defined? $domain and ! $domain.nil?
-+ # try to fetch the domain from hostname if long hostname is used.
-+ if defined? $fqdn and $fqdn =~ /^([\w-]+)\.(.+)$/
-+ next $2
-+ end
-
- domain = Facter::Util::Resolution.exec('dnsdomainname')
- next domain if domain =~ /.+\..+/
-
-- domain = Facter::Util::Resolution.exec('domainname')
-- next domain if domain =~ /.+\..+/
--
- if FileTest.exists?("/etc/resolv.conf")
- domain = nil
- search = nil
-diff --git a/lib/facter/fqdn.rb b/lib/facter/fqdn.rb
-index 5ebc5f5..6271995 100644
---- a/lib/facter/fqdn.rb
-+++ b/lib/facter/fqdn.rb
-@@ -1,5 +1,9 @@
- Facter.add(:fqdn) do
- setcode do
-+ # try to fetch the fqdn from hostname if long hostname is used.
-+ Facter.value(:hostname)
-+ next $fqdn if defined? $fqdn and ! $fqdn.nil?
-+
- host = Facter.value(:hostname)
- domain = Facter.value(:domain)
- if host and domain
-diff --git a/lib/facter/hostname.rb b/lib/facter/hostname.rb
-index 188efa4..c3ca968 100644
---- a/lib/facter/hostname.rb
-+++ b/lib/facter/hostname.rb
-@@ -1,12 +1,13 @@
- Facter.add(:hostname, :ldapname => "cn") do
- setcode do
-+ require 'socket'
- hostname = nil
-- name = Facter::Util::Resolution.exec('hostname') or nil
-+ name = Socket.gethostbyname(Socket.gethostname).first
- if name
- if name =~ /^([\w-]+)\.(.+)$/
- hostname = $1
-- # the Domain class uses this
-- $domain = $2
-+ # the FQDN/Domain facts use this
-+ $fqdn = name
- else
- hostname = name
- end
diff --git a/dev-ruby/facter/files/facter-1.5.7-ruby19.patch b/dev-ruby/facter/files/facter-1.5.7-ruby19.patch
deleted file mode 100644
index 9bba6ebb2919..000000000000
--- a/dev-ruby/facter/files/facter-1.5.7-ruby19.patch
+++ /dev/null
@@ -1,61 +0,0 @@
-diff -Naur facter-1.5.7.orig/install.rb facter-1.5.7/install.rb
---- facter-1.5.7.orig/install.rb 2009-09-11 13:26:07.000000000 +0900
-+++ facter-1.5.7/install.rb 2010-06-05 12:32:12.000000000 +0900
-@@ -35,11 +35,18 @@
- require 'rbconfig'
- require 'find'
- require 'fileutils'
--require 'ftools' # apparently on some system ftools doesn't get loaded
- require 'optparse'
- require 'ostruct'
-
- begin
-+ require 'ftools' # apparently on some system ftools doesn't get loaded
-+ $haveftools = true
-+rescue LoadError
-+ puts "ftools not found. Using FileUtils instead.."
-+ $haveftools = false
-+end
-+
-+begin
- require 'rdoc/rdoc'
- $haverdoc = true
- rescue LoadError
-@@ -91,9 +98,15 @@
- libs.each do |lf|
- olf = File.join(InstallOptions.site_dir, lf.gsub(/#{strip}/, ''))
- op = File.dirname(olf)
-- File.makedirs(op, true)
-- File.chmod(0755, op)
-- File.install(lf, olf, 0644, true)
-+ if $haveftools
-+ File.makedirs(op, true)
-+ File.chmod(0755, op)
-+ File.install(lf, olf, 0644, true)
-+ else
-+ FileUtils.makedirs(op, {:mode => 0755, :verbose => true})
-+ FileUtils.chmod(0755, op)
-+ FileUtils.install(lf, olf, {:mode => 0644, :verbose => true})
-+ end
- end
- end
-
-@@ -101,9 +114,15 @@
- man.each do |mf|
- omf = File.join(InstallOptions.man_dir, mf.gsub(/#{strip}/, ''))
- om = File.dirname(omf)
-- File.makedirs(om, true)
-- File.chmod(0644, om)
-- File.install(mf, omf, 0644, true)
-+ if $haveftools
-+ File.makedirs(om, true)
-+ File.chmod(0644, om)
-+ File.install(mf, omf, 0644, true)
-+ else
-+ FileUtils.makedirs(om, {:mode => 0755, :verbose => true})
-+ FileUtils.chmod(0755, om)
-+ FileUtils.install(mf, omf, {:mode => 0644, :verbose => true})
-+ end
- gzip = %x{which gzip}
- gzip.chomp!
- %x{#{gzip} -f #{omf}}
diff --git a/dev-ruby/facter/files/facter-1.5.7-virtual.patch b/dev-ruby/facter/files/facter-1.5.7-virtual.patch
deleted file mode 100644
index f3334905cc92..000000000000
--- a/dev-ruby/facter/files/facter-1.5.7-virtual.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-Index: facter-1.5.7/lib/facter/virtual.rb
-===================================================================
---- facter-1.5.7.orig/lib/facter/virtual.rb
-+++ facter-1.5.7/lib/facter/virtual.rb
-@@ -72,7 +72,7 @@ Facter.add("is_virtual") do
-
- setcode do
- case Facter.value(:virtual)
-- when "xenu", "openvzve", "vmware"
-+ when "xenu", "openvzve", "vmware", "vserver"
- true
- else
- false
diff --git a/dev-ruby/facter/files/facter-1.5.8-freebsd-spec.patch b/dev-ruby/facter/files/facter-1.5.8-freebsd-spec.patch
deleted file mode 100644
index 411780154366..000000000000
--- a/dev-ruby/facter/files/facter-1.5.8-freebsd-spec.patch
+++ /dev/null
@@ -1,18 +0,0 @@
-commit 1125e1e050a3807df2ada4d8cf2d36c22a75ed2b
-Author: Hans de Graaff <hans@degraaff.org>
-Date: Sat Sep 18 17:31:11 2010 +0200
-
- Make sure FreeBSD spec also works on systems that have /proc/cpuinfo.
-
-diff --git a/spec/unit/util/virtual.rb b/spec/unit/util/virtual.rb
-index 1e31a2f..cc528d1 100644
---- a/spec/unit/util/virtual.rb
-+++ b/spec/unit/util/virtual.rb
-@@ -101,6 +101,7 @@ describe Facter::Util::Virtual do
- end
-
- it "should detect kvm on FreeBSD" do
-+ FileTest.stubs(:exists?).with("/proc/cpuinfo").returns(false)
- Facter.fact(:kernel).stubs(:value).returns("FreeBSD")
- Facter::Util::Resolution.stubs(:exec).with("/sbin/sysctl -n hw.model").returns("QEMU Virtual CPU version 0.12.4")
- Facter::Util::Virtual.should be_kvm
diff --git a/dev-ruby/facter/metadata.xml b/dev-ruby/facter/metadata.xml
index 07f11a11ef5d..c6c9e0b4be73 100644
--- a/dev-ruby/facter/metadata.xml
+++ b/dev-ruby/facter/metadata.xml
@@ -2,7 +2,7 @@
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer>
- <email>matsuu@gentoo.org</email>
+<email>maintainer-needed@gentoo.org</email>
</maintainer>
<herd>sysadmin</herd>
<herd>ruby</herd>