From 4158a5b013bcf515734facc1c450e8b56212060d Mon Sep 17 00:00:00 2001 From: Kirill Ponomarev Date: Sun, 28 Sep 2003 15:39:46 +0000 Subject: [PATCH] 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. PR: 55506 Submitted by: Alexander Haderer --- sysutils/Makefile | 1 + sysutils/fetchlog/Makefile | 28 ++++++++++++++++++++++++++++ sysutils/fetchlog/distinfo | 1 + sysutils/fetchlog/files/patch-aa | 23 +++++++++++++++++++++++ sysutils/fetchlog/pkg-descr | 15 +++++++++++++++ sysutils/fetchlog/pkg-plist | 6 ++++++ 6 files changed, 74 insertions(+) create mode 100644 sysutils/fetchlog/Makefile create mode 100644 sysutils/fetchlog/distinfo create mode 100644 sysutils/fetchlog/files/patch-aa create mode 100644 sysutils/fetchlog/pkg-descr create mode 100644 sysutils/fetchlog/pkg-plist diff --git a/sysutils/Makefile b/sysutils/Makefile index 5bd0256b04d2..8e7451bae659 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -86,6 +86,7 @@ SUBDIR += fastest_cvsup SUBDIR += fastresolve SUBDIR += fcron + SUBDIR += fetchlog SUBDIR += ffsrecov SUBDIR += file SUBDIR += filedupe diff --git a/sysutils/fetchlog/Makefile b/sysutils/fetchlog/Makefile new file mode 100644 index 000000000000..c4d60ad66e3a --- /dev/null +++ b/sysutils/fetchlog/Makefile @@ -0,0 +1,28 @@ +# New ports collection makefile for: fetchlog +# Date created: 11 August 2003 +# Whom: Alexander Haderer +# +# $FreeBSD$ +# + +PORTNAME= fetchlog +PORTVERSION= 0.94 +CATEGORIES= sysutils +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= fetchlog + +MAINTAINER= alexander.haderer@charite.de +COMMENT= Fetch and convert new messages of a logfile + +MAN1= fetchlog.1 + +post-install: +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + ${INSTALL_MAN} ${WRKSRC}/CHANGES ${DOCSDIR} + ${INSTALL_MAN} ${WRKSRC}/README ${DOCSDIR} + ${INSTALL_MAN} ${WRKSRC}/README.Nagios ${DOCSDIR} + ${INSTALL_MAN} ${WRKSRC}/README.SNMP ${DOCSDIR} +.endif + +.include diff --git a/sysutils/fetchlog/distinfo b/sysutils/fetchlog/distinfo new file mode 100644 index 000000000000..cd37ad41bc57 --- /dev/null +++ b/sysutils/fetchlog/distinfo @@ -0,0 +1 @@ +MD5 (fetchlog-0.94.tar.gz) = fc39e912736062e5a2b2626b33694d3f diff --git a/sysutils/fetchlog/files/patch-aa b/sysutils/fetchlog/files/patch-aa new file mode 100644 index 000000000000..3cad22635275 --- /dev/null +++ b/sysutils/fetchlog/files/patch-aa @@ -0,0 +1,23 @@ +--- Makefile.orig Mon Aug 11 18:58:18 2003 ++++ Makefile Mon Aug 11 19:02:35 2003 +@@ -23,8 +23,9 @@ + ### compiler + + ### gcc +-CC=gcc +-CFLAGS= -O -Wall -Wcast-qual -Wstrict-prototypes \ ++#CC=gcc ++CC ?= =cc ++CFLAGS += -O -Wall -Wcast-qual -Wstrict-prototypes \ + -Wmissing-prototypes -Wmissing-declarations -Winline -Wcast-align + ### cc + #CC=cc +@@ -62,7 +63,7 @@ + ### installdir + ### will use $INSTDIR/bin and $INSTDIR/man/man1, + ### both dirs have to exist for installation +-INSTDIR=/usr/local ++INSTDIR=${PREFIX} + + ### ------------------------------------------------------------------------ + ### --- end of user settings ----------------------------------------------- diff --git a/sysutils/fetchlog/pkg-descr b/sysutils/fetchlog/pkg-descr new file mode 100644 index 000000000000..eec0ee93531d --- /dev/null +++ b/sysutils/fetchlog/pkg-descr @@ -0,0 +1,15 @@ +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. + +fetchlog works on syslog generated logfiles as well as other logfiles. + +fetchlog can be used standalone or as a Nagios (TM) plugin. Together +with Net-SNMP one can look at/monitor new messages in remote logfiles. + +WWW: http://fetchlog.sourceforge.net/ + +-Alexander Haderer +alexander.haderer@charite.de diff --git a/sysutils/fetchlog/pkg-plist b/sysutils/fetchlog/pkg-plist new file mode 100644 index 000000000000..08e1b5312bc1 --- /dev/null +++ b/sysutils/fetchlog/pkg-plist @@ -0,0 +1,6 @@ +bin/fetchlog +%%PORTDOCS%%%%DOCSDIR%%/CHANGES +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/README.Nagios +%%PORTDOCS%%%%DOCSDIR%%/README.SNMP +%%PORTDOCS%%@dirrm %%DOCSDIR%%