Permalink
Browse files

Some CentOS/RHEL extra modules like php5 ship with lib as a prefix ra…

…ther than mod_, handle these.
  • Loading branch information...
1 parent 89c3ecc commit 2a54674e935e5b394c0cad99d4af46e4aba95213 @mdkent mdkent committed with jtimberman May 6, 2009
Showing with 3 additions and 3 deletions.
  1. +3 −3 apache2/files/default/apache2_module_conf_generate.pl
@@ -4,7 +4,7 @@
Generates Ubuntu style module.load files.
-./apache2_module_conf_genereate.pl /usr/lib64/httpd/modules /etc/httpd/mods-available
+./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.
@@ -23,8 +23,8 @@
wanted => sub {
return 1 if $File::Find::name !~ /\.so$/;
my $modfile = $_;
- $modfile =~ /mod_(.+)\.so$/;
- my $modname = $1;
+ $modfile =~ /(lib|mod_)(.+)\.so$/;
+ my $modname = $2;
my $filename = "$ARGV[1]/$modname.load";
unless ( -f $filename ) {
open( FILE, ">", $filename ) or die "Cannot open $filename";

0 comments on commit 2a54674

Please sign in to comment.