diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-ruby/facter | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-ruby/facter')
-rw-r--r-- | dev-ruby/facter/Manifest | 4 | ||||
-rw-r--r-- | dev-ruby/facter/facter-2.4.1-r1.ebuild | 62 | ||||
-rw-r--r-- | dev-ruby/facter/facter-2.4.1.ebuild | 62 | ||||
-rw-r--r-- | dev-ruby/facter/facter-2.4.3.ebuild | 62 | ||||
-rw-r--r-- | dev-ruby/facter/facter-2.4.4.ebuild | 62 | ||||
-rw-r--r-- | dev-ruby/facter/facter-3.0.2-r1.ebuild | 64 | ||||
-rw-r--r-- | dev-ruby/facter/files/facter-1.7.1-fix-proc-self-status.patch | 39 | ||||
-rw-r--r-- | dev-ruby/facter/metadata.xml | 14 |
8 files changed, 369 insertions, 0 deletions
diff --git a/dev-ruby/facter/Manifest b/dev-ruby/facter/Manifest new file mode 100644 index 000000000000..f3ec4dcb2b31 --- /dev/null +++ b/dev-ruby/facter/Manifest @@ -0,0 +1,4 @@ +DIST facter-2.4.1.gem 236544 SHA256 4c8836066378d387c0561e4c3574865fa10d85d7474d472b049ecc7d5e4c67fa SHA512 5690f059961ba981d2e174f45ebdbb4e9b75aad3599cbc896f1c3d25f9b12c36500e09be70c36ebf27aed602c22d811604c344c7ccc71ecb200d4aeb78f28a4b WHIRLPOOL 1b6b4079b0449c646e06e9fd868b1de29a61facdacea956b032fbbef94e8c4c85594f50021b3f78a3668c5a0f6d29c448bd97c34fdb8a215de2ee74b164af6fd +DIST facter-2.4.3.gem 245760 SHA256 3c1e49c32e6b07c1f802ec120e860f882938a5057c6f3733594b7ff8a80ee58f SHA512 a834c50d0ac14a751ccd0d5da3f8d64a83173e82991e2a3cd70bf47c023ee0b0517baed3726398a1075043b1237a91cc8389d58acbb2bbf79c76b5e2ecd3aedb WHIRLPOOL daa82ef6b2f6eb2f640a106528e67f5631748ee4232fbe9c595146b25ac6ca01048d3fc7a5cf519469bec597b6cc6dc6a4d6b2b779b7c77972fbb8efc952c32b +DIST facter-2.4.4.gem 245760 SHA256 4f7b592f9b6bc6ad8a9789e3ca0953fae07e6d06b10a9cb7599eb1e71a03646b SHA512 9d485d147cf726cd4a2943d1ee3475d2593067953102c11487e2916d59464407016a074b6eb31af4da37a3914588937d827d2cf4c64196650baefa2fb097bb89 WHIRLPOOL 574afae52fc7ad3cf8619abcd89eee4ca38e5ecc903e316bfc18aef708fa32e8b3487f315605a21ac9faf0ba66989c8d108d77a9104f74f79fc5e953dd8ccdd7 +DIST facter-3.0.2.tar.gz 508583 SHA256 2fee1ee938196790f24b7b876ff04a5d69c0ac1492ff6935b003ae23500eced7 SHA512 57a5c40d2ad07911a2b9c242b22bcffbbf8eedc88e12d7d6e8f6cf044ef30034cae7230468a7b414c93d6008d8805be1621a8c6b1af2543539d979bd3df7d1e8 WHIRLPOOL 6b89ca76ba7d993e1b87fe840b76dda9b1d8534df06f9f45e3c24752b95b441e471899446018f66bb6db0d490bb4a76cd4ab146a5060755333072ab5a5767bd3 diff --git a/dev-ruby/facter/facter-2.4.1-r1.ebuild b/dev-ruby/facter/facter-2.4.1-r1.ebuild new file mode 100644 index 000000000000..7986ce94fa0d --- /dev/null +++ b/dev-ruby/facter/facter-2.4.1-r1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +USE_RUBY="ruby19 ruby20 ruby21" +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="+dmi +pciutils +virt" +KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" + +CDEPEND=" + app-emulation/virt-what + sys-apps/net-tools + sys-apps/lsb-release + dmi? ( sys-apps/dmidecode ) + pciutils? ( sys-apps/pciutils )" + +RDEPEND+=" ${CDEPEND}" +DEPEND+=" test? ( ${CDEPEND} )" + +ruby_add_bdepend "test? ( dev-ruby/mocha:1.0 )" + +all_ruby_prepare() { + # Provide explicit path since /sbin is not in the default PATH on + # Gentoo. + sed -i -e 's:arp -an:/sbin/arp -an:' lib/facter/util/ec2.rb spec/unit/util/ec2_spec.rb || die + + # Ensure the correct version of mocha is used without using bundler. + sed -i -e '1igem "mocha", "~>1.0"' spec/spec_helper.rb || die + + # Avoid because tests try to access outside stuff, e.g. /sys/block + sed -i -e '/should load facts on the facter search path only once/,/^ end/ s:^:#:' spec/unit/util/loader_spec.rb || die + + # Allow specs to work with newer rspec 2.x versions. + sed -i -e '1irequire "rspec-expectations"' spec/puppetlabs_spec/matchers.rb || die + + # Avoid specs specific to macosx requiring cfpropertylist which is + # not available anymore. + rm spec/unit/util/macosx_spec.rb || die + sed -i -e '/macosx/ s:^:#:' \ + -e '/on Darwin/,/^ end/ s:^:#:' spec/unit/virtual_spec.rb || die + sed -i -e '/Facter::Processors::Darwin/,/^end/ s:^:#:' spec/unit/processors/os_spec.rb || die +} + +all_ruby_install() { + all_fakegem_install + + # Create the directory for custom facts. + keepdir /etc/facter/facts.d +} diff --git a/dev-ruby/facter/facter-2.4.1.ebuild b/dev-ruby/facter/facter-2.4.1.ebuild new file mode 100644 index 000000000000..991757c3645c --- /dev/null +++ b/dev-ruby/facter/facter-2.4.1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +USE_RUBY="ruby19 ruby20" +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="+dmi +pciutils +virt" +KEYWORDS="amd64 hppa ppc ppc64 sparc x86" + +CDEPEND=" + app-emulation/virt-what + sys-apps/net-tools + sys-apps/lsb-release + dmi? ( sys-apps/dmidecode ) + pciutils? ( sys-apps/pciutils )" + +RDEPEND+=" ${CDEPEND}" +DEPEND+=" test? ( ${CDEPEND} )" + +ruby_add_bdepend "test? ( dev-ruby/mocha:0.13 )" + +all_ruby_prepare() { + # Provide explicit path since /sbin is not in the default PATH on + # Gentoo. + sed -i -e 's:arp -an:/sbin/arp -an:' lib/facter/util/ec2.rb spec/unit/util/ec2_spec.rb || die + + # Ensure the correct version of mocha is used without using bundler. + sed -i -e '1igem "mocha", "~>0.13"' spec/spec_helper.rb || die + + # Avoid because tests try to access outside stuff, e.g. /sys/block + sed -i -e '/should load facts on the facter search path only once/,/^ end/ s:^:#:' spec/unit/util/loader_spec.rb || die + + # Allow specs to work with newer rspec 2.x versions. + sed -i -e '1irequire "rspec-expectations"' spec/puppetlabs_spec/matchers.rb || die + + # Avoid specs specific to macosx requiring cfpropertylist which is + # not available anymore. + rm spec/unit/util/macosx_spec.rb || die + sed -i -e '/macosx/ s:^:#:' \ + -e '/on Darwin/,/^ end/ s:^:#:' spec/unit/virtual_spec.rb || die + sed -i -e '/Facter::Processors::Darwin/,/^end/ s:^:#:' spec/unit/processors/os_spec.rb || die +} + +all_ruby_install() { + all_fakegem_install + + # Create the directory for custom facts. + keepdir /etc/facter/facts.d +} diff --git a/dev-ruby/facter/facter-2.4.3.ebuild b/dev-ruby/facter/facter-2.4.3.ebuild new file mode 100644 index 000000000000..3e8ea45cb905 --- /dev/null +++ b/dev-ruby/facter/facter-2.4.3.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +USE_RUBY="ruby19 ruby20 ruby21 ruby22" +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="+dmi +pciutils +virt" +KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" + +CDEPEND=" + app-emulation/virt-what + sys-apps/net-tools + sys-apps/lsb-release + dmi? ( sys-apps/dmidecode ) + pciutils? ( sys-apps/pciutils )" + +RDEPEND+=" ${CDEPEND}" +DEPEND+=" test? ( ${CDEPEND} )" + +ruby_add_bdepend "test? ( dev-ruby/mocha:1.0 )" + +all_ruby_prepare() { + # Provide explicit path since /sbin is not in the default PATH on + # Gentoo. + sed -i -e 's:arp -an:/sbin/arp -an:' lib/facter/util/ec2.rb spec/unit/util/ec2_spec.rb || die + + # Ensure the correct version of mocha is used without using bundler. + sed -i -e '1igem "mocha", "~>1.0"' spec/spec_helper.rb || die + + # Avoid because tests try to access outside stuff, e.g. /sys/block + sed -i -e '/should load facts on the facter search path only once/,/^ end/ s:^:#:' spec/unit/util/loader_spec.rb || die + + # Allow specs to work with newer rspec 2.x versions. + sed -i -e '1irequire "rspec-expectations"' spec/puppetlabs_spec/matchers.rb || die + + # Avoid specs specific to macosx requiring cfpropertylist which is + # not available anymore. + rm spec/unit/util/macosx_spec.rb || die + sed -i -e '/macosx/ s:^:#:' \ + -e '/on Darwin/,/^ end/ s:^:#:' spec/unit/virtual_spec.rb || die + sed -i -e '/Facter::Processors::Darwin/,/^end/ s:^:#:' spec/unit/processors/os_spec.rb || die +} + +all_ruby_install() { + all_fakegem_install + + # Create the directory for custom facts. + keepdir /etc/facter/facts.d +} diff --git a/dev-ruby/facter/facter-2.4.4.ebuild b/dev-ruby/facter/facter-2.4.4.ebuild new file mode 100644 index 000000000000..3e8ea45cb905 --- /dev/null +++ b/dev-ruby/facter/facter-2.4.4.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +USE_RUBY="ruby19 ruby20 ruby21 ruby22" +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="+dmi +pciutils +virt" +KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" + +CDEPEND=" + app-emulation/virt-what + sys-apps/net-tools + sys-apps/lsb-release + dmi? ( sys-apps/dmidecode ) + pciutils? ( sys-apps/pciutils )" + +RDEPEND+=" ${CDEPEND}" +DEPEND+=" test? ( ${CDEPEND} )" + +ruby_add_bdepend "test? ( dev-ruby/mocha:1.0 )" + +all_ruby_prepare() { + # Provide explicit path since /sbin is not in the default PATH on + # Gentoo. + sed -i -e 's:arp -an:/sbin/arp -an:' lib/facter/util/ec2.rb spec/unit/util/ec2_spec.rb || die + + # Ensure the correct version of mocha is used without using bundler. + sed -i -e '1igem "mocha", "~>1.0"' spec/spec_helper.rb || die + + # Avoid because tests try to access outside stuff, e.g. /sys/block + sed -i -e '/should load facts on the facter search path only once/,/^ end/ s:^:#:' spec/unit/util/loader_spec.rb || die + + # Allow specs to work with newer rspec 2.x versions. + sed -i -e '1irequire "rspec-expectations"' spec/puppetlabs_spec/matchers.rb || die + + # Avoid specs specific to macosx requiring cfpropertylist which is + # not available anymore. + rm spec/unit/util/macosx_spec.rb || die + sed -i -e '/macosx/ s:^:#:' \ + -e '/on Darwin/,/^ end/ s:^:#:' spec/unit/virtual_spec.rb || die + sed -i -e '/Facter::Processors::Darwin/,/^end/ s:^:#:' spec/unit/processors/os_spec.rb || die +} + +all_ruby_install() { + all_fakegem_install + + # Create the directory for custom facts. + keepdir /etc/facter/facts.d +} diff --git a/dev-ruby/facter/facter-3.0.2-r1.ebuild b/dev-ruby/facter/facter-3.0.2-r1.ebuild new file mode 100644 index 000000000000..d27a6ebb5948 --- /dev/null +++ b/dev-ruby/facter/facter-3.0.2-r1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +USE_RUBY="ruby19 ruby20 ruby21 ruby22" + +inherit cmake-utils ruby-ng + +DESCRIPTION="A cross-platform ruby library for retrieving facts from operating systems" +HOMEPAGE="http://www.puppetlabs.com/puppet/related-projects/facter/" +SRC_URI="https://downloads.puppetlabs.com/facter/${P}.tar.gz" +S="${S}/all/${P}" + +LICENSE="Apache-2.0" +SLOT="0" +IUSE="debug test" +KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86" + +CDEPEND=" + >=sys-devel/gcc-4.8:* + >=dev-libs/boost-1.54 + >=dev-cpp/yaml-cpp-0.5.1 + dev-libs/openssl:* + sys-apps/util-linux + app-emulation/virt-what + net-misc/curl" + +RDEPEND+=" ${CDEPEND}" +DEPEND+=" test? ( ${CDEPEND} )" + +src_prepare() { + sed -i 's/\-Werror\ //g' "vendor/leatherman/cmake/cflags.cmake" || die + # Remove the code that installs facter.rb to the wrong directory. + sed -i '/RUBY_VENDORDIR/d' lib/CMakeLists.txt || die + # make it support multilib + sed -i 's/\ lib)/\ lib${LIB_SUFFIX})/g' lib/CMakeLists.txt || die +} + +src_configure() { + local mycmakeargs=( + -DCMAKE_VERBOSE_MAKEFILE=ON + -DCMAKE_BUILD_TYPE=None + -DCMAKE_INSTALL_PREFIX=/usr + -DCMAKE_INSTALL_SYSCONFDIR=/etc + -DCMAKE_INSTALL_LOCALSTATEDIR=/var + -DUSE_JRUBY_SUPPORT=FALSE + ) + if use debug; then + mycmakeargs+=( + -DCMAKE_BUILD_TYPE=Debug + ) + fi + cmake-utils_src_configure +} + +each_ruby_install() { + doruby "${BUILD_DIR}"/lib/facter.rb +} + +src_install() { + cmake-utils_src_install + ruby-ng_src_install +} diff --git a/dev-ruby/facter/files/facter-1.7.1-fix-proc-self-status.patch b/dev-ruby/facter/files/facter-1.7.1-fix-proc-self-status.patch new file mode 100644 index 000000000000..1119bdf510b9 --- /dev/null +++ b/dev-ruby/facter/files/facter-1.7.1-fix-proc-self-status.patch @@ -0,0 +1,39 @@ +From d54c86abfba35f48cad78bb99b1d199afe8c2095 Mon Sep 17 00:00:00 2001 +From: Jeff McCune <jeff@puppetlabs.com> +Date: Tue, 16 Apr 2013 11:27:30 -0400 +Subject: [PATCH] (#14522) Force /proc/self/status encoding to valid UTF-8 (try + 2) + +Without this patch the previous attempt to fix issue 14522 is +insufficient because the String#encode method is a no-op when the source +and destination encodings are the same encoding, even if there are +invalid byte sequences. + +This is a problem because we're still getting unhandled `invalid byte +sequence in UTF-8` errors running the specs. + +This patch addresses the problem by changing encoding from UTF-8 to +UTF-16, replacing all invalid byte sequences with the default unicode +string of "uFFFD" We then convert back to UTF-8 to guarantee only valid +byte sequences remain. +--- + lib/facter/util/virtual.rb | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/lib/facter/util/virtual.rb b/lib/facter/util/virtual.rb +index 8223b41..65cf58a 100644 +--- a/lib/facter/util/virtual.rb ++++ b/lib/facter/util/virtual.rb +@@ -63,7 +63,8 @@ def self.vserver? + return false unless FileTest.exists?("/proc/self/status") + txt = File.open("/proc/self/status", "rb").read + if txt.respond_to?(:encode!) +- txt.encode!('UTF-8', 'UTF-8', :invalid => :replace) ++ txt.encode!('UTF-16', 'UTF-8', :invalid => :replace) ++ txt.encode!('UTF-8', 'UTF-16') + end + return true if txt =~ /^(s_context|VxID):[[:blank:]]*[0-9]/ + return false +-- +1.8.1.6 + diff --git a/dev-ruby/facter/metadata.xml b/dev-ruby/facter/metadata.xml new file mode 100644 index 000000000000..dd12a79f6c15 --- /dev/null +++ b/dev-ruby/facter/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>prometheanfire@gentoo.org</email> + </maintainer> + <herd>sysadmin</herd> + <herd>ruby</herd> + <use> + <flag name='dmi'>Use <pkg>sys-apps/dmidecode</pkg> to determine hardware system properties</flag> + <flag name='virt'>Use <pkg>app-emulation/virt-what</pkg> for virtual machine detection</flag> + <flag name='pciutils'>Use <pkg>sys-apps/pciutils</pkg> to determine hardware system properties</flag> + </use> +</pkgmetadata> |