summaryrefslogtreecommitdiffstats
path: root/www/mod_log_sql
diff options
context:
space:
mode:
authordwcjr <dwcjr@FreeBSD.org>2002-01-27 17:42:06 +0000
committerdwcjr <dwcjr@FreeBSD.org>2002-01-27 17:42:06 +0000
commit593f194cdc031c021992aaf7a5897bc716c3d549 (patch)
tree7673e4d70b3ccf5248e94d0ee7029cba26eb410b /www/mod_log_sql
parent866e4b2e2e8877088daeb5d8ba46c21ca8ce19da (diff)
downloadFreeBSD-ports-593f194cdc031c021992aaf7a5897bc716c3d549.zip
FreeBSD-ports-593f194cdc031c021992aaf7a5897bc716c3d549.tar.gz
Update to 1.13
PR: 34342 Submitted by: maintainer
Diffstat (limited to 'www/mod_log_sql')
-rw-r--r--www/mod_log_sql/Makefile23
-rw-r--r--www/mod_log_sql/distinfo2
-rw-r--r--www/mod_log_sql/files/patch-mod_log_mysql.c11
3 files changed, 31 insertions, 5 deletions
diff --git a/www/mod_log_sql/Makefile b/www/mod_log_sql/Makefile
index 86eaadb..dd416eb 100644
--- a/www/mod_log_sql/Makefile
+++ b/www/mod_log_sql/Makefile
@@ -5,10 +5,9 @@
# $FreeBSD$
PORTNAME= mod_log_mysql
-PORTVERSION= 1.09
+PORTVERSION= 1.13
CATEGORIES= www databases
MASTER_SITES= http://www.grubbybaby.com/mod_log_mysql/
-DISTNAME= ${PORTNAME}
MAINTAINER= lev@serebryakov.spb.ru
@@ -16,15 +15,31 @@ BUILD_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/${AP_PORT}
LIB_DEPENDS= mysqlclient.10:${PORTSDIR}/databases/mysql323-client
RUN_DEPENDS= ${LOCALBASE}/sbin/httpd:${PORTSDIR}/${AP_PORT}
+WRKSRC= ${WRKDIR}/${PORTNAME}
+
AP_PORT?= www/apache13
APXS?= ${LOCALBASE}/sbin/apxs
+# Here is no mod_ssl by default
+HAVE_MOD_SSL=
+
+MOD_SSL_HEADER= ${LOCALBASE}/include/apache/mod_ssl.h
+
+.if exists(${MOD_SSL_HEADER})
+HAVE_MOD_SSL= -DWANT_SSL_LOGGING
+do-configure:
+ @${ECHO_MSG} "Make with mod_ssl support"
+.else
+do-configure:
+ @${ECHO_MSG} "Make without mod_ssl support"
+.endif
+
do-build:
@cd ${WRKSRC} && ${APXS} -c -o ${PORTNAME}.so -I${LOCALBASE}/include \
- -L${LOCALBASE}/lib/mysql -lmysqlclient ${PORTNAME}.c
+ -L${LOCALBASE}/lib/mysql -lmysqlclient -DMYSQLSOCKET=\\\"/tmp/mysql.sock\\\" ${HAVE_MOD_SSL} ${PORTNAME}.c
do-install:
- cd ${WRKSRC} && ${APXS} -i -n ${PORTNAME:S/^mod_//} -A ${PORTNAME}.so
+ cd ${WRKSRC} && ${APXS} -i -n${PORTNAME:S/^mod_//} -A ${PORTNAME}.so
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for file in CONFIGURATION INSTALL README access_log.sql make_combined_log.pl
diff --git a/www/mod_log_sql/distinfo b/www/mod_log_sql/distinfo
index a1a51be..0925e7b 100644
--- a/www/mod_log_sql/distinfo
+++ b/www/mod_log_sql/distinfo
@@ -1 +1 @@
-MD5 (mod_log_mysql.tar.gz) = ced2720abc250f19b4ec8caf1c22cfdb
+MD5 (mod_log_mysql-1.13.tar.gz) = fc9f0c718601d70f5892553506e6d21c
diff --git a/www/mod_log_sql/files/patch-mod_log_mysql.c b/www/mod_log_sql/files/patch-mod_log_mysql.c
new file mode 100644
index 0000000..1abd825
--- /dev/null
+++ b/www/mod_log_sql/files/patch-mod_log_mysql.c
@@ -0,0 +1,11 @@
+--- mod_log_mysql.c.orig Sun Jan 27 20:03:27 2002
++++ mod_log_mysql.c Sun Jan 27 20:03:47 2002
+@@ -856,7 +856,7 @@
+
+
+ /* The configuration array that sets up the hooks into the module. */
+-module mysql_log_module = {
++module log_mysql_module = {
+ STANDARD_MODULE_STUFF,
+ NULL, /* initializer */
+ NULL, /* create per-dir config */
OpenPOWER on IntegriCloud