[Pkg-puppet-devel] [facter] 257/352: (FACT-332) Add cfpropertylist task to facter

Stig Sandbeck Mathisen ssm at debian.org
Sun Apr 6 22:21:51 UTC 2014


This is an automated email from the git hooks/post-receive script.

ssm pushed a commit to branch master
in repository facter.

commit 88d23b0652228b508dd90c80846f8043afb67bf9
Author: Matthaus Owens <matthaus at puppetlabs.com>
Date:   Thu Feb 13 16:45:30 2014 -0800

    (FACT-332) Add cfpropertylist task to facter
    
    As cfpropertylist is no longer vendored within facter, but it is still needed
    at runtime for facter, this commit adds a simple task to fetch, unpack, and
    stage cfpropertylist within the facter libdir, where it will be installed
    automatically in the apple package. This task is intended to be used only when
    building apple packages.
---
 tasks/cfppropertylist.rake | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/tasks/cfppropertylist.rake b/tasks/cfppropertylist.rake
new file mode 100644
index 0000000..4b2db3d
--- /dev/null
+++ b/tasks/cfppropertylist.rake
@@ -0,0 +1,11 @@
+task 'cfpropertylist' do
+  cfp_version = "2.2.7"
+  libdir = File.join(Pkg::Config.project_root, "lib")
+  source = "https://github.com/ckruse/CFPropertyList/archive/cfpropertylist-#{cfp_version}.tar.gz"
+  target_dir = Pkg::Util::File.mktemp
+  target = File.join(target_dir, "cfpropertylist")
+  Pkg::Util::Net.fetch_uri(source, target)
+  Pkg::Util::File.untar_into(target, target_dir, "--strip-components 1")
+  mv(Dir.glob("#{File.join(target_dir, "lib")}/cfpropertylist*"), libdir)
+  mv(Dir.glob("#{target_dir}/{LICENSE,README,THANKS}"), File.join(libdir, "cfpropertylist"))
+end

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-puppet/facter.git



More information about the Pkg-puppet-devel mailing list