Permalink
Browse files

Import xml version 1.0.2

  • Loading branch information...
1 parent 82ee473 commit 1dc98148c957a5341e8294d29de7937adfc6e7a9 Mark Luntzel committed Jan 19, 2012
Showing with 114 additions and 0 deletions.
  1. +35 −0 cookbooks/xml/README.md
  2. +39 −0 cookbooks/xml/metadata.json
  3. +12 −0 cookbooks/xml/metadata.rb
  4. +28 −0 cookbooks/xml/recipes/default.rb
View
@@ -0,0 +1,35 @@
+Description
+====
+
+Installs development package for libxml.
+
+Requirements
+====
+
+Debian, Ubuntu, CentOS, Red Hat, Scientific, Fedora, SUSE.
+
+Changes
+====
+
+## v1.0.2:
+
+* [COOK-953] - Add FreeBSD support
+* [COOK-775] - Add Amazon Linux support
+
+License and Author
+====
+
+Author:: Joshua Timberman (<joshua@opscode.com>)
+Copyright:: 2009-2011, Opscode, Inc.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
@@ -0,0 +1,39 @@
+{
+ "name": "xml",
+ "description": "Installs xml",
+ "long_description": "Description\n====\n\nInstalls development package for libxml.\n\nRequirements\n====\n\nDebian, Ubuntu, CentOS, Red Hat, Scientific, Fedora, SUSE.\n\nChanges\n====\n\n## v1.0.2:\n\n* [COOK-953] - Add FreeBSD support\n* [COOK-775] - Add Amazon Linux support\n\nLicense and Author\n====\n\nAuthor:: Joshua Timberman (<joshua@opscode.com>)\nCopyright:: 2009-2011, Opscode, Inc.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
+ "maintainer": "Opscode, Inc.",
+ "maintainer_email": "cookbooks@opscode.com",
+ "license": "Apache 2.0",
+ "platforms": {
+ "centos": ">= 0.0.0",
+ "redhat": ">= 0.0.0",
+ "scientific": ">= 0.0.0",
+ "suse": ">= 0.0.0",
+ "fedora": ">= 0.0.0",
+ "amazon": ">= 0.0.0",
+ "ubuntu": ">= 0.0.0",
+ "debian": ">= 0.0.0",
+ "freebsd": ">= 0.0.0"
+ },
+ "dependencies": {
+ },
+ "recommendations": {
+ },
+ "suggestions": {
+ },
+ "conflicting": {
+ },
+ "providing": {
+ },
+ "replacing": {
+ },
+ "attributes": {
+ },
+ "groupings": {
+ },
+ "recipes": {
+ "xml": "Installs libxml development packages"
+ },
+ "version": "1.0.2"
+}
View
@@ -0,0 +1,12 @@
+maintainer "Opscode, Inc."
+maintainer_email "cookbooks@opscode.com"
+license "Apache 2.0"
+description "Installs xml"
+long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
+version "1.0.2"
+
+recipe "xml", "Installs libxml development packages"
+
+%w{ centos redhat scientific suse fedora amazon ubuntu debian freebsd }.each do |os|
+ supports os
+end
@@ -0,0 +1,28 @@
+#
+# Cookbook Name:: xml
+# Recipe:: default
+#
+# Copyright 2010, Opscode, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+pkg_name = value_for_platform(
+ [ "centos", "redhat", "scientific", "suse", "fedora", "amazon" ] => { "default" => "libxml2-devel" },
+ [ "freebsd" ] => { "default" => "libxml2" },
+ "default" => 'libxml2-dev'
+)
+
+package "libxml-devel" do
+ package_name pkg_name
+end

0 comments on commit 1dc9814

Please sign in to comment.