ports/80876: NEW port: www/mod_log_spread
Meno Abels
meno.abels at adviser.com
Wed May 11 05:30:03 UTC 2005
>Number: 80876
>Category: ports
>Synopsis: NEW port: www/mod_log_spread
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed May 11 05:30:02 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Meno Abels <meno.abels at adviser.com>
>Release: FreeBSD 5.3 i386
>Organization:
Adviser COM
>Environment:
System: FreeBSD race 5.3 FreeBSD 5.3 #4: Tue Apr 19 14:18:44 CEST 2005 root at jamal.abels.adviser.com:/usr/obj/usr/src/sys/GENERIC i386
>Description:
mod_log_spread is a patch to Apache's mod_log_config, which provides
an interface for spread to multicast access logs. It utilizes the
group communication toolkit Spread, developed at Johns Hopkins
University's Center for Networking and Distributed Systems.
mod_log_spread was developed to solve the problem of collecting
consolidated access logs for large web farms. In particular, the
solution needed to be scalable to hundreds of machines, utilize a
reliable network transport, allow machines to added or dropped on
the fly, and impose minimal performance impact on the webservers.
Current version is 1.0.3p3. This makes a fix to a stupid vhost
logging bug as well as providing a complete and flexible log-writing
solution.
>How-To-Repeat:
not applied change request
>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:
#
# www/mod_log_spread
# www/mod_log_spread/pkg-plist
# www/mod_log_spread/pkg-descr
# www/mod_log_spread/distinfo
# www/mod_log_spread/Makefile
# www/mod_log_spread/files
# www/mod_log_spread/files/patch-mod_log_spread.c
#
echo c - www/mod_log_spread
mkdir -p www/mod_log_spread > /dev/null 2>&1
echo x - www/mod_log_spread/pkg-plist
sed 's/^X//' >www/mod_log_spread/pkg-plist << 'END-of-www/mod_log_spread/pkg-plist'
Xlibexec/apache/mod_log_spread.so
X at exec %D/sbin/apxs -e -a -n log_spread %D/%F
X at unexec %D/sbin/apxs -e -A -n log_spread %D/%F
X%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG
X%%PORTDOCS%%%%DOCSDIR%%/INSTALL
X%%PORTDOCS%%%%DOCSDIR%%/LICENSE
X%%PORTDOCS%%%%DOCSDIR%%/README
X%%PORTDOCS%%%%DOCSDIR%%/README.spread
X%%PORTDOCS%%%%DOCSDIR%%/error_log_spread.pl
X%%PORTDOCS%%%%DOCSDIR%%/sample_configurations.txt
X%%PORTDOCS%%%%DOCSDIR%%/spreadlogd.README
X%%PORTDOCS%%%%DOCSDIR%%/spread.html
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
END-of-www/mod_log_spread/pkg-plist
echo x - www/mod_log_spread/pkg-descr
sed 's/^X//' >www/mod_log_spread/pkg-descr << 'END-of-www/mod_log_spread/pkg-descr'
Xmod_log_spread is a patch to Apache's mod_log_config, which provides
Xan interface for spread to multicast access logs. It utilizes the
Xgroup communication toolkit Spread, developed at Johns Hopkins
XUniversity's Center for Networking and Distributed Systems.
Xmod_log_spread was developed to solve the problem of collecting
Xconsolidated access logs for large web farms. In particular, the
Xsolution needed to be scalable to hundreds of machines, utilize a
Xreliable network transport, allow machines to added or dropped on
Xthe fly, and impose minimal performance impact on the webservers.
XCurrent version is 1.0.3p3. This makes a fix to a stupid vhost
Xlogging bug as well as providing a complete and flexible log-writing
Xsolution.
X
XWWW: http://www.lethargy.org/mod_log_spread/
END-of-www/mod_log_spread/pkg-descr
echo x - www/mod_log_spread/distinfo
sed 's/^X//' >www/mod_log_spread/distinfo << 'END-of-www/mod_log_spread/distinfo'
XMD5 (mod_log_spread-1.0.4.tar.gz) = 2833402e15fcb05d6d493200157635ba
XSIZE (mod_log_spread-1.0.4.tar.gz) = 26984
END-of-www/mod_log_spread/distinfo
echo x - www/mod_log_spread/Makefile
sed 's/^X//' >www/mod_log_spread/Makefile << 'END-of-www/mod_log_spread/Makefile'
X# New ports collection makefile for: mod_log_spread
X# Date created: 2005-05-08
X# Whom: Meno Abels <meno.abels at adviser.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME= mod_log_spread
XPORTVERSION= 1.0.4
XCATEGORIES= www net
XMASTER_SITES= http://www.lethargy.org/mod_log_spread/
X
XMAINTAINER= meno.abels at adviser.com
XCOMMENT= The mod_log_spread provides an interface for spread
X
XLIB_DEPENDS= spread.1:${PORTSDIR}/net/spread
XBUILD_DEPENDS= ${APXS}:${PORTSDIR}/www/apache13
XRUN_DEPENDS= ${BUILD_DEPENDS}
X
XUSE_APACHE= yes
XSO= so
X
X.include <bsd.port.pre.mk>
X
XDOCS= CHANGELOG INSTALL LICENSE README README.spread \
X error_log_spread.pl sample_configurations.txt \
X spreadlogd.README spread.html
X
Xdo-build:
X cd ${WRKSRC} && ${APXS} -I${PREFIX}/include -c mod_log_spread.c
X
Xdo-install:
X ${APXS} -i -a -n log_spread ${WRKSRC}/mod_log_spread.${SO}
X.if !defined(NOPORTDOCS)
X @${MKDIR} ${DOCSDIR}
X.for f in ${DOCS}
X @${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
X.endfor
X.endif
X
X.include <bsd.port.post.mk>
END-of-www/mod_log_spread/Makefile
echo c - www/mod_log_spread/files
mkdir -p www/mod_log_spread/files > /dev/null 2>&1
echo x - www/mod_log_spread/files/patch-mod_log_spread.c
sed 's/^X//' >www/mod_log_spread/files/patch-mod_log_spread.c << 'END-of-www/mod_log_spread/files/patch-mod_log_spread.c'
X--- mod_log_spread.c.orig Thu Aug 16 04:27:58 2001
X+++ mod_log_spread.c Wed May 11 06:55:14 2005
X@@ -895,7 +895,7 @@
X static int spread_multicast_log_to_daemon(request_rec *r, char *group_name, int daemon_index, char *str, int len)
X {
X int sperror;
X- char *src;
X+ const char *src;
X char tmpgrp[MAX_GROUP_NAME];
X char lchostname[1024];
X char *dst = lchostname;
END-of-www/mod_log_spread/files/patch-mod_log_spread.c
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list