ports/157953: [new port] misc/logsurfer+

Ryan Steinmetz rpsfa at rit.edu
Fri Jun 17 16:20:13 UTC 2011


>Number:         157953
>Category:       ports
>Synopsis:       [new port] misc/logsurfer+
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 17 16:20:12 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Ryan Steinmetz
>Release:        8.2-RELEASE
>Organization:
Rochester Institute of Technology
>Environment:
>Description:
This port will replace misc/logsurfer, which is currently deprecated.

========================================

Logsurfer is a program for monitoring system logs in real-time, and reporting on the occurrence of events. It is similar to the well-known swatch program on which it is based, but offers a number of advanced features which swatch does not support.

Logsurfer is capable of grouping related log entries together - for instance, when a system boots it usually creates a high number of log messages. In this case, logsurfer can be setup to group boot-time messages together and forward them in a single Email message to the system administrator under the subject line "Host xxx has just booted". Swatch just couldn't do this properly.

Logsurfer is written in C - this makes it extremely efficient, an important factor when sites generate a high amount of log traffic. I have used logsurfer at a site where a logging server was recording more than 500,000 events per day - and Logsurfer had no trouble keeping up with this load. Swatch, on the other hand, is based on perl and runs into trouble even when dealing with a much smaller rate of log traffic.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# 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:
#
#	logsurfer+/
#	logsurfer+/Makefile
#	logsurfer+/files
#	logsurfer+/files/pkg-message.in
#	logsurfer+/pkg-descr
#	logsurfer+/pkg-plist
#	logsurfer+/distinfo
#
echo c - logsurfer+/
mkdir -p logsurfer+/ > /dev/null 2>&1
echo x - logsurfer+/Makefile
sed 's/^X//' >logsurfer+/Makefile << 'e69bd7e555020491c6dca03085f04721'
X# New ports collection makefile for:	logsurfer+
X# Date created:		17 Jul 2011
X# Whom:			Ryan Steinmetz <rpsfa at rit.edu>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	logsurfer+
XPORTVERSION=	1.7
XCATEGORIES=	misc
XMASTER_SITES=	http://kerryt.orconhosting.net.nz/ \
X		http://www.crypt.gen.nz/logsurfer/
X
XMAINTAINER=	rpsfa at rit.edu
XCOMMENT=	Process logfiles and conditionally perform certain actions
X
XSUB_FILES=	pkg-message
X
XGNU_CONFIGURE=	YES
XCONFIGURE_ARGS+=	--with-etc-dir=${PREFIX}/etc
X
XMAN1=		logsurfer.1
XMAN4=		logsurfer.conf.4
X
Xpost-install:
X	@${MKDIR} ${EXAMPLESDIR}
X	(cd ${WRKSRC}/config-examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X.for file in ChangeLog README
X	${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
X.endfor
X.endif
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
e69bd7e555020491c6dca03085f04721
echo c - logsurfer+/files
mkdir -p logsurfer+/files > /dev/null 2>&1
echo x - logsurfer+/files/pkg-message.in
sed 's/^X//' >logsurfer+/files/pkg-message.in << 'bec391087575eb683972b4a46f7e07f4'
X**********************************************************
XYou must create %%PREFIX%%/etc/logsurfer.conf prior to use
X
XSample configurations may be found in %%EXAMPLESDIR%%
X**********************************************************
bec391087575eb683972b4a46f7e07f4
echo x - logsurfer+/pkg-descr
sed 's/^X//' >logsurfer+/pkg-descr << '13e100a3c8f24f2ad4f57a694585146a'
XLogsurfer is a program for monitoring system logs in real-time, 
Xand reporting on the occurrence of events. It is similar to the 
Xwell-known swatch program on which it is based, but offers a 
Xnumber of advanced features which swatch does not support.
X
XLogsurfer is capable of grouping related log entries 
Xtogether - for instance, when a system boots it usually creates 
Xa high number of log messages. In this case, logsurfer can be 
Xsetup to group boot-time messages together and forward them in 
Xa single Email message to the system administrator under the 
Xsubject line "Host xxx has just booted".
XSwatch just couldn't do this properly.
X
X
XWWW: http://www.crypt.gen.nz/logsurfer/
13e100a3c8f24f2ad4f57a694585146a
echo x - logsurfer+/pkg-plist
sed 's/^X//' >logsurfer+/pkg-plist << '380254135d3c0a97d0530251d242b436'
Xbin/logsurfer
X%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
X%%PORTDOCS%%%%DOCSDIR%%/README
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
X%%EXAMPLESDIR%%/README
X%%EXAMPLESDIR%%/context_arg_test.conf
X%%EXAMPLESDIR%%/echo_test.conf
X%%EXAMPLESDIR%%/lines_test.conf
X%%EXAMPLESDIR%%/syslog_test.conf
X at dirrm %%EXAMPLESDIR%%
380254135d3c0a97d0530251d242b436
echo x - logsurfer+/distinfo
sed 's/^X//' >logsurfer+/distinfo << '5cfe409b1361ea5814d7d3c9afca65d6'
XSHA256 (logsurfer+-1.7.tar.gz) = b0cce7311f6413a1a903a2d4925051ee68a882a7eb093f41f1b7d7bd7bd442a0
XSIZE (logsurfer+-1.7.tar.gz) = 198289
5cfe409b1361ea5814d7d3c9afca65d6
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list