]> git.pld-linux.org Git - packages/apache1.git/commitdiff
- updated db4 patch: old content was obsolete, now it adds db5.0 support
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 9 Feb 2011 16:59:43 +0000 (16:59 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache1-db4.patch -> 1.2
    apache1.spec -> 1.217

apache1-db4.patch

index 5740143f9baff39cbcf2dfc4a920b105c6810a0e..cd9b242eee2048b66f234c83578da0a2374e20f4 100644 (file)
@@ -1,24 +1,20 @@
---- apache_1.3.27/src/modules/standard/mod_auth_db.c.orig      Fri Feb 14 23:27:47 2003
-+++ apache_1.3.27/src/modules/standard/mod_auth_db.c   Fri Feb 14 23:32:14 2003
-@@ -107,6 +107,9 @@
+--- apache_1.3.42/src/modules/standard/mod_auth_db.c.orig      2011-02-09 16:58:54.748693904 +0100
++++ apache_1.3.42/src/modules/standard/mod_auth_db.c   2011-02-09 17:34:00.304686361 +0100
+@@ -63,7 +63,7 @@
+ #if (DB_VERSION_MAJOR == 3)
+ #define DB3
  #endif
- #if (DB_VERSION_MAJOR == 4)
+-#if (DB_VERSION_MAJOR == 4)
++#if (DB_VERSION_MAJOR == 4) || (DB_VERSION_MAJOR == 5)
  #define DB4
-+#if (DB_VERSION_MINOR >= 1)
-+#define DB4_1
-+#endif
  #endif
  #endif
+@@ -130,7 +130,7 @@
  
-@@ -170,7 +173,10 @@
-     q.data = user;
-     q.size = strlen(q.data);
--#if defined(DB3) || defined(DB4)
-+#if defined(DB4_1)
-+    if (   db_create(&f, NULL, 0) != 0
-+      || f->open(f, NULL, auth_dbpwfile, NULL, DB_HASH, DB_RDONLY, 0664) != 0) {
-+#elif defined(DB3) || defined(DB4)
+ #if defined(DB3) || defined(DB4)
      if (   db_create(&f, NULL, 0) != 0 
+-#if DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0
++#if (DB_VERSION_MAJOR > 4) || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0)
+         || f->open(f, NULL, auth_dbpwfile, NULL, DB_HASH, DB_RDONLY, 0664) != 0) {
+ #else
          || f->open(f, auth_dbpwfile, NULL, DB_HASH, DB_RDONLY, 0664) != 0) {
- #elif defined(DB2)
This page took 0.042933 seconds and 4 git commands to generate.