1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00

Add mod_log_sql 1.97.

This add-on module allows the apache web server to use a MySQL database
for logging of all operations.

WWW: http://www.outoforder.cc/projects/apache/mod_log_sql/

This release add supports for apache2.
This commit is contained in:
Clement Laforet 2004-04-16 19:57:21 +00:00
parent a06290b8cf
commit 52fc652591
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=107264
7 changed files with 90 additions and 0 deletions

View File

@ -251,6 +251,7 @@
SUBDIR += mod_limitipconn2
SUBDIR += mod_log_data
SUBDIR += mod_log_sql
SUBDIR += mod_log_sql2
SUBDIR += mod_macro
SUBDIR += mod_mp3
SUBDIR += mod_musicindex

35
www/mod_log_sql2/Makefile Normal file
View File

@ -0,0 +1,35 @@
# New ports collection makefile for: mod_log_sql2
# Date created: 2001/11/22
# Whom: Clement Laforet <clement@FreeBSD.org>
#
# $FreeBSD$
PORTNAME= mod_log_sql
PORTVERSION= 1.97
CATEGORIES= www databases
MASTER_SITES= http://www.outoforder.cc/downloads/${PORTNAME}/
MAINTAINER= ports@FreeBSD.org
COMMENT= Allows Apache to log to a MySQL database
GNU_CONFIGURE= yes
USE_MYSQL= yes
USE_REINPLACE= yes
USE_GMAKE= yes
CONFIGURE_ARGS+= --with-apxs=${APXS}
SSL_PLIST= "@comment "
PLIST_SUB+= SSL=${SSL_PLIST}
.include <bsd.port.pre.mk>
.include "${PORTSDIR}/www/apache2/Makefile.modules.3rd"
.if defined(WITH_SSL)
. if ${AP_VER} != 2
BROKEN= "SSL support needs apache2"
. endif
.if !exists(${LOCALBASE}/include/apache2/mod_ssl.h)
BROKEN= "Please recompile apache2 with SSL support"
.endif
CONFIGURE_ARGS+= --enable-ssl
SSL_PLIST= ""
.endif
.include <bsd.port.post.mk>

View File

@ -0,0 +1,2 @@
MD5 (mod_log_sql-1.97.tar.gz) = 6e5616dbb6eec5e1acd2d3fd8b42e5be
SIZE (mod_log_sql-1.97.tar.gz) = 148593

View File

@ -0,0 +1,11 @@
--- functions13.h.orig Fri Apr 16 15:03:25 2004
+++ functions13.h Fri Apr 16 15:03:46 2004
@@ -37,7 +37,7 @@
static const char *extract_request_duration(request_rec *r, char *a)
{
- return ap_psprintf(r->pool, "%ld", time(NULL) - r->request_time);
+ return ap_psprintf(r->pool, "%ld", (long)time(NULL) - r->request_time);
}
static const char *extract_request_timestamp(request_rec *r, char *a)

View File

@ -0,0 +1,31 @@
--- mod_log_sql.c.orig Fri Apr 16 14:47:38 2004
+++ mod_log_sql.c Fri Apr 16 14:47:51 2004
@@ -1,5 +1,13 @@
/* $Id: mod_log_sql.c,v 1.20 2004/03/05 00:30:58 urkle Exp $ */
+#if defined(WITH_APACHE20)
+# include "apache20.h"
+#elif defined(WITH_APACHE13)
+# include "apache13.h"
+#else
+# error Unsupported Apache version
+#endif
+
#ifdef HAVE_CONFIG_H
/* Undefine these to prevent conflicts between Apache ap_config_auto.h and
* my config.h. Only really needed for Apache < 2.0.48, but it can't hurt.
@@ -11,14 +19,6 @@
#undef PACKAGE_VERSION
#include "config.h"
-#endif
-
-#if defined(WITH_APACHE20)
-# include "apache20.h"
-#elif defined(WITH_APACHE13)
-# include "apache13.h"
-#else
-# error Unsupported Apache version
#endif
#if APR_HAVE_UNISTD_H

View File

@ -0,0 +1,4 @@
This add-on module allows the apache web server to use a MySQL database for
logging of all operations.
WWW: http://www.outoforder.cc/projects/apache/mod_log_sql/

View File

@ -0,0 +1,6 @@
%%APACHEMODDIR%%/%%AP_MODULE%%
@exec %D/sbin/apxs -e -A -n %%AP_NAME%% %D/%F
@unexec %D/sbin/apxs -e -A -n %%AP_NAME%% %D/%F
%%APACHEMODDIR%%/mod_log_sql_mysql.so
%%SSL%%%%APACHEMODDIR%%/mod_log_sql_ssl.so