ports/55506: New port: fetchlog

Alexander Haderer alexander.haderer at charite.de
Tue Aug 12 17:40:10 UTC 2003


>Number:         55506
>Category:       ports
>Synopsis:       New port: fetchlog
>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:   Tue Aug 12 10:40:08 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Alexander Haderer
>Release:        FreeBSD 4.8-RELEASE i386
>Organization:
Charite Hospital Berlin - Germany
>Environment:
System: FreeBSD ogava.str.charite.de 4.8-RELEASE FreeBSD 4.8-RELEASE #0: Tue May 13 20:42:13 CEST 2003 root at ogava.str.charite.de:/usr/src/sys/compile/OGAVAD i386


>Description:
I made a new port for the fetchlog utlity for sysutils/fetchlog:

The fetchlog utility displays the last new messages of a logfile. It is 
similar like tail (1) but offers some extra functionality for output
formatting. To show only the new messages appeared since the last call
fetchlog uses a bookmark to remember which messages have been fetched.

>How-To-Repeat:
>Fix:
--- fetchlog_port.shar begins here ---
# 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:
#
#	theport
#	theport/Makefile
#	theport/distinfo
#	theport/files
#	theport/files/patch-aa
#	theport/pkg-descr
#	theport/pkg-plist
#
echo c - theport
mkdir -p theport > /dev/null 2>&1
echo x - theport/Makefile
sed 's/^X//' >theport/Makefile << 'END-of-theport/Makefile'
X# New ports collection makefile for:	fetchlog
X# Date created:		11 August 2003
X# Whom:			Alexander Haderer <alexander.haderer at charite.de>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	fetchlog
XPORTVERSION=	0.94
XCATEGORIES=	sysutils
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	fetchlog
X
XMAINTAINER=	alexander.haderer at charite.de
XCOMMENT=	Fetch and convert new messages of a logfile
X
XMAN1=		fetchlog.1
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${PREFIX}/share/doc/fetchlog
X	${INSTALL_MAN} ${WRKSRC}/CHANGES 	${PREFIX}/share/doc/fetchlog
X	${INSTALL_MAN} ${WRKSRC}/README 	${PREFIX}/share/doc/fetchlog
X	${INSTALL_MAN} ${WRKSRC}/README.Nagios	${PREFIX}/share/doc/fetchlog
X	${INSTALL_MAN} ${WRKSRC}/README.SNMP	${PREFIX}/share/doc/fetchlog
X.endif
X
X.include <bsd.port.mk>
END-of-theport/Makefile
echo x - theport/distinfo
sed 's/^X//' >theport/distinfo << 'END-of-theport/distinfo'
XMD5 (fetchlog-0.94.tar.gz) = fc39e912736062e5a2b2626b33694d3f
END-of-theport/distinfo
echo c - theport/files
mkdir -p theport/files > /dev/null 2>&1
echo x - theport/files/patch-aa
sed 's/^X//' >theport/files/patch-aa << 'END-of-theport/files/patch-aa'
X--- Makefile.orig	Mon Aug 11 18:58:18 2003
X+++ Makefile	Mon Aug 11 19:02:35 2003
X@@ -23,8 +23,9 @@
X ### compiler
X 
X ### gcc
X-CC=gcc
X-CFLAGS= -O -Wall -Wcast-qual -Wstrict-prototypes \
X+#CC=gcc
X+CC ?= =cc
X+CFLAGS += -O -Wall -Wcast-qual -Wstrict-prototypes \
X 	-Wmissing-prototypes -Wmissing-declarations -Winline -Wcast-align 
X ### cc
X #CC=cc
X@@ -62,7 +63,7 @@
X ### installdir    
X ###   will use $INSTDIR/bin  and  $INSTDIR/man/man1, 
X ###   both dirs have to exist for installation
X-INSTDIR=/usr/local
X+INSTDIR=${PREFIX}
X 
X ### ------------------------------------------------------------------------
X ### --- end of user settings -----------------------------------------------
END-of-theport/files/patch-aa
echo x - theport/pkg-descr
sed 's/^X//' >theport/pkg-descr << 'END-of-theport/pkg-descr'
XThe fetchlog utility displays the last new messages of a logfile. 
XIt is similar like tail (1) but offers some extra functionality for
Xoutput formatting. To show only the new messages appeared since the 
Xlast call fetchlog uses a bookmark to remember which messages have 
Xbeen fetched. 
X
Xfetchlog works on syslog generated logfiles as well as other logfiles.
X
Xfetchlog can be used standalone or as a Nagios (TM) plugin.  Together
Xwith Net-SNMP one can look at/monitor new messages in remote logfiles.
X
XWWW: http://fetchlog.sourceforge.net/
X
X-Alexander Haderer
Xalexander.haderer at charite.de
END-of-theport/pkg-descr
echo x - theport/pkg-plist
sed 's/^X//' >theport/pkg-plist << 'END-of-theport/pkg-plist'
Xbin/fetchlog
X%%PORTDOCS%%share/doc/fetchlog/CHANGES
X%%PORTDOCS%%share/doc/fetchlog/README
X%%PORTDOCS%%share/doc/fetchlog/README.Nagios
X%%PORTDOCS%%share/doc/fetchlog/README.SNMP
X at dirrm share/doc/fetchlog
END-of-theport/pkg-plist
exit
--- fetchlog_port.shar ends here ---


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



More information about the freebsd-ports-bugs mailing list