Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Oct 2001 08:03:52 +0100 (CET)
From:      Anders Nordby <anders@fix.no>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/31576: New port: www/mod_mylo
Message-ID:  <20011029070352.DA8AD3D3C@totem.fix.no>

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

>Number:         31576
>Category:       ports
>Synopsis:       New port: www/mod_mylo
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct 28 23:10:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Anders Nordby
>Release:        FreeBSD 4.4-STABLE i386
>Organization:
Fluxpod Information eXchange
>Environment:

	<Relevant environment information (multiple lines)>

>Description:

New port of mod_mylo, an Apache module to make Apache log to MySQL.

>How-To-Repeat:

	<Code/input/activities to reproduce the problem (multiple lines)>

>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	mod_mylo
#	mod_mylo/distinfo
#	mod_mylo/pkg-descr
#	mod_mylo/pkg-plist
#	mod_mylo/pkg-comment
#	mod_mylo/Makefile
#	mod_mylo/pkg-message
#
echo c - mod_mylo
mkdir -p mod_mylo > /dev/null 2>&1
echo x - mod_mylo/distinfo
sed 's/^X//' >mod_mylo/distinfo << 'END-of-mod_mylo/distinfo'
XMD5 (mod_mylo-0.2.tgz) = a5e740c8cef5dec7fb96948b7cb2952a
END-of-mod_mylo/distinfo
echo x - mod_mylo/pkg-descr
sed 's/^X//' >mod_mylo/pkg-descr << 'END-of-mod_mylo/pkg-descr'
XThis is a module for Apache that sends logs directly to a MySQL database in
Xaddition to normal logging.
X
XWWW: http://www.orakel.ntnu.no/~oyving/code/mod_mylo/
X
X- Anders Nordby <anders@fix.no>
END-of-mod_mylo/pkg-descr
echo x - mod_mylo/pkg-plist
sed 's/^X//' >mod_mylo/pkg-plist << 'END-of-mod_mylo/pkg-plist'
Xlibexec/apache/mod_mylo.so
X@exec %D/sbin/apxs -e -A -n mylo %D/%F
X@unexec %D/sbin/apxs -e -A -n mylo %D/%F
X%%PORTDOCS%%share/doc/mod_mylo/mod_mylo.sql
X%%PORTDOCS%%share/doc/mod_mylo/README
X%%PORTDOCS%%@dirrm share/doc/mod_mylo
END-of-mod_mylo/pkg-plist
echo x - mod_mylo/pkg-comment
sed 's/^X//' >mod_mylo/pkg-comment << 'END-of-mod_mylo/pkg-comment'
XAn Apache module to make Apache log to MySQL
END-of-mod_mylo/pkg-comment
echo x - mod_mylo/Makefile
sed 's/^X//' >mod_mylo/Makefile << 'END-of-mod_mylo/Makefile'
X# New ports collection makefile for:	mod_mylog
X# Date created:				28 October 2001
X# Whom:					Anders Nordby <anders@fix.no>
X#
X# $FreeBSD$
X
XPORTNAME=	mod_mylo
XPORTVERSION=	0.2
XCATEGORIES=	www
XMASTER_SITES=	http://www.orakel.ntnu.no/~oyving/code/mod_mylo/ \
X		ftp://ftp.nuug.no/pub/anders/distfiles/
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	anders@fix.no
X
XBUILD_DEPENDS=	${APXS}:${PORTSDIR}/www/apache13
XRUN_DEPENDS=	${APXS}:${PORTSDIR}/www/apache13
XLIB_DEPENDS=	mysqlclient.10:${PORTSDIR}/databases/mysql323-client
X
XWRKSRC=		${WRKDIR}/${PORTNAME}
X
XAPXS=	${LOCALBASE}/sbin/apxs
XDOCS=	mod_mylo.sql README
X
Xpost-patch:
X	${PERL} -pi -e "s@MyloErorr@MyloError@" ${WRKSRC}/README
X
Xdo-build:
X	(cd ${WRKSRC} && ${APXS} -c -I${LOCALBASE}/include \
X	-L${LOCALBASE}/lib/mysql -lmysqlclient mod_mylo.c)
X
Xdo-install:
X	(cd ${WRKSRC} && ${APXS} -i -A -n 'mylo' mod_mylo.so)
X.if !defined(NOPORTDOCS)
X	${INSTALL} -d -o root -g wheel -m 0755 ${DOCSDIR}
X.for f in ${DOCS}
X	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
X.endfor
X.endif
X	${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-mod_mylo/Makefile
echo x - mod_mylo/pkg-message
sed 's/^X//' >mod_mylo/pkg-message << 'END-of-mod_mylo/pkg-message'
X************************************************************
XYou've installed mod_mylo, an Apache module to make Apache
Xlog to MySQL.
X
XEdit your apache.conf or httpd.conf to enable and setup this
Xmodule. Have a look at the files in
X${PREFIX}/share/doc/mod_mylo for information on how to
Xconfigure it etc.
X
XThen do this to make it work effective:
X
X# apachectl configtest (see if there are any config errors)
X# apachectl restart
X
X************************************************************
END-of-mod_mylo/pkg-message
exit

>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?20011029070352.DA8AD3D3C>