Skip to content

Commit

Permalink
COOK-953: FreeBSD support in the xml cookbook.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea Campi authored and jtimberman committed Jan 5, 2012
1 parent 10472b3 commit bc29c85
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion xml/metadata.rb
Expand Up @@ -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
11 changes: 7 additions & 4 deletions xml/recipes/default.rb
Expand Up @@ -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.