Permalink
Browse files

Import build-essential version 1.0.0

  • Loading branch information...
1 parent 99c015a commit 7575f6cba5e3cfc08bfaf06beac9ef44dad1f90d @schisamo schisamo committed May 3, 2011
@@ -0,0 +1,24 @@
+DESCRIPTION
+===========
+
+Installs packages required for compiling C software from source.
+
+LICENSE AND AUTHOR
+==================
+
+Author:: Joshua Timberman (<joshua@opscode.com>)
+Author:: Seth Chisamore (<schisamo@opscode.com>)
+
+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.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
@@ -1,46 +1,35 @@
{
+ "name": "build-essential",
+ "description": "Installs C compiler / build tools",
+ "long_description": "",
+ "maintainer": "Opscode, Inc.",
+ "maintainer_email": "cookbooks@opscode.com",
"license": "Apache 2.0",
- "recipes": {
- "build-essential": ""
- },
- "conflicting": {
-
+ "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": {
- "build-essential": [
-
- ]
},
- "long_description": "",
- "description": "Installs C compiler \/ build tools",
"replacing": {
-
- },
- "platforms": {
- "debian": [
-
- ],
- "centos": [
-
- ],
- "ubuntu": [
-
- ]
- },
- "version": "0.7.0",
- "maintainer": "Opscode, Inc.",
- "recommendations": {
-
},
- "name": "build-essential",
- "maintainer_email": "cookbooks@opscode.com",
"attributes": {
-
},
- "suggestions": {
-
- }
+ "groupings": {
+ },
+ "recipes": {
+ "build-essential": "Installs C compiler and build tools on Linux"
+ },
+ "version": "1.0.0"
}
@@ -2,8 +2,9 @@
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Installs C compiler / build tools"
-version "0.7"
+version "1.0.0"
+recipe "build-essential", "Installs C compiler and build tools on Linux"
-%w{ centos ubuntu debian }.each do |os|
+%w{ fedora redhat centos ubuntu debian }.each do |os|
supports os
end
@@ -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 7575f6c

Please sign in to comment.