aboutsummaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-support/facter
diff options
context:
space:
mode:
authorYangHaibo <b40869@freescale.com>2014-12-03 10:59:34 +0800
committerBruce Ashfield <bruce.ashfield@windriver.com>2014-12-18 12:48:12 -0500
commit4160e0b66b9a7031edc02ecc89bd5e6f0b77e0c0 (patch)
tree2ffcea1fbadf3e319b07c7cb6badb9717cdff728 /meta-openstack/recipes-support/facter
parentd8d0967a98b256f72e0cc2449d68b4afe23583b2 (diff)
downloadmeta-cloud-services-4160e0b66b9a7031edc02ecc89bd5e6f0b77e0c0.zip
meta-cloud-services-4160e0b66b9a7031edc02ecc89bd5e6f0b77e0c0.tar.gz
meta-cloud-services-4160e0b66b9a7031edc02ecc89bd5e6f0b77e0c0.tar.bz2
facter: add recipe for facter 2.3.0
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-support/facter')
-rw-r--r--meta-openstack/recipes-support/facter/facter/add_facter_gemspec.patch23
-rw-r--r--meta-openstack/recipes-support/facter/facter_2.3.0.bb19
2 files changed, 42 insertions, 0 deletions
diff --git a/meta-openstack/recipes-support/facter/facter/add_facter_gemspec.patch b/meta-openstack/recipes-support/facter/facter/add_facter_gemspec.patch
new file mode 100644
index 0000000..a5095cb
--- /dev/null
+++ b/meta-openstack/recipes-support/facter/facter/add_facter_gemspec.patch
@@ -0,0 +1,23 @@
+diff -urN facter-2.3.0_ori/facter.gemspec facter-2.3.0/facter.gemspec
+--- facter-2.3.0_ori/facter.gemspec 1970-01-01 08:00:00.000000000 +0800
++++ facter-2.3.0/facter.gemspec 2014-11-12 14:30:07.000000000 +0800
+@@ -0,0 +1,19 @@
++$:.unshift(File.dirname(__FILE__) + '/lib')
++require 'facter/version'
++
++Gem::Specification.new do |s|
++ s.name = 'facter'
++ s.version = Facter::FACTERVERSION
++ s.platform = Gem::Platform::RUBY
++ s.summary = 'Facter gathers basic facts about nodes (systems)'
++ s.description = s.summary
++ s.author = 'Yang Haibo'
++ s.email = 'b40869@freescale.com'
++ s.homepage = 'http://puppetlabs.com/facter'
++ s.license = 'Apache 2.0'
++
++ s.bindir = 'bin'
++ s.executables = ['facter']
++ s.require_path = 'lib'
++ s.files = %w(LICENSE README.md Rakefile) + Dir.glob('{lib,spec}/**/*')
++end
diff --git a/meta-openstack/recipes-support/facter/facter_2.3.0.bb b/meta-openstack/recipes-support/facter/facter_2.3.0.bb
new file mode 100644
index 0000000..b5a46e7
--- /dev/null
+++ b/meta-openstack/recipes-support/facter/facter_2.3.0.bb
@@ -0,0 +1,19 @@
+SUMMARY = "Facter gathers basic facts about nodes (systems)"
+HOMEPAGE = "http://puppetlabs.com/facter"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=ce69a88023d6f6ab282865ddef9f1e41"
+
+SRC_URI = " \
+ http://downloads.puppetlabs.com/facter/facter-${PV}.tar.gz \
+ file://add_facter_gemspec.patch \
+"
+SRC_URI[md5sum] = "7bb6dbeaef86cd79300b4723c06932bc"
+SRC_URI[sha256sum] = "a91ea915b276172e002a8670684e5c6be7df1dfdd55db6937d27fffad70c5e51"
+
+inherit ruby
+
+DEPENDS += " \
+ ruby \
+"
+
+RUBY_INSTALL_GEMS = "facter-${PV}.gem"