Permalink
Browse files

Import dotdeb version 0.1.1

  • Loading branch information...
1 parent ccbdacd commit 235f914f306d083345a94817329364754f55eba6 Jenkins CI committed May 8, 2012
View
2 cookbooks/dotdeb/files/default/dotdeb-php53.list
@@ -0,0 +1,2 @@
+deb http://php53.dotdeb.org stable all
+deb-src http://php53.dotdeb.org stable all
View
2 cookbooks/dotdeb/files/default/dotdeb.list
@@ -0,0 +1,2 @@
+deb http://packages.dotdeb.org stable all
+deb-src http://packages.dotdeb.org stable all
View
34 cookbooks/dotdeb/metadata.json
@@ -0,0 +1,34 @@
+{
+ "maintainer_email": "wik@rentasite.com.ua",
+ "recipes": {
+ "dotdeb": "main Dotdeb repository",
+ "dotdeb::php53": "php53 Dotdeb repository"
+ },
+ "groupings": {
+ },
+ "recommendations": {
+ },
+ "description": "Dotdeb repositories",
+ "attributes": {
+ },
+ "suggestions": {
+ },
+ "dependencies": {
+ },
+ "platforms": {
+ "debian": [
+
+ ]
+ },
+ "conflicting": {
+ },
+ "long_description": "",
+ "version": "0.1.1",
+ "providing": {
+ },
+ "name": "dotdeb",
+ "license": "Apache 2.0",
+ "maintainer": "Yevgeniy Viktorov",
+ "replacing": {
+ }
+ }
View
11 cookbooks/dotdeb/metadata.rb
@@ -0,0 +1,11 @@
+maintainer "Yevgeniy Viktorov"
+maintainer_email "wik@rentasite.com.ua"
+license "Apache 2.0"
+description "Dotdeb repositories"
+version "0.1.1"
+recipe "dotdeb", "main Dotdeb repository"
+recipe "dotdeb::php53", "php53 Dotdeb repository"
+
+%w{ debian }.each do |os|
+ supports os
+end
View
19 cookbooks/dotdeb/recipes/default.rb
@@ -0,0 +1,19 @@
+bash "dotdeb keys" do
+ code <<-EOH
+gpg --keyserver keys.gnupg.net --recv-key 89DF5277
+gpg -a --export 89DF5277 | apt-key add -
+EOH
+ action :nothing
+end
+
+execute "apt-get update" do
+ action :nothing
+end
+
+cookbook_file "/etc/apt/sources.list.d/dotdeb.list" do
+ source "dotdeb.list"
+ mode 0644
+ owner "root"
+ group "root"
+ notifies :run, resources(:bash => "dotdeb keys", :execute => "apt-get update"), :immediately
+end
View
9 cookbooks/dotdeb/recipes/php53.rb
@@ -0,0 +1,9 @@
+include_recipe "dotdeb"
+
+cookbook_file "/etc/apt/sources.list.d/dotdeb-php53.list" do
+ source "dotdeb-php53.list"
+ mode 0644
+ owner "root"
+ group "root"
+ notifies :run, resources(:execute => "apt-get update"), :immediately
+end

0 comments on commit 235f914

Please sign in to comment.