Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…el platforms
  • Loading branch information...
commit 03c919b0786b807ce2a75bc8b8cf14e6f2057caa 1 parent c25cf05
Seth Chisamore authored April 19, 2011
3  build-essential/README.md
Source Rendered
@@ -7,8 +7,9 @@ LICENSE AND AUTHOR
7 7
 ==================
8 8
 
9 9
 Author:: Joshua Timberman (<joshua@opscode.com>)
  10
+Author:: Seth Chisamore (<schisamo@opscode.com>)
10 11
 
11  
-Copyright 2009, Opscode, Inc.
  12
+Copyright 2009-2011, Opscode, Inc.
12 13
 
13 14
 Licensed under the Apache License, Version 2.0 (the "License");
14 15
 you may not use this file except in compliance with the License.
78  build-essential/metadata.json
... ...
@@ -1,45 +1,35 @@
1 1
 {
2  
-    "recommendations": {
3  
-    },
4  
-    "attributes": {
5  
-    },
6  
-    "maintainer": "Opscode, Inc.",
7  
-    "suggestions": {
8  
-    },
9  
-    "dependencies": {
10  
-    },
11  
-    "maintainer_email": "cookbooks@opscode.com",
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": "cookbooks@opscode.com",
  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
+}
2  build-essential/metadata.rb
@@ -2,7 +2,7 @@
2 2
 maintainer_email  "cookbooks@opscode.com"
3 3
 license           "Apache 2.0"
4 4
 description       "Installs C compiler / build tools"
5  
-version           "0.7.1"
  5
+version           "1.0.0"
6 6
 recipe            "build-essential", "Installs C compiler and build tools on Linux"
7 7
 
8 8
 %w{ fedora redhat centos ubuntu debian }.each do |os|
10  build-essential/recipes/default.rb
@@ -17,16 +17,18 @@
17 17
 # limitations under the License.
18 18
 #
19 19
 
20  
-case node[:platform]
  20
+case node['platform']
21 21
 when "ubuntu","debian"
22 22
   %w{build-essential binutils-doc}.each do |pkg|
23 23
     package pkg do
24 24
       action :install
25 25
     end
26 26
   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
30 32
   end
31 33
 end
32 34
 

0 notes on commit 03c919b

Please sign in to comment.
Something went wrong with that request. Please try again.