Permalink
Browse files

Merge pull request #1 from pfalcone/redhat-support

Add support for Red Hat-based distributions
  • Loading branch information...
2 parents 9ae23e6 + 513f6b4 commit 7eac5648e7be3ffbf37579af354fca1dcb6d66ef @phlipper committed Jan 9, 2013
Showing with 15 additions and 5 deletions.
  1. +2 −2 README.md
  2. +7 −2 metadata.rb
  3. +6 −1 recipes/default.rb
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.
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
+
+
View
@@ -3,4 +3,9 @@
# Recipe:: default
#
-package "cmake"
+case node[:platform]
+when "centos","fedora","redhat"
+ package "cmake28"
+when "ubuntu","debian"
+ package "cmake"
+end

0 comments on commit 7eac564

Please sign in to comment.