SOURCES: rpmde.conf (NEW), rpmde-mod_perl.patch (NEW), rpmde-confi...

glen glen at pld-linux.org
Sun Oct 30 20:43:14 CET 2005


Author: glen                         Date: Sun Oct 30 19:43:14 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- new

---- Files affected:
SOURCES:
   rpmde.conf (NONE -> 1.1)  (NEW), rpmde-mod_perl.patch (NONE -> 1.1)  (NEW), rpmde-config.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/rpmde.conf
diff -u /dev/null SOURCES/rpmde.conf:1.1
--- /dev/null	Sun Oct 30 20:43:14 2005
+++ SOURCES/rpmde.conf	Sun Oct 30 20:43:09 2005
@@ -0,0 +1,24 @@
+# $Id$
+
+<VirtualHost *>
+    ServerName rpmde
+    DocumentRoot /usr/share/rpmde
+    <Location />
+        SetHandler perl-script
+        PerlResponseHandler Kaizen::RPMDE
+    </Location>
+    <Location /images>
+        SetHandler none
+    </Location>
+    <Location /css>
+        SetHandler none
+     </Location>
+    <Location /js>
+        SetHandler none
+    </Location>
+    <Location /rpm>
+        SetHandler none
+    </Location>
+</VirtualHost>
+
+# vim: filetype=apache ts=4 sw=4 et

================================================================
Index: SOURCES/rpmde-mod_perl.patch
diff -u /dev/null SOURCES/rpmde-mod_perl.patch:1.1
--- /dev/null	Sun Oct 30 20:43:14 2005
+++ SOURCES/rpmde-mod_perl.patch	Sun Oct 30 20:43:09 2005
@@ -0,0 +1,15 @@
+--- ./rpmde-1.0/modules/Kaizen/RPMDE.pm~	2005-10-06 03:13:51.000000000 +0300
++++ ./rpmde-1.0/modules/Kaizen/RPMDE.pm	2005-10-30 20:52:19.000000000 +0200
+@@ -37,9 +37,9 @@
+ use strict;
+ use warnings;
+ 
+-use Apache::RequestRec();
+-use Apache::RequestIO();
+-use Apache::Const -compile => qw(OK);
++use Apache2::RequestRec();
++use Apache2::RequestIO();
++use Apache2::Const -compile => qw(OK);
+ use APR::Const -compile => ':common';
+ 
+ use HTML::Template;

================================================================
Index: SOURCES/rpmde-config.patch
diff -u /dev/null SOURCES/rpmde-config.patch:1.1
--- /dev/null	Sun Oct 30 20:43:14 2005
+++ SOURCES/rpmde-config.patch	Sun Oct 30 20:43:09 2005
@@ -0,0 +1,34 @@
+--- ./rpmde-1.0/modules/Kaizen/RPMDE.pm~	2005-10-30 21:23:57.000000000 +0200
++++ ./rpmde-1.0/modules/Kaizen/RPMDE.pm	2005-10-30 21:30:25.038260894 +0200
+@@ -22,7 +22,7 @@
+ #####################################################
+ # CONFIG FILE LOCATION
+ #####################################################
+-my $config_file = "/etc/rpmde.conf";
++my $config_file = "/etc/rpmde/rpmde.conf";
+ 
+ 
+ 
+--- /dev/null	2005-10-23 21:36:52.990241368 +0300
++++ rpmde-1.0/rpmde-1.0/etc/database.pm	2005-10-30 21:35:57.385126374 +0200
+@@ -0,0 +1,5 @@
++$database = 'DATABASENAME';
++$username = 'USERNAME';
++$password = 'PASSWORD';
++
++1;
+--- ./common-modules-1.0/Kaizen/RPMDE/DBI.pm	2005-09-30 03:21:30.000000000 +0300
++++ /tmp/DBI.pm	2005-10-30 21:39:19.000000000 +0200
+@@ -27,7 +27,9 @@
+ 
+ 
+ #setup the database connection
+-__PACKAGE__->set_db('Main', 'dbi:mysql:DATABASENAME', 'USERNAME', 'PASSWORD');
++our ($database, $username, $password);
++do '/etc/rpmde/database.pm';
++__PACKAGE__->set_db('Main', "dbi:mysql:$database", $username, $password);
+ 
+ 
+-1;
+\ No newline at end of file
++1;
================================================================



More information about the pld-cvs-commit mailing list