Skip to content
This repository has been archived by the owner on Nov 23, 2017. It is now read-only.

Commit

Permalink
[COOK-504] build-essential cookbook should install make package on rh…
Browse files Browse the repository at this point in the history
…el platforms
  • Loading branch information
schisamo committed Apr 20, 2011
1 parent c25cf05 commit 03c919b
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 50 deletions.
3 changes: 2 additions & 1 deletion build-essential/README.md
Expand Up @@ -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.
Expand Down
78 changes: 34 additions & 44 deletions build-essential/metadata.json
@@ -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 changes: 1 addition & 1 deletion build-essential/metadata.rb
Expand Up @@ -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|
Expand Down
10 changes: 6 additions & 4 deletions build-essential/recipes/default.rb
Expand Up @@ -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

Expand Down

0 comments on commit 03c919b

Please sign in to comment.