summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2003-09-28 15:39:46 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2003-09-28 15:39:46 +0000
commit4158a5b013bcf515734facc1c450e8b56212060d (patch)
tree01c28f63e51601d4b13ffffc4d80072eb52d4a06
parentupdate news/inn-stable: (diff)
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 <alexander.haderer@charite.de>
Notes
Notes: svn path=/head/; revision=89695
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/fetchlog/Makefile28
-rw-r--r--sysutils/fetchlog/distinfo1
-rw-r--r--sysutils/fetchlog/files/patch-aa23
-rw-r--r--sysutils/fetchlog/pkg-descr15
-rw-r--r--sysutils/fetchlog/pkg-plist6
6 files changed, 74 insertions, 0 deletions
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 <alexander.haderer@charite.de>
+#
+# $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 <bsd.port.mk>
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%%