Permalink
Browse files

[COOK-504] build-essential cookbook should install make package on rh…

…el platforms
  • Loading branch information...
1 parent c25cf05 commit 03c919b0786b807ce2a75bc8b8cf14e6f2057caa @schisamo schisamo committed Apr 20, 2011
Showing with 43 additions and 50 deletions.
  1. +2 −1 build-essential/README.md
  2. +34 −44 build-essential/metadata.json
  3. +1 −1 build-essential/metadata.rb
  4. +6 −4 build-essential/recipes/default.rb
@@ -7,8 +7,9 @@ LICENSE AND AUTHOR
==================
Author:: Joshua Timberman (<joshua@opscode.com>)
+Author:: Seth Chisamore (<schisamo@opscode.com>)
-Copyright 2009, Opscode, Inc.
+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.
@@ -1,45 +1,35 @@
{
- "recommendations": {
- },
- "attributes": {
- },
- "maintainer": "Opscode, Inc.",
- "suggestions": {
- },
- "dependencies": {
- },
- "maintainer_email": "cookbooks@opscode.com",
- "conflicting": {
- },
- "platforms": {
- "debian": [
-
- ],
- "centos": [
-
- ],
- "fedora": [
-
- ],
- "ubuntu": [
-
- ],
- "redhat": [
-
- ]
- },
- "license": "Apache 2.0",
- "version": "0.7.1",
- "providing": {
- },
- "recipes": {
- "build-essential": "Installs C compiler and build tools on Linux"
- },
- "replacing": {
- },
- "name": "build-essential",
- "description": "Installs C compiler / build tools",
- "groupings": {
- },
- "long_description": ""
- }
+ "name": "build-essential",
+ "description": "Installs C compiler / build tools",
+ "long_description": "",
+ "maintainer": "Opscode, Inc.",
+ "maintainer_email": "cookbooks@opscode.com",
+ "license": "Apache 2.0",
+ "platforms": {
+ "fedora": ">= 0.0.0",
+ "redhat": ">= 0.0.0",
+ "centos": ">= 0.0.0",
+ "ubuntu": ">= 0.0.0",
+ "debian": ">= 0.0.0"
+ },
+ "dependencies": {
+ },
+ "recommendations": {
+ },
+ "suggestions": {
+ },
+ "conflicting": {
+ },
+ "providing": {
+ },
+ "replacing": {
+ },
+ "attributes": {
+ },
+ "groupings": {
+ },
+ "recipes": {
+ "build-essential": "Installs C compiler and build tools on Linux"
+ },
+ "version": "1.0.0"
+}
@@ -2,7 +2,7 @@
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Installs C compiler / build tools"
-version "0.7.1"
+version "1.0.0"
recipe "build-essential", "Installs C compiler and build tools on Linux"
%w{ fedora redhat centos ubuntu debian }.each do |os|
@@ -17,16 +17,18 @@
# limitations under the License.
#
-case node[:platform]
+case node['platform']
when "ubuntu","debian"
%w{build-essential binutils-doc}.each do |pkg|
package pkg do
action :install
end
end
-when "centos"
- package "gcc" do
- action :install
+when "centos","redhat","fedora"
+ %w{gcc gcc-c++ kernel-devel make}.each do |pkg|
+ package pkg do
+ action :install
+ end
end
end

0 comments on commit 03c919b

Please sign in to comment.