Permalink
Browse files

support archlinux in git cookbook

  • Loading branch information...
1 parent 8fb388c commit cee056c48488825ff1b2831ef68961ecb0ce20e5 @jtimberman jtimberman committed Sep 7, 2010
Showing with 14 additions and 7 deletions.
  1. +4 −1 git/metadata.json
  2. +2 −2 git/metadata.rb
  3. +0 −2 git/recipes/default.rb
  4. +8 −2 git/recipes/server.rb
View
@@ -11,6 +11,9 @@
],
"debian": [
+ ],
+ "arch": [
+
]
},
"dependencies": {
@@ -36,5 +39,5 @@
"git": "Installs git",
"git::server": "Sets up a runit_service for git daemon"
},
- "version": "0.8.1"
+ "version": "0.9.0"
}
View
@@ -3,11 +3,11 @@
license "Apache 2.0"
description "Installs git and/or sets up a Git server daemon"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
-version "0.8.1"
+version "0.9.0"
recipe "git", "Installs git"
recipe "git::server", "Sets up a runit_service for git daemon"
-%w{ ubuntu debian }.each do |os|
+%w{ ubuntu debian arch}.each do |os|
supports os
end
View
@@ -22,5 +22,3 @@
else
package "git"
end
-
-package "git-email"
View
@@ -17,12 +17,18 @@
# limitations under the License.
include_recipe "git"
-include_recipe "runit"
directory "/srv/git" do
owner "root"
group "root"
mode 0755
end
-runit_service "git-daemon"
+case node[:platform]
+when "debian", "ubuntu"
+ include_recipe "runit"
+ runit_service "git-daemon"
+else
+ log "Platform requires setting up a git daemon service script."
+ log "Hint: /usr/bin/git daemon --export-all --user=nobody --group=daemon --base-path=/srv/git"
+end

0 comments on commit cee056c

Please sign in to comment.