aboutsummaryrefslogtreecommitdiffstats
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:59:52 -0500
commit0e12d8177e21c85beeb3d8f45699224634047f90 (patch)
tree2ffcea1fbadf3e319b07c7cb6badb9717cdff728
parent733213218602067a6077b810d44edc025b1fa741 (diff)
downloadmeta-cloud-services-0e12d8177e21c85beeb3d8f45699224634047f90.tar.gz
meta-cloud-services-0e12d8177e21c85beeb3d8f45699224634047f90.tar.bz2
meta-cloud-services-0e12d8177e21c85beeb3d8f45699224634047f90.zip
facter: add recipe for facter 2.3.0
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
-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"