Skip to content

Commit 03c919b

Browse files
committed
[COOK-504] build-essential cookbook should install make package on rhel platforms
1 parent c25cf05 commit 03c919b

File tree

4 files changed

+43
-50
lines changed

4 files changed

+43
-50
lines changed

build-essential/README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ LICENSE AND AUTHOR
77
==================
88

99
Author:: Joshua Timberman (<[email protected]>)
10+
Author:: Seth Chisamore (<[email protected]>)
1011

11-
Copyright 2009, Opscode, Inc.
12+
Copyright 2009-2011, Opscode, Inc.
1213

1314
Licensed under the Apache License, Version 2.0 (the "License");
1415
you may not use this file except in compliance with the License.

build-essential/metadata.json

+34-44
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,35 @@
11
{
2-
"recommendations": {
3-
},
4-
"attributes": {
5-
},
6-
"maintainer": "Opscode, Inc.",
7-
"suggestions": {
8-
},
9-
"dependencies": {
10-
},
11-
"maintainer_email": "[email protected]",
12-
"conflicting": {
13-
},
14-
"platforms": {
15-
"debian": [
16-
17-
],
18-
"centos": [
19-
20-
],
21-
"fedora": [
22-
23-
],
24-
"ubuntu": [
25-
26-
],
27-
"redhat": [
28-
29-
]
30-
},
31-
"license": "Apache 2.0",
32-
"version": "0.7.1",
33-
"providing": {
34-
},
35-
"recipes": {
36-
"build-essential": "Installs C compiler and build tools on Linux"
37-
},
38-
"replacing": {
39-
},
40-
"name": "build-essential",
41-
"description": "Installs C compiler / build tools",
42-
"groupings": {
43-
},
44-
"long_description": ""
45-
}
2+
"name": "build-essential",
3+
"description": "Installs C compiler / build tools",
4+
"long_description": "",
5+
"maintainer": "Opscode, Inc.",
6+
"maintainer_email": "[email protected]",
7+
"license": "Apache 2.0",
8+
"platforms": {
9+
"fedora": ">= 0.0.0",
10+
"redhat": ">= 0.0.0",
11+
"centos": ">= 0.0.0",
12+
"ubuntu": ">= 0.0.0",
13+
"debian": ">= 0.0.0"
14+
},
15+
"dependencies": {
16+
},
17+
"recommendations": {
18+
},
19+
"suggestions": {
20+
},
21+
"conflicting": {
22+
},
23+
"providing": {
24+
},
25+
"replacing": {
26+
},
27+
"attributes": {
28+
},
29+
"groupings": {
30+
},
31+
"recipes": {
32+
"build-essential": "Installs C compiler and build tools on Linux"
33+
},
34+
"version": "1.0.0"
35+
}

build-essential/metadata.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
maintainer_email "[email protected]"
33
license "Apache 2.0"
44
description "Installs C compiler / build tools"
5-
version "0.7.1"
5+
version "1.0.0"
66
recipe "build-essential", "Installs C compiler and build tools on Linux"
77

88
%w{ fedora redhat centos ubuntu debian }.each do |os|

build-essential/recipes/default.rb

+6-4
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,18 @@
1717
# limitations under the License.
1818
#
1919

20-
case node[:platform]
20+
case node['platform']
2121
when "ubuntu","debian"
2222
%w{build-essential binutils-doc}.each do |pkg|
2323
package pkg do
2424
action :install
2525
end
2626
end
27-
when "centos"
28-
package "gcc" do
29-
action :install
27+
when "centos","redhat","fedora"
28+
%w{gcc gcc-c++ kernel-devel make}.each do |pkg|
29+
package pkg do
30+
action :install
31+
end
3032
end
3133
end
3234

0 commit comments

Comments
 (0)