Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Feb 2002 11:17:52 +0300 (MSK)
From:      Lev Serebryakov <lev@serebryakov.spb.ru>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/34522: [MAINTAINER UPDATE][PATCH] port www/mod_log_mysql: bugfix.
Message-ID:  <200202010817.g118HqA27976@ftp.translate.ru>

next in thread | raw e-mail | index | archive | help

>Number:         34522
>Category:       ports
>Synopsis:       [MAINTAINER UPDATE][PATCH] port www/mod_log_mysql: bugfix.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Feb 01 00:20:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Lev Serebryakov <lev@serebryakov.spb.ru>
>Release:        FreeBSD 4.2-STABLE i386
>Organization:
>Environment:

Ports collection from 1 Feb 2002

>Description:

This is bugfix for mod_log_mysql apache module. Now this port could not work
at all. This version works.

Bump PORTREVISION

>How-To-Repeat:


>Fix:

diff -ruN mod_log_mysql.orig/Makefile mod_log_mysql/Makefile
--- mod_log_mysql.orig/Makefile	Sun Jan 27 20:42:06 2002
+++ mod_log_mysql/Makefile	Fri Feb  1 11:09:28 2002
@@ -6,6 +6,7 @@
 
 PORTNAME=	mod_log_mysql
 PORTVERSION=	1.13
+PORTREVISION=	1
 CATEGORIES=	www databases
 MASTER_SITES=	http://www.grubbybaby.com/mod_log_mysql/
 
diff -ruN mod_log_mysql.orig/files/patch-mod_log_mysql.c mod_log_mysql/files/patch-mod_log_mysql.c
--- mod_log_mysql.orig/files/patch-mod_log_mysql.c	Sun Jan 27 20:42:06 2002
+++ mod_log_mysql/files/patch-mod_log_mysql.c	Fri Feb  1 11:09:28 2002
@@ -1,5 +1,86 @@
---- mod_log_mysql.c.orig	Sun Jan 27 20:03:27 2002
-+++ mod_log_mysql.c	Sun Jan 27 20:03:47 2002
+--- mod_log_mysql.c.orig	Fri Feb  1 11:02:55 2002
++++ mod_log_mysql.c	Fri Feb  1 11:03:36 2002
+@@ -31,7 +31,7 @@
+ 
+ 
+ /* DECLARATIONS */
+-module mysql_log_module;
++module log_mysql_module;
+ 
+ MYSQL sql_server, *mysql_log = NULL;
+ 
+@@ -539,7 +539,7 @@
+ 
+ const char *set_referer_log_mysql_table(cmd_parms *parms, void *dummy, char *arg)
+ {
+-	log_mysql_state *cls = get_module_config(parms->server->module_config, &mysql_log_module);
++	log_mysql_state *cls = get_module_config(parms->server->module_config, &log_mysql_module);
+ 
+ 	cls->referer_table_name = arg;
+ 	return NULL;
+@@ -548,7 +548,7 @@
+ 
+ const char *set_agent_log_mysql_table(cmd_parms *parms, void *dummy, char *arg)
+ {
+-	log_mysql_state *cls = get_module_config(parms->server->module_config, &mysql_log_module);
++	log_mysql_state *cls = get_module_config(parms->server->module_config, &log_mysql_module);
+ 
+ 	cls->agent_table_name = arg;
+ 	return NULL;
+@@ -557,7 +557,7 @@
+ 
+ const char *set_transfer_log_mysql_table(cmd_parms *parms, void *dummy, char *arg)
+ {
+-	log_mysql_state *cls = get_module_config(parms->server->module_config, &mysql_log_module);
++	log_mysql_state *cls = get_module_config(parms->server->module_config, &log_mysql_module);
+ 
+ 	cls->transfer_table_name = arg;
+ 	return NULL;
+@@ -566,7 +566,7 @@
+ 
+ const char *set_transfer_log_format(cmd_parms *parms, void *dummy, char *arg)
+ {
+-	log_mysql_state *cls = get_module_config(parms->server->module_config, &mysql_log_module);
++	log_mysql_state *cls = get_module_config(parms->server->module_config, &log_mysql_module);
+ 
+ 	cls->transfer_log_format = arg;
+ 	return NULL;
+@@ -604,7 +604,7 @@
+ {
+ 	char **addme;
+ 	log_mysql_state *cls = get_module_config(parms->server->module_config,
+-						 &mysql_log_module);
++						 &log_mysql_module);
+ 
+ 	addme = push_array(cls->referer_ignore_list);
+ 	*addme = pstrdup(cls->referer_ignore_list->pool, arg);
+@@ -615,7 +615,7 @@
+ {
+ 	char **addme;
+ 	log_mysql_state *cls = get_module_config(parms->server->module_config,
+-						 &mysql_log_module);
++						 &log_mysql_module);
+ 
+ 	addme = push_array(cls->transfer_ignore_list);
+ 	*addme = pstrdup(cls->transfer_ignore_list->pool, arg);
+@@ -626,7 +626,7 @@
+ {
+ 	char **addme;
+ 	log_mysql_state *cls = get_module_config(parms->server->module_config,
+-						 &mysql_log_module);
++						 &log_mysql_module);
+ 
+ 	addme = push_array(cls->remhost_ignore_list);
+ 	*addme = pstrdup(cls->remhost_ignore_list->pool, arg);
+@@ -702,7 +702,7 @@
+ {
+ 	char **ptrptr, **ptrptr2;
+ 	log_mysql_state *cls = get_module_config(orig->server->module_config,
+-						 &mysql_log_module);
++						 &log_mysql_module);
+ 	char *str;
+ 	const char *referer;
+ 	request_rec *r;
 @@ -856,7 +856,7 @@
  
  
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200202010817.g118HqA27976>