long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
version "1.0.0"
depends "networking"
+depends "xinetd"
depends "apache"
attribute "git",
#
include_recipe "networking"
+include_recipe "xinetd"
git_directory = node[:git][:directory]
group "root"
mode 0755
end
+
+template "/etc/xinetd.d/git" do
+ source "xinetd.erb"
+ owner "root"
+ group "root"
+ mode 0644
+ notifies :reload, resources(:service => "xinetd")
+end
--- /dev/null
+# DO NOT EDIT - This file is being maintained by Chef
+
+service git
+{
+ disable = no
+ socket_type = stream
+ wait = no
+ user = nobody
+ server = /usr/lib/git-core/git-daemon
+ server_args = --base-path=<%= node[:git][:directory] %> --export-all --syslog --inetd --verbose
+ log_on_failure += USERID
+ flags = ipv6
+}