Skip to content

Commit

Permalink
Add additional chef dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
meineerde committed Mar 8, 2011
1 parent 8aa4332 commit 16c4dea
Show file tree
Hide file tree
Showing 13 changed files with 391 additions and 0 deletions.
23 changes: 23 additions & 0 deletions build-essential/README.md
@@ -0,0 +1,23 @@
DESCRIPTION
===========

Installs packages required for compiling C software from source.

LICENSE AND AUTHOR
==================

Author:: Joshua Timberman (<joshua@opscode.com>)

Copyright 2009, 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.
45 changes: 45 additions & 0 deletions build-essential/metadata.json
@@ -0,0 +1,45 @@
{
"suggestions": {
},
"dependencies": {
},
"long_description": "",
"conflicting": {
},
"providing": {
},
"license": "Apache 2.0",
"maintainer": "Opscode, Inc.",
"version": "0.7.1",
"attributes": {
},
"replacing": {
},
"maintainer_email": "cookbooks@opscode.com",
"groupings": {
},
"platforms": {
"debian": [

],
"centos": [

],
"fedora": [

],
"ubuntu": [

],
"redhat": [

]
},
"description": "Installs C compiler / build tools",
"name": "build-essential",
"recipes": {
"build-essential": "Installs C compiler and build tools on Linux"
},
"recommendations": {
}
}
10 changes: 10 additions & 0 deletions build-essential/metadata.rb
@@ -0,0 +1,10 @@
maintainer "Opscode, Inc."
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Installs C compiler / build tools"
version "0.7.1"
recipe "build-essential", "Installs C compiler and build tools on Linux"

%w{ fedora redhat centos ubuntu debian }.each do |os|
supports os
end
43 changes: 43 additions & 0 deletions build-essential/recipes/default.rb
@@ -0,0 +1,43 @@
#
# Cookbook Name:: build-essential
# Recipe:: default
#
# Copyright 2008-2009, 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.
#

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
end
end

package "autoconf" do
action :install
end

package "flex" do
action :install
end

package "bison" do
action :install
end
1 change: 1 addition & 0 deletions erlang/attributes/default.rb
@@ -0,0 +1 @@
default[:erlang][:gui_tools] = false
36 changes: 36 additions & 0 deletions erlang/metadata.json
@@ -0,0 +1,36 @@
{
"suggestions": {
},
"dependencies": {
},
"long_description": "",
"conflicting": {
},
"providing": {
},
"license": "Apache 2.0",
"maintainer": "Opscode, Inc.",
"version": "0.8.2",
"attributes": {
},
"replacing": {
},
"maintainer_email": "cookbooks@opscode.com",
"groupings": {
},
"platforms": {
"debian": [

],
"ubuntu": [

]
},
"description": "Installs erlang, optionally install GUI tools.",
"name": "erlang",
"recipes": {
"erlang": "Installs erlang"
},
"recommendations": {
}
}
11 changes: 11 additions & 0 deletions erlang/metadata.rb
@@ -0,0 +1,11 @@
maintainer "Opscode, Inc."
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Installs erlang, optionally install GUI tools."
version "0.8.2"

recipe "erlang", "Installs erlang"

%w{ ubuntu debian }.each do |os|
supports os
end
27 changes: 27 additions & 0 deletions erlang/recipes/default.rb
@@ -0,0 +1,27 @@
# Cookbook Name:: erlang
# Recipe:: default
# Author:: Joe Williams <joe@joetify.com>
#
# Copyright 2008-2009, Joe Williams
#
# 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.
#

case node[:platform]
when "debian", "ubuntu"
erlpkg = node[:erlang][:gui_tools] ? "erlang" : "erlang-nox"
package erlpkg
package "erlang-dev"
else
package "erlang"
end
35 changes: 35 additions & 0 deletions ucspi-tcp/README.md
@@ -0,0 +1,35 @@
Description
===========

Installs DJB's ucspi-tcp software.

Requirements
============

Should work on ArchLinux, Debian and Ubuntu. Source installation may work on Red Hat family distributions.

Requires build-essential cookbook.

Usage
=====

Include the ucspi-tcp recipe in the run list. The recipe will automatically detect the platform and attempt to install based on what should be available.

License and Author
==================

Author: Joshua Timberman (<joshua@opscode.com>)

Copyright 2010, 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.
37 changes: 37 additions & 0 deletions ucspi-tcp/attributes/default.rb
@@ -0,0 +1,37 @@
#
# Cookbook Name:: ucspi-tcp
# Attribute:: default
#
# Copyright 2010, 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.
#

case platform
when "ubuntu"
if platform_version.to_f >= 9.04
set[:ucspi][:bin_dir] = "/usr/bin"
else
set[:ucspi][:bin_dir] = "/usr/local/bin"
end
when "debian"
if platform_version.to_f >= 5.0
set[:ucspi][:bin_dir] = "/usr/bin"
else
set[:ucspi][:bin_dir] = "/usr/local/bin"
end
when "arch"
set[:ucspi][:bin_dir] = "/usr/bin"
else
set[:ucspi][:bin_dir] = "/usr/local/bin"
end
48 changes: 48 additions & 0 deletions ucspi-tcp/metadata.json
@@ -0,0 +1,48 @@
{
"suggestions": {
},
"dependencies": {
"build-essential": [

]
},
"long_description": "Description\n===========\n\nInstalls DJB's ucspi-tcp software.\n\nRequirements\n============\n\nShould work on ArchLinux, Debian and Ubuntu. Source installation may work on Red Hat family distributions.\n\nRequires build-essential cookbook.\n\nUsage\n=====\n\nInclude the ucspi-tcp recipe in the run list. The recipe will automatically detect the platform and attempt to install based on what should be available.\n\nLicense and Author\n==================\n\nAuthor: Joshua Timberman (<joshua@opscode.com>)\n\nCopyright 2010, Opscode, Inc.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n",
"conflicting": {
},
"providing": {
},
"license": "Apache 2.0",
"maintainer": "Opscode, Inc.",
"version": "1.0.0",
"attributes": {
},
"replacing": {
},
"maintainer_email": "cookbooks@opscode.com",
"groupings": {
},
"platforms": {
"rhel": [

],
"debian": [

],
"centos": [

],
"arch": [

],
"ubuntu": [

]
},
"description": "Installs ucspi-tcp",
"name": "ucspi-tcp",
"recipes": {
"ucspi-tcp": "Installs ucspi-tcp"
},
"recommendations": {
}
}
16 changes: 16 additions & 0 deletions ucspi-tcp/metadata.rb
@@ -0,0 +1,16 @@
maintainer "Opscode, Inc."
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Installs ucspi-tcp"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version "1.0.0"

recipe "ucspi-tcp", "Installs ucspi-tcp"

%w{ build-essential }.each do |cb|
depends cb
end

%w{ ubuntu debian centos rhel arch }.each do |os|
supports os
end

0 comments on commit 16c4dea

Please sign in to comment.