Permalink
Browse files

COOK-953: FreeBSD support in the xml cookbook.

  • Loading branch information...
1 parent 10472b3 commit bc29c85a9743ff4b3119e358eb28ad8316dc6a71 @andreacampi andreacampi committed with jtimberman Dec 29, 2011
Showing with 8 additions and 5 deletions.
  1. +1 −1 xml/metadata.rb
  2. +7 −4 xml/recipes/default.rb
View
2 xml/metadata.rb
@@ -7,6 +7,6 @@
recipe "xml", "Installs libxml development packages"
-%w{ centos redhat scientific suse fedora ubuntu debian }.each do |os|
+%w{ centos redhat scientific suse fedora ubuntu debian freebsd }.each do |os|
supports os
end
View
11 xml/recipes/default.rb
@@ -17,9 +17,12 @@
# limitations under the License.
#
+pkg_name = value_for_platform(
+ [ "centos", "redhat", "scientific", "suse", "fedora" ] => { "default" => "libxml2-devel" },
+ [ "freebsd" ] => { "default" => "libxml2" },
+ "default" => 'libxml2-dev'
+)
+
package "libxml-devel" do
- package_name value_for_platform(
- [ "centos", "redhat", "scientific", "suse", "fedora" ] => { "default" => "libxml2-devel" },
- "default" => 'libxml2-dev'
- )
+ package_name pkg_name
end

0 comments on commit bc29c85

Please sign in to comment.