Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

adding image magick

  • Loading branch information...
commit 61f9f2d14695f96695787ebbf0b6f93bc5a09d34 1 parent 9de1184
@ivanacostarubio authored
View
BIN  cookbooks/imagemagick/.DS_Store
Binary file not shown
View
57 cookbooks/imagemagick/README.md
@@ -0,0 +1,57 @@
+Description
+===========
+
+Installs ImageMagick and optionally Rmagick (RubyGem).
+
+Requirements
+============
+
+## Platform:
+
+Tested on:
+
+* Ubuntu (10.04)
+* RHEL (6.1, 5.7)
+
+Usage
+=====
+
+To install just ImageMagick,
+
+ include_recipe "imagemagick"
+
+In your own recipe/cookbook. To install the development libraries,
+
+ include_recipe "imagemagick::devel"
+
+To install the RubyGem rmagick,
+
+ include_recipe "imagemagick::rmagick"
+
+Which will install imagemagick, as well as the development libraries for imagemagick (so rmagick can be built).
+
+Changes
+=======
+
+## v0.2.2:
+
+* Fixes COOK-662
+
+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.
View
37 cookbooks/imagemagick/metadata.json
@@ -0,0 +1,37 @@
+{
+ "name": "imagemagick",
+ "description": "Installs/Configures imagemagick",
+ "long_description": "Description\n===========\n\nInstalls ImageMagick and optionally Rmagick (RubyGem).\n\nRequirements\n============\n\n## Platform:\n\nTested on:\n\n* Ubuntu (10.04)\n* RHEL (6.1, 5.7)\n\nUsage\n=====\n\nTo install just ImageMagick,\n\n include_recipe \"imagemagick\"\n\nIn your own recipe/cookbook. To install the development libraries,\n\n include_recipe \"imagemagick::devel\"\n\nTo install the RubyGem rmagick,\n\n include_recipe \"imagemagick::rmagick\"\n\nWhich will install imagemagick, as well as the development libraries for imagemagick (so rmagick can be built).\n\nChanges\n=======\n\n## v0.2.2:\n\n* Fixes COOK-662\n\nLicense and Author\n==================\n\nAuthor:: Joshua Timberman (<joshua@opscode.com>)\n\nCopyright:: 2009, 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",
+ "maintainer": "Opscode, Inc.",
+ "maintainer_email": "cookbooks@opscode.com",
+ "license": "Apache 2.0",
+ "platforms": {
+ "fedora": ">= 0.0.0",
+ "centos": ">= 0.0.0",
+ "rhel": ">= 0.0.0",
+ "ubuntu": ">= 0.0.0",
+ "debian": ">= 0.0.0"
+ },
+ "dependencies": {
+ },
+ "recommendations": {
+ },
+ "suggestions": {
+ },
+ "conflicting": {
+ },
+ "providing": {
+ },
+ "replacing": {
+ },
+ "attributes": {
+ },
+ "groupings": {
+ },
+ "recipes": {
+ "imagemagick": "Installs imagemagick package",
+ "imagemagick::devel": "Installs imagemagick development libraries",
+ "imagemagick::rmagick": "Installs rmagick gem"
+ },
+ "version": "0.2.2"
+}
View
14 cookbooks/imagemagick/metadata.rb
@@ -0,0 +1,14 @@
+maintainer "Opscode, Inc."
+maintainer_email "cookbooks@opscode.com"
+license "Apache 2.0"
+description "Installs/Configures imagemagick"
+long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
+version "0.2.2"
+
+recipe "imagemagick", "Installs imagemagick package"
+recipe "imagemagick::devel", "Installs imagemagick development libraries"
+recipe "imagemagick::rmagick", "Installs rmagick gem"
+
+%w{fedora centos rhel ubuntu debian}.each do |os|
+ supports os
+end
View
25 cookbooks/imagemagick/recipes/default.rb
@@ -0,0 +1,25 @@
+#
+# Cookbook Name:: imagemagick
+# Recipe:: default
+#
+# 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.
+#
+
+case node[:platform]
+when "redhat", "centos", "fedora"
+ package "ImageMagick"
+when "debian", "ubuntu"
+ package "imagemagick"
+end
View
32 cookbooks/imagemagick/recipes/devel.rb
@@ -0,0 +1,32 @@
+#
+# Cookbook Name:: imagemagick
+# Recipe:: default
+#
+# 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.
+#
+
+include_recipe "imagemagick"
+
+dev_pkg = value_for_platform(
+ ["redhat", "centos", "fedora"] => { "default" => "ImageMagick-devel" },
+ "debian" => { "default" => "libmagickwand-dev" },
+ "ubuntu" => {
+ "8.04" => "libmagick9-dev",
+ "8.10" => "libmagick9-dev",
+ "default" => "libmagickwand-dev"
+ }
+)
+
+package dev_pkg
View
22 cookbooks/imagemagick/recipes/rmagick.rb
@@ -0,0 +1,22 @@
+#
+# Cookbook Name:: imagemagick
+# Recipe:: rmagick
+#
+# 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.
+#
+include_recipe "imagemagick"
+include_recipe "imagemagick::devel"
+
+gem_package "rmagick"
View
1  cookbooks/main/recipes/default.rb
@@ -1,4 +1,5 @@
require_recipe "mongodb"
+require_recipe 'imagemagick'
#execute "testing" do
# command %Q{
Please sign in to comment.
Something went wrong with that request. Please try again.