Permalink
Browse files

Pulled in major updates

  • Loading branch information...
1 parent c75342d commit 2a287ac173a429c0a3601a08bf29228ff90da729 @rudyl313 committed May 16, 2012
Showing with 136 additions and 6,728 deletions.
  1. +8 −7 Vagrantfile
  2. +0 −78 cookbooks/apache2/README.rdoc
  3. +0 −77 cookbooks/apache2/attributes/default.rb
  4. +0 −25 cookbooks/apache2/definitions/apache_conf.rb
  5. +0 −43 cookbooks/apache2/definitions/apache_module.rb
  6. +0 −40 cookbooks/apache2/definitions/apache_site.rb
  7. +0 −49 cookbooks/apache2/definitions/web_app.rb
  8. +0 −41 cookbooks/apache2/files/default/apache2_module_conf_generate.pl
  9. +0 −497 cookbooks/apache2/metadata.json
  10. +0 −197 cookbooks/apache2/metadata.rb
  11. +0 −191 cookbooks/apache2/recipes/default.rb
  12. +0 −33 cookbooks/apache2/recipes/god_monitor.rb
  13. +0 −22 cookbooks/apache2/recipes/mod_alias.rb
  14. +0 −20 cookbooks/apache2/recipes/mod_auth_basic.rb
  15. +0 −20 cookbooks/apache2/recipes/mod_auth_digest.rb
  16. +0 −59 cookbooks/apache2/recipes/mod_auth_openid.rb
  17. +0 −20 cookbooks/apache2/recipes/mod_authn_file.rb
  18. +0 −20 cookbooks/apache2/recipes/mod_authnz_ldap.rb
  19. +0 −20 cookbooks/apache2/recipes/mod_authz_default.rb
  20. +0 −20 cookbooks/apache2/recipes/mod_authz_groupfile.rb
  21. +0 −20 cookbooks/apache2/recipes/mod_authz_host.rb
  22. +0 −20 cookbooks/apache2/recipes/mod_authz_user.rb
  23. +0 −22 cookbooks/apache2/recipes/mod_autoindex.rb
  24. +0 −20 cookbooks/apache2/recipes/mod_cgi.rb
  25. +0 −20 cookbooks/apache2/recipes/mod_dav.rb
  26. +0 −22 cookbooks/apache2/recipes/mod_dav_svn.rb
  27. +0 −22 cookbooks/apache2/recipes/mod_deflate.rb
  28. +0 −22 cookbooks/apache2/recipes/mod_dir.rb
  29. +0 −20 cookbooks/apache2/recipes/mod_env.rb
  30. +0 −20 cookbooks/apache2/recipes/mod_expires.rb
  31. +0 −46 cookbooks/apache2/recipes/mod_fcgid.rb
  32. +0 −20 cookbooks/apache2/recipes/mod_headers.rb
  33. +0 −20 cookbooks/apache2/recipes/mod_ldap.rb
  34. +0 −24 cookbooks/apache2/recipes/mod_log_config.rb
  35. +0 −22 cookbooks/apache2/recipes/mod_mime.rb
  36. +0 −22 cookbooks/apache2/recipes/mod_negotiation.rb
  37. +0 −32 cookbooks/apache2/recipes/mod_php5.rb
  38. +0 −22 cookbooks/apache2/recipes/mod_proxy.rb
  39. +0 −20 cookbooks/apache2/recipes/mod_proxy_ajp.rb
  40. +0 −20 cookbooks/apache2/recipes/mod_proxy_balancer.rb
  41. +0 −20 cookbooks/apache2/recipes/mod_proxy_connect.rb
  42. +0 −20 cookbooks/apache2/recipes/mod_proxy_http.rb
  43. +0 −22 cookbooks/apache2/recipes/mod_python.rb
  44. +0 −20 cookbooks/apache2/recipes/mod_rewrite.rb
  45. +0 −22 cookbooks/apache2/recipes/mod_setenvif.rb
  46. +0 −42 cookbooks/apache2/recipes/mod_ssl.rb
  47. +0 −22 cookbooks/apache2/recipes/mod_status.rb
  48. +0 −22 cookbooks/apache2/templates/default/a2dismod.erb
  49. +0 −29 cookbooks/apache2/templates/default/a2dissite.erb
  50. +0 −37 cookbooks/apache2/templates/default/a2enmod.erb
  51. +0 −38 cookbooks/apache2/templates/default/a2ensite.erb
  52. +0 −230 cookbooks/apache2/templates/default/apache2.conf.erb
  53. +0 −19 cookbooks/apache2/templates/default/apache2.god.erb
  54. +0 −6 cookbooks/apache2/templates/default/charset.erb
  55. +0 −57 cookbooks/apache2/templates/default/default-site.erb
  56. +0 −12 cookbooks/apache2/templates/default/mod_auth_openid.rb.erb
  57. +0 −2 cookbooks/apache2/templates/default/mods/README
  58. +0 −24 cookbooks/apache2/templates/default/mods/alias.conf.erb
  59. +0 −1 cookbooks/apache2/templates/default/mods/authopenid.load.erb
  60. +0 −101 cookbooks/apache2/templates/default/mods/autoindex.conf.erb
  61. +0 −16 cookbooks/apache2/templates/default/mods/deflate.conf.erb
  62. +0 −5 cookbooks/apache2/templates/default/mods/dir.conf.erb
  63. +0 −10 cookbooks/apache2/templates/default/mods/fcgid.conf.erb
  64. +0 −191 cookbooks/apache2/templates/default/mods/mime.conf.erb
  65. +0 −18 cookbooks/apache2/templates/default/mods/negotiation.conf.erb
  66. +0 −19 cookbooks/apache2/templates/default/mods/proxy.conf.erb
  67. +0 −28 cookbooks/apache2/templates/default/mods/setenvif.conf.erb
  68. +0 −72 cookbooks/apache2/templates/default/mods/ssl.conf.erb
  69. +0 −16 cookbooks/apache2/templates/default/mods/status.conf.erb
  70. +0 −2 cookbooks/apache2/templates/default/port_apache.erb
  71. +0 −6 cookbooks/apache2/templates/default/ports.conf.erb
  72. +0 −50 cookbooks/apache2/templates/default/security.erb
  73. +0 −43 cookbooks/apache2/templates/default/web_app.conf.erb
  74. +3 −4 cookbooks/application/recipes/default.rb
  75. +0 −95 cookbooks/mysql/README.rdoc
  76. +0 −42 cookbooks/mysql/attributes/server.rb
  77. +0 −15 cookbooks/mysql/libraries/database.rb
  78. +0 −214 cookbooks/mysql/metadata.json
  79. +0 −73 cookbooks/mysql/metadata.rb
  80. +0 −13 cookbooks/mysql/providers/database.rb
  81. +0 −50 cookbooks/mysql/recipes/client.rb
  82. +4 −19 cookbooks/mysql/recipes/default.rb
  83. +0 −101 cookbooks/mysql/recipes/server.rb
  84. +0 −49 cookbooks/mysql/recipes/server_ec2.rb
  85. +0 −5 cookbooks/mysql/resources/database.rb
  86. +0 −12 cookbooks/mysql/templates/centos/my.cnf.erb
  87. +0 −11 cookbooks/mysql/templates/default/debian.cnf.erb
  88. +0 −12 cookbooks/mysql/templates/default/grants.sql.erb
  89. +0 −163 cookbooks/mysql/templates/default/my.cnf.erb
  90. +0 −10 cookbooks/mysql/templates/default/mysql-server.seed.erb
  91. +0 −3 cookbooks/mysql/templates/default/port_mysql.erb
  92. +0 −12 cookbooks/mysql/templates/redhat/my.cnf.erb
  93. +0 −158 cookbooks/mysql/templates/ubuntu-10.04/my.cnf.erb
  94. +0 −156 cookbooks/mysql/templates/ubuntu-8.04/my.cnf.erb
  95. +0 −158 cookbooks/mysql/templates/ubuntu-9.10/my.cnf.erb
  96. +0 −2 cookbooks/nfs_user/attributes/nfs_user.rb
  97. +0 −29 cookbooks/nfs_user/recipes/default.rb
  98. +0 −33 cookbooks/openssl/README.rdoc
  99. +0 −37 cookbooks/openssl/libraries/secure_password.rb
  100. +0 −29 cookbooks/openssl/metadata.json
  101. +0 −6 cookbooks/openssl/metadata.rb
  102. +0 −19 cookbooks/openssl/recipes/default.rb
  103. +0 −3 cookbooks/packages/attributes/default.rb
  104. +0 −9 cookbooks/packages/libraries/packages.rb
  105. +0 −62 cookbooks/packages/metadata.json
  106. +0 −20 cookbooks/packages/metadata.rb
  107. 0 cookbooks/packages/recipes/default.rb
  108. +0 −76 cookbooks/passenger_apache2/README.md
  109. +0 −4 cookbooks/passenger_apache2/attributes/default.rb
  110. +0 −37 cookbooks/passenger_apache2/metadata.json
  111. +0 −16 cookbooks/passenger_apache2/metadata.rb
  112. +0 −46 cookbooks/passenger_apache2/recipes/default.rb
  113. +0 −43 cookbooks/passenger_apache2/recipes/mod_rails.rb
  114. +0 −3 cookbooks/passenger_apache2/templates/default/passenger.conf.erb
  115. +0 −1 cookbooks/passenger_apache2/templates/default/passenger.load.erb
  116. +0 −32 cookbooks/passenger_apache2/templates/default/passenger_web_app.conf.erb
  117. +0 −33 cookbooks/passenger_apache2/templates/default/web_app.conf.erb
  118. +0 −49 cookbooks/postgresql/README.rdoc
  119. +0 −68 cookbooks/postgresql/attributes/default.rb
  120. +0 −51 cookbooks/postgresql/metadata.json
  121. +0 −15 cookbooks/postgresql/metadata.rb
  122. +0 −27 cookbooks/postgresql/recipes/client.rb
  123. +7 −19 cookbooks/postgresql/recipes/default.rb
  124. +0 −36 cookbooks/postgresql/recipes/server.rb
  125. +0 −51 cookbooks/postgresql/recipes/server_debian.rb
  126. +0 −84 cookbooks/postgresql/recipes/server_redhat.rb
  127. +0 −83 cookbooks/postgresql/templates/default/debian.pg_hba.conf.erb
  128. +0 −503 cookbooks/postgresql/templates/default/debian.postgresql.conf.erb
  129. +0 −74 cookbooks/postgresql/templates/default/redhat.pg_hba.conf.erb
  130. +0 −501 cookbooks/postgresql/templates/default/redhat.postgresql.conf.erb
  131. +5 −1 cookbooks/rails/attributes/default.rb
  132. +0 −12 cookbooks/rails/recipes/apache_passenger.rb
  133. +33 −0 cookbooks/rails/recipes/common.rb
  134. +6 −26 cookbooks/rails/recipes/default.rb
  135. +24 −29 cookbooks/rails/recipes/mysql.rb
  136. +23 −25 cookbooks/rails/recipes/postgresql.rb
  137. +0 −2 cookbooks/rails/templates/default/Gemfile.erb
  138. +3 −0 cookbooks/ruby/attributes/default.rb
  139. +20 −0 cookbooks/ruby/recipes/default.rb
View
@@ -1,19 +1,20 @@
Vagrant::Config.run do |config|
- config.vm.box = "lucid64ruby19"
- config.vm.box_url = "http://dl.dropbox.com/u/8443957/lucid64ruby19.box"
+ config.vm.box = "precise64"
+ config.vm.box_url = "http://files.vagrantup.com/precise64.box"
- config.vm.network("192.168.34.10")
+ config.vm.network :hostonly, "192.168.34.11"
config.vm.customize do |vm|
- vm.name = "App Name"
+ vm.name = "Quant Trainer"
vm.memory_size = 1024
end
- config.vm.share_folder("v-root", "/vagrant", ".", :nfs => true)
-
config.vm.provision :chef_solo, :run_list => ["recipe[application]"] do |chef|
chef.json.merge!({
- :rails => { :app_name => "app_name" }
+ :ruby => { :version => "1.9.3" },
+ :rails => { :app_name => "quant_trainer",
+ :version => "3.2.3",
+ :db_type => "postgresql" }
})
end
end
@@ -1,78 +0,0 @@
-= DESCRIPTION:
-
-Complete Debian/Ubuntu style Apache2 configuration.
-
-= REQUIREMENTS:
-
-Debian or Ubuntu preferred.
-
-Red Hat/CentOS and Fedora can be used but will be converted to a Debian/Ubuntu style Apache as it's far easier to manage with chef.
-
-= ATTRIBUTES:
-
-The file attributes/apache.rb contains the following attribute types:
-
-* platform specific locations and settings.
-* general settings
-* prefork attributes
-* worker attributes
-
-General settings and prefork/worker attributes are tunable.
-
-= USAGE:
-
-Include the apache2 recipe to install Apache2 and get 'sane' default settings. Configuration is modularized through Apache vhost sites a la Debian style configuration.
-
-For Red Hat, CentOS and Fedora you should first disable selinux as it's not supported (yet), then remove the stock httpd and all it's dependencies prior to attempting to use this recipe. Many packages in these distributions drop conflicting configs into conf.d, all of which haven't been accounted for yet. Starting from scratch will also make it far easier to debug.
-
-== Defines:
-
-* apache_module: sets up an Apache module.
-* apache_conf: sets up a config file for an apache module.
-* apache_site: sets up a vhost site. The conf file must be available.
-* web_app: copies the template for a web app and enables it as a site via apache_site.
-
-== Web Apps:
-
-Various applications that can be set up with Apache as the front end, such as PHP, Django, Rails and others can use the web_app define to set up the template and the Apache site. The define is kind of dumb, so the template needs have the application implementation settings, since we don't know what your app is or what is needed from Apache.
-
-We only prototype one parameter for the web_app define, "template". This is used to specify the name of the template to use in the current cookbook. When you use web_app, you can set up any parameters you want to use in your template. They will get passed to the template through the params hash. For example, the sample web_app.conf.erb template in this cookbook makes use of these.
-
-* docroot
-* server_name
-* server_aliases
-
-These are available as @params[:docroot], @params[:server_name], @params[:server_aliases] within the template.
-
-If 'cookbook' and 'template' are not specified, the current cookbook's templates/default/web_app.conf.erb will be used. If this template is not suitable for your application, copy it to your cookbook and customize as needed.
-
-== God Monitor:
-
-There's a new recipe, apache2::god_monitor. You will need to make sure to include the 'god' recipe before using the apache2::god_monitor recipe in your cookbook.
-
-== OpenID Auth
-
-Installs the mod_auth_openid module from source. Specify an array of OpenIDs that are allowed to authenticate with the attribute apache[:allowed_openids]. Use the following in a vhost to protect with OpenID authentication:
-
- AuthOpenIDEnabled On
- AuthOpenIDDBLocation /var/cache/apache2/mod_auth_openid.db
- AuthOpenIDUserProgram /usr/local/bin/mod_auth_openid.rb
-
-Change the DBLocation as appropriate for your platform. You'll need to change the file in the recipe to match. The UserProgram is optional if you don't want to limit access by certain OpenIDs.
-
-= LICENSE & 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.
@@ -1,77 +0,0 @@
-#
-# Cookbook Name:: apache2
-# Attributes:: apache
-#
-# 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.
-#
-
-# Where the various parts of apache are
-case platform
-when "redhat","centos","fedora","suse"
- set[:apache][:dir] = "/etc/httpd"
- set[:apache][:log_dir] = "/var/log/httpd"
- set[:apache][:user] = "apache"
- set[:apache][:binary] = "/usr/sbin/httpd"
- set[:apache][:icondir] = "/var/www/icons/"
-when "debian","ubuntu"
- set[:apache][:dir] = "/etc/apache2"
- set[:apache][:log_dir] = "/var/log/apache2"
- set[:apache][:user] = "www-data"
- set[:apache][:binary] = "/usr/sbin/apache2"
- set[:apache][:icondir] = "/usr/share/apache2/icons"
-else
- set[:apache][:dir] = "/etc/apache2"
- set[:apache][:log_dir] = "/var/log/apache2"
- set[:apache][:user] = "www-data"
- set[:apache][:binary] = "/usr/sbin/apache2"
- set[:apache][:icondir] = "/usr/share/apache2/icons"
-end
-
-###
-# These settings need the unless, since we want them to be tunable,
-# and we don't want to override the tunings.
-###
-
-# General settings
-set_unless[:apache][:listen_ports] = [ "80","443" ]
-set_unless[:apache][:contact] = "ops@example.com"
-set_unless[:apache][:timeout] = 300
-set_unless[:apache][:keepalive] = "On"
-set_unless[:apache][:keepaliverequests] = 100
-set_unless[:apache][:keepalivetimeout] = 5
-
-# Security
-set_unless[:apache][:servertokens] = "Prod"
-set_unless[:apache][:serversignature] = "On"
-set_unless[:apache][:traceenable] = "On"
-
-# mod_auth_openids
-set_unless[:apache][:allowed_openids] = Array.new
-
-# Prefork Attributes
-set_unless[:apache][:prefork][:startservers] = 16
-set_unless[:apache][:prefork][:minspareservers] = 16
-set_unless[:apache][:prefork][:maxspareservers] = 32
-set_unless[:apache][:prefork][:serverlimit] = 400
-set_unless[:apache][:prefork][:maxclients] = 400
-set_unless[:apache][:prefork][:maxrequestsperchild] = 10000
-
-# Worker Attributes
-set_unless[:apache][:worker][:startservers] = 4
-set_unless[:apache][:worker][:maxclients] = 1024
-set_unless[:apache][:worker][:minsparethreads] = 64
-set_unless[:apache][:worker][:maxsparethreads] = 192
-set_unless[:apache][:worker][:threadsperchild] = 64
-set_unless[:apache][:worker][:maxrequestsperchild] = 0
@@ -1,25 +0,0 @@
-#
-# Cookbook Name:: apache2
-# Definition:: apache_conf
-#
-# 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.
-#
-
-define :apache_conf do
- template "#{node[:apache][:dir]}/mods-available/#{params[:name]}.conf" do
- source "mods/#{params[:name]}.conf.erb"
- notifies :restart, resources(:service => "apache2")
- end
-end
@@ -1,43 +0,0 @@
-#
-# Cookbook Name:: apache2
-# Definition:: apache_module
-#
-# 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.
-#
-
-define :apache_module, :enable => true, :conf => false do
- include_recipe "apache2"
-
- if params[:conf]
- apache_conf params[:name]
- end
-
- if params[:enable]
- execute "a2enmod #{params[:name]}" do
- command "/usr/sbin/a2enmod #{params[:name]}"
- notifies :restart, resources(:service => "apache2")
- not_if do (File.symlink?("#{node[:apache][:dir]}/mods-enabled/#{params[:name]}.load") and
- ((File.exists?("#{node[:apache][:dir]}/mods-available/#{params[:name]}.conf"))?
- (File.symlink?("#{node[:apache][:dir]}/mods-enabled/#{params[:name]}.conf")):(true)))
- end
- end
- else
- execute "a2dismod #{params[:name]}" do
- command "/usr/sbin/a2dismod #{params[:name]}"
- notifies :restart, resources(:service => "apache2")
- only_if do File.symlink?("#{node[:apache][:dir]}/mods-enabled/#{params[:name]}.load") end
- end
- end
-end
@@ -1,40 +0,0 @@
-#
-# Cookbook Name:: apache2
-# Definition:: apache_site
-#
-# 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.
-#
-
-define :apache_site, :enable => true do
- include_recipe "apache2"
-
- if params[:enable]
- execute "a2ensite #{params[:name]}" do
- command "/usr/sbin/a2ensite #{params[:name]}"
- notifies :restart, resources(:service => "apache2")
- not_if do
- File.symlink?("#{node[:apache][:dir]}/sites-enabled/#{params[:name]}") or
- File.symlink?("#{node[:apache][:dir]}/sites-enabled/000-#{params[:name]}")
- end
- only_if do File.exists?("#{node[:apache][:dir]}/sites-available/#{params[:name]}") end
- end
- else
- execute "a2dissite #{params[:name]}" do
- command "/usr/sbin/a2dissite #{params[:name]}"
- notifies :restart, resources(:service => "apache2")
- only_if do File.symlink?("#{node[:apache][:dir]}/sites-enabled/#{params[:name]}") end
- end
- end
-end
@@ -1,49 +0,0 @@
-#
-# Cookbook Name:: apache2
-# Definition:: web_app
-#
-# 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.
-#
-
-define :web_app, :template => "web_app.conf.erb" do
-
- application_name = params[:name]
-
- include_recipe "apache2"
- include_recipe "apache2::mod_rewrite"
- include_recipe "apache2::mod_deflate"
- include_recipe "apache2::mod_headers"
-
- template "#{node[:apache][:dir]}/sites-available/#{application_name}.conf" do
- source params[:template]
- owner "root"
- group "root"
- mode 0644
- if params[:cookbook]
- cookbook params[:cookbook]
- end
- variables(
- :application_name => application_name,
- :params => params
- )
- if File.exists?("#{node[:apache][:dir]}/sites-enabled/#{application_name}.conf")
- notifies :reload, resources(:service => "apache2"), :delayed
- end
- end
-
- apache_site "#{params[:name]}.conf" do
- enable enable_setting
- end
-end
@@ -1,41 +0,0 @@
-#!/usr/bin/perl
-
-=begin
-
-Generates Ubuntu style module.load files.
-
-./apache2_module_conf_generate.pl /usr/lib64/httpd/modules /etc/httpd/mods-available
-
-ARGV[0] is the apache modules directory, ARGV[1] is where you want 'em.
-
-=cut
-
-use File::Find;
-
-use strict;
-use warnings;
-
-die "Must have '/path/to/modules' and '/path/to/modules.load'"
- unless $ARGV[0] && $ARGV[1];
-
-find(
- {
- wanted => sub {
- return 1 if $File::Find::name !~ /\.so$/;
- my $modfile = $_;
- $modfile =~ /(lib|mod_)(.+)\.so$/;
- my $modname = $2;
- my $filename = "$ARGV[1]/$modname.load";
- unless ( -f $filename ) {
- open( FILE, ">", $filename ) or die "Cannot open $filename";
- print FILE "LoadModule " . $modname . "_module $File::Find::name\n";
- close(FILE);
- }
- },
- follow => 1,
- },
- $ARGV[0]
-);
-
-exit 0;
-
Oops, something went wrong.

0 comments on commit 2a287ac

Please sign in to comment.