summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorkristerw <kristerw>2004-07-19 00:08:41 +0000
committerkristerw <kristerw>2004-07-19 00:08:41 +0000
commit317d974fde71bbfb14befc58be55fdb92c9eb1d8 (patch)
treeeb92ed0ba15dd6e1e6cbc1248e8d6b1ad8ef0961 /www
parent982d6771f91cc26486973e21ec64f9a868800273 (diff)
downloadpkgsrc-317d974fde71bbfb14befc58be55fdb92c9eb1d8.tar.gz
Fix a case of invalid use of preprocessing directives within macro
args that breaks compilation whith gcc 2.95.
Diffstat (limited to 'www')
-rw-r--r--www/ap-auth-mysql/distinfo4
-rw-r--r--www/ap-auth-mysql/patches/patch-ad49
2 files changed, 45 insertions, 8 deletions
diff --git a/www/ap-auth-mysql/distinfo b/www/ap-auth-mysql/distinfo
index edf412c3e93..a4ebd240837 100644
--- a/www/ap-auth-mysql/distinfo
+++ b/www/ap-auth-mysql/distinfo
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.1.1.1 2004/07/16 11:28:19 jdolecek Exp $
+$NetBSD: distinfo,v 1.2 2004/07/19 00:08:41 kristerw Exp $
SHA1 (libapache-mod-auth-mysql_4.3.1.tar.gz) = c5563028ed6574fd087944ac0507009dfc14b749
Size (libapache-mod-auth-mysql_4.3.1.tar.gz) = 56247 bytes
SHA1 (patch-aa) = c18f857317b5838c955ddfea501961e0e2a88e76
SHA1 (patch-ab) = 0afe885fc1d1b5461b0423eef347fd72511be907
SHA1 (patch-ac) = fb32367d7b77a3df6728f2ad93a7c46e76a0e454
-SHA1 (patch-ad) = ea796e555cc2e52af424e2e70484692656095858
+SHA1 (patch-ad) = 712d2efa8f53cc92ad5785e2aedc629de2699b72
diff --git a/www/ap-auth-mysql/patches/patch-ad b/www/ap-auth-mysql/patches/patch-ad
index d7e4e8f8491..2ec34a7357e 100644
--- a/www/ap-auth-mysql/patches/patch-ad
+++ b/www/ap-auth-mysql/patches/patch-ad
@@ -1,8 +1,25 @@
-$NetBSD: patch-ad,v 1.1.1.1 2004/07/16 11:28:19 jdolecek Exp $
+$NetBSD: patch-ad,v 1.2 2004/07/19 00:08:41 kristerw Exp $
---- mod_auth_mysql.c.orig 2003-11-18 13:59:00.000000000 +0100
-+++ mod_auth_mysql.c
-@@ -62,7 +62,7 @@ static int auth_db_override = 1;
+--- mod_auth_mysql.c.orig Sun Jun 27 13:34:55 2004
++++ mod_auth_mysql.c Mon Jul 19 01:57:11 2004
+@@ -29,14 +29,14 @@
+ #define SNPRINTF apr_snprintf
+ #define PSTRDUP apr_pstrdup
+ #define PSTRCAT apr_pstrcat
+-#define APACHELOG(severity, handle, message ...) ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_##severity, 0, handle->server, message)
++#define APACHELOG(severity, handle, message...) ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_##severity, 0, handle->server, message)
+ #else
+ #define PALLOC ap_palloc
+ #define PCALLOC ap_pcalloc
+ #define SNPRINTF ap_snprintf
+ #define PSTRDUP ap_pstrdup
+ #define PSTRCAT ap_pstrcat
+-#define APACHELOG(severity, handle, message ...) ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_##severity, handle->server, message)
++#define APACHELOG(severity, handle, message...) ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_##severity, handle->server, message)
+ #endif
+
+ #include <httpd.h>
+@@ -94,7 +94,7 @@
#define CRYPT_MD5_ENCRYPTION_FLAG 1<<3
#endif
#define PHP_MD5_ENCRYPTION_FLAG 1<<4
@@ -11,7 +28,7 @@ $NetBSD: patch-ad,v 1.1.1.1 2004/07/16 11:28:19 jdolecek Exp $
#define CRYPT_ENCRYPTION_FLAG 1<<5
#endif
-@@ -94,7 +94,7 @@ static int check_crypt_MD5_encryption(co
+@@ -126,7 +126,7 @@
}
#endif
@@ -20,7 +37,7 @@ $NetBSD: patch-ad,v 1.1.1.1 2004/07/16 11:28:19 jdolecek Exp $
static int check_crypt_encryption(const char *passwd, char *enc_passwd)
{
return (!strcmp(crypt(passwd, enc_passwd), enc_passwd));
-@@ -165,7 +165,9 @@ encryption_type_entry supported_encrypti
+@@ -206,7 +206,9 @@
#if CRYPT_MD5
{ "Crypt_MD5", check_crypt_MD5_encryption, CRYPT_MD5_ENCRYPTION_FLAG },
#endif
@@ -30,3 +47,23 @@ $NetBSD: patch-ad,v 1.1.1.1 2004/07/16 11:28:19 jdolecek Exp $
{ "PHP_MD5", check_PHP_MD5_encryption, PHP_MD5_ENCRYPTION_FLAG },
/* add additional encryption types below */
{ NULL, NULL, 0 }
+@@ -1463,14 +1465,17 @@
+ return res;
+ }
+
++#ifdef APACHE2
+ APACHELOG(DEBUG, r,
+ "Starting basic user auth for [%s] in %s, child pid %i",
+-#ifdef APACHE2
+ r->user,
++ sec->dir, getpid());
+ #else
++ APACHELOG(DEBUG, r,
++ "Starting basic user auth for [%s] in %s, child pid %i",
+ c->user,
+-#endif
+ sec->dir, getpid());
++#endif
+
+ #ifdef APACHE2
+ switch (mysql_check_user_password(r, r->user, sent_pw, sec)) {