Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add support for Red Hat-based distributions

  • Loading branch information...
commit 513f6b453b09d323ff4880037e4098657f8421aa 1 parent 9ae23e6
Paolo Alexis Falcone pfalcone authored
Showing with 15 additions and 5 deletions.
  1. +2 −2 README.md
  2. +7 −2 metadata.rb
  3. +6 −1 recipes/default.rb
4 README.md
View
@@ -9,13 +9,13 @@ Installs [cmake](http://www.cmake.org/), the cross-platform, open-source build s
The following platforms are supported by this cookbook, meaning that the recipes run on these platforms without error:
-* Ubuntu
+* Ubuntu/Debian
+* Fedora/CentOS/RedHat Enterprise Linux
# RECIPES
* `cmake`, Default recipe
-
# USAGE
This cookbook installs the cmake components if not present, and pulls updates if they are installed on the system.
9 metadata.rb
View
@@ -4,6 +4,11 @@
license "MIT"
description "Install cmake"
version "0.1.0"
-supports "ubuntu"
-recipe "default", "Install default cmake support"
+recipe "default", "Install default cmake support"
+
+%w{ debian ubuntu redhat centos fedora }.each do |os|
+ supports os
+end
+
+
7 recipes/default.rb
View
@@ -3,4 +3,9 @@
# Recipe:: default
#
-package "cmake"
+case node[:platform]
+when "centos","fedora","redhat"
+ package "cmake28"
+when "ubuntu","debian"
+ package "cmake"
+end
Please sign in to comment.
Something went wrong with that request. Please try again.