From 2e0a4ad84e83c96ac891164261fe20fff1549b00 Mon Sep 17 00:00:00 2001 From: anders Date: Mon, 12 Nov 2001 02:51:50 +0000 Subject: Add mod_mylo, a module for Apache that sends logs directly to a MySQL database in addition to normal logging. PR: 31576 Approved by: will --- www/mod_mylo/Makefile | 39 +++++++++++++++++++++++++++++++++++++++ www/mod_mylo/distinfo | 1 + www/mod_mylo/pkg-comment | 1 + www/mod_mylo/pkg-descr | 6 ++++++ www/mod_mylo/pkg-message | 15 +++++++++++++++ www/mod_mylo/pkg-plist | 6 ++++++ 6 files changed, 68 insertions(+) create mode 100644 www/mod_mylo/Makefile create mode 100644 www/mod_mylo/distinfo create mode 100644 www/mod_mylo/pkg-comment create mode 100644 www/mod_mylo/pkg-descr create mode 100644 www/mod_mylo/pkg-message create mode 100644 www/mod_mylo/pkg-plist (limited to 'www/mod_mylo') diff --git a/www/mod_mylo/Makefile b/www/mod_mylo/Makefile new file mode 100644 index 0000000..7f4f3fc --- /dev/null +++ b/www/mod_mylo/Makefile @@ -0,0 +1,39 @@ +# New ports collection makefile for: mod_mylo +# Date created: 12 November 2001 +# Whom: Anders Nordby +# +# $FreeBSD$ + +PORTNAME= mod_mylo +PORTVERSION= 0.2.1 +CATEGORIES= www +MASTER_SITES= http://www.orakel.ntnu.no/~oyving/code/mod_mylo/ \ + ftp://ftp.nuug.no/pub/anders/distfiles/ +EXTRACT_SUFX= .tgz + +MAINTAINER= anders@FreeBSD.org + +BUILD_DEPENDS= ${APXS}:${PORTSDIR}/www/apache13 +RUN_DEPENDS= ${APXS}:${PORTSDIR}/www/apache13 +LIB_DEPENDS= mysqlclient.10:${PORTSDIR}/databases/mysql323-client + +WRKSRC= ${WRKDIR}/${PORTNAME} + +APXS= ${LOCALBASE}/sbin/apxs +DOCS= mod_mylo.sql README + +do-build: + (cd ${WRKSRC} && ${APXS} -c -I${LOCALBASE}/include \ + -L${LOCALBASE}/lib/mysql -lmysqlclient mod_mylo.c) + +do-install: + (cd ${WRKSRC} && ${APXS} -i -A -n 'mylo' mod_mylo.so) +.if !defined(NOPORTDOCS) + ${INSTALL} -d -o root -g wheel -m 0755 ${DOCSDIR} +.for f in ${DOCS} + ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/ +.endfor +.endif + ${CAT} ${PKGMESSAGE} + +.include diff --git a/www/mod_mylo/distinfo b/www/mod_mylo/distinfo new file mode 100644 index 0000000..933826e --- /dev/null +++ b/www/mod_mylo/distinfo @@ -0,0 +1 @@ +MD5 (mod_mylo-0.2.1.tgz) = 52e94e3c5af1c5cd7059af1132b69050 diff --git a/www/mod_mylo/pkg-comment b/www/mod_mylo/pkg-comment new file mode 100644 index 0000000..05b36f0 --- /dev/null +++ b/www/mod_mylo/pkg-comment @@ -0,0 +1 @@ +An Apache module to make Apache log to MySQL diff --git a/www/mod_mylo/pkg-descr b/www/mod_mylo/pkg-descr new file mode 100644 index 0000000..894c2d0 --- /dev/null +++ b/www/mod_mylo/pkg-descr @@ -0,0 +1,6 @@ +This is a module for Apache that sends logs directly to a MySQL database in +addition to normal logging. + +WWW: http://www.orakel.ntnu.no/~oyving/code/mod_mylo/ + +- Anders Nordby diff --git a/www/mod_mylo/pkg-message b/www/mod_mylo/pkg-message new file mode 100644 index 0000000..3ee1330 --- /dev/null +++ b/www/mod_mylo/pkg-message @@ -0,0 +1,15 @@ +************************************************************ +You've installed mod_mylo, an Apache module to make Apache +log to MySQL. + +Edit your apache.conf or httpd.conf to enable and setup this +module. Have a look at the files in +${PREFIX}/share/doc/mod_mylo for information on how to +configure it etc. + +Then do this to make it work effective: + +# apachectl configtest (see if there are any config errors) +# apachectl restart + +************************************************************ diff --git a/www/mod_mylo/pkg-plist b/www/mod_mylo/pkg-plist new file mode 100644 index 0000000..4d105b2 --- /dev/null +++ b/www/mod_mylo/pkg-plist @@ -0,0 +1,6 @@ +libexec/apache/mod_mylo.so +@exec %D/sbin/apxs -e -A -n mylo %D/%F +@unexec %D/sbin/apxs -e -A -n mylo %D/%F +%%PORTDOCS%%share/doc/mod_mylo/mod_mylo.sql +%%PORTDOCS%%share/doc/mod_mylo/README +%%PORTDOCS%%@dirrm share/doc/mod_mylo -- cgit v1.1