diff options
author | Alexander Langer <alex@FreeBSD.org> | 2000-12-30 16:46:49 +0000 |
---|---|---|
committer | Alexander Langer <alex@FreeBSD.org> | 2000-12-30 16:46:49 +0000 |
commit | 338a207f4f75ad9cad730732d2cd42e5c76812bf (patch) | |
tree | 6ffa6c86afcd1c1ec5bf93994b465ad984a01656 /sysutils/logtool | |
parent | Add diffconvert 1.2, a tool to convert between context and unified diffs (diff) |
Add logtool 1.0.1, a command line program, that will parse syslog and
syslog-alike logfiles into a more palatable format.
PR: 23956
Submitted by: Ying-Chieh Liao <ijliao@terry.dragon2.net>
Diffstat (limited to 'sysutils/logtool')
-rw-r--r-- | sysutils/logtool/Makefile | 27 | ||||
-rw-r--r-- | sysutils/logtool/distinfo | 1 | ||||
-rw-r--r-- | sysutils/logtool/files/patch-aa | 37 | ||||
-rw-r--r-- | sysutils/logtool/files/patch-ab | 10 | ||||
-rw-r--r-- | sysutils/logtool/files/patch-ac | 11 | ||||
-rw-r--r-- | sysutils/logtool/files/patch-ad | 11 | ||||
-rw-r--r-- | sysutils/logtool/pkg-comment | 1 | ||||
-rw-r--r-- | sysutils/logtool/pkg-descr | 20 | ||||
-rw-r--r-- | sysutils/logtool/pkg-plist | 8 |
9 files changed, 126 insertions, 0 deletions
diff --git a/sysutils/logtool/Makefile b/sysutils/logtool/Makefile new file mode 100644 index 000000000000..fa42950c7861 --- /dev/null +++ b/sysutils/logtool/Makefile @@ -0,0 +1,27 @@ +# New ports collection makefile for: logtool +# Date created: Dec 30, 2000 +# Whom: Ying-Chieh Liao <ijliao@csie.nctu.edu.tw> +# +# $FreeBSD$ +# + +PORTNAME= logtool +PORTVERSION= 1.0.1 +CATEGORIES= sysutils +MASTER_SITES= http://users.digitex.net/~max/ + +MAINTAINER= ijliao@csie.nctu.edu.tw + +LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt + +USE_GMAKE= yes +ALL_TARGET= build + +post-patch: + @${PERL} -pi -e "s|make|${GMAKE}|g" ${WRKSRC}/Makefile +.for file in logtool/Makefile logtail/Makefile + @${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/${file} +.endfor + @${PERL} -pi -e "s|/etc|${PREFIX}/etc|g" ${WRKSRC}/logtool/config.h + +.include <bsd.port.mk> diff --git a/sysutils/logtool/distinfo b/sysutils/logtool/distinfo new file mode 100644 index 000000000000..ec034f6969cc --- /dev/null +++ b/sysutils/logtool/distinfo @@ -0,0 +1 @@ +MD5 (logtool-1.0.1.tar.gz) = 6d6f122ecb77e47326cf57cbe2349f84 diff --git a/sysutils/logtool/files/patch-aa b/sysutils/logtool/files/patch-aa new file mode 100644 index 000000000000..6f3f655400b7 --- /dev/null +++ b/sysutils/logtool/files/patch-aa @@ -0,0 +1,37 @@ +--- logtool/Makefile.orig Sat Dec 30 16:57:27 2000 ++++ logtool/Makefile Sat Dec 30 20:43:49 2000 +@@ -9,12 +9,13 @@ + csv.o html.o raw.o logtool.o main.o + SRC = logtool.c + # These options affect where logtool gets installed +-PREFIX = /usr +-ETCDIR = /etc/logtool ++PREFIX = %%PREFIX%% ++ETCDIR = %%PREFIX%%/etc/logtool + CC = gcc + + # For RedHat (and most other) Linux'es, this should be ideal +-CFLAGS= -Wall -O3 -ansi -pedantic -Werror # -DDEBUG -g # uncomment this for debugging stuff's ++CFLAGS= -I/usr/local/include -Wall -O3 -ansi -pedantic -Werror # -DDEBUG -g # uncomment this for debugging stuff's ++LIBS= -L/usr/local/lib -lgnugetopt + + # For portability to non-linux'es/non-standard-linux'es, try this + # CFLAGS = -Wall -Werror +@@ -22,7 +23,7 @@ + + ### The main build stuff + logtool: logtool.o $(LIB) +- $(CC) -o $(PROG) logtool.o $(LIB) $(ADDCFLAGS) ++ $(CC) -o $(PROG) logtool.o $(LIB) $(ADDCFLAGS) ${LIBS} + @echo "strip $(PROG)" + @strip $(PROG) + +@@ -56,7 +57,7 @@ + + ### How to install this puppy + install: logtool +- mkdir -p /etc/logtool ++ mkdir -p ${ETCDIR} + install -c -m 0644 -o root ../conf/logtool.conf $(ETCDIR)/logtool.conf + install -c -m 0644 -o root ../conf/green $(ETCDIR)/green + install -c -m 0644 -o root ../conf/yellow $(ETCDIR)/yellow diff --git a/sysutils/logtool/files/patch-ab b/sysutils/logtool/files/patch-ab new file mode 100644 index 000000000000..d157f7fb0176 --- /dev/null +++ b/sysutils/logtool/files/patch-ab @@ -0,0 +1,10 @@ +--- logtool/includes.h.orig Sat Dec 30 20:19:32 2000 ++++ logtool/includes.h Sat Dec 30 20:40:09 2000 +@@ -23,6 +23,7 @@ + #include<stdlib.h> + #include<string.h> + #include<getopt.h> ++#include<unistd.h> + #include<regex.h> + #include<errno.h> + diff --git a/sysutils/logtool/files/patch-ac b/sysutils/logtool/files/patch-ac new file mode 100644 index 000000000000..e4a1e31c8f8a --- /dev/null +++ b/sysutils/logtool/files/patch-ac @@ -0,0 +1,11 @@ +--- logtool/logtool.h.orig Sat Dec 30 20:21:40 2000 ++++ logtool/logtool.h Sat Dec 30 20:22:16 2000 +@@ -62,7 +62,7 @@ + * For some reason string.h doesn't define this, so I do it here + * Are there portability problems with strncasesmp or sumpthin? + */ +-int strncasecmp(char *s1, char *s2, size_t size); ++/*int strncasecmp(char *s1, char *s2, size_t size); */ + + + /* diff --git a/sysutils/logtool/files/patch-ad b/sysutils/logtool/files/patch-ad new file mode 100644 index 000000000000..792b3a7404bd --- /dev/null +++ b/sysutils/logtool/files/patch-ad @@ -0,0 +1,11 @@ +--- logtail/Makefile.orig Sat Dec 30 20:17:09 2000 ++++ logtail/Makefile Sat Dec 30 20:17:35 2000 +@@ -2,7 +2,7 @@ + PROG= logtail + CC= gcc + CFLAGS= -Wall -Werror -O3 -ansi -pedantic +-PREFIX=/usr ++PREFIX=%%PREFIX%% + + default: + $(CC) $(CFLAGS) -o $(PROG) $(SRC) diff --git a/sysutils/logtool/pkg-comment b/sysutils/logtool/pkg-comment new file mode 100644 index 000000000000..98e4f29abd9b --- /dev/null +++ b/sysutils/logtool/pkg-comment @@ -0,0 +1 @@ +Parse syslog logfile into a palatable format diff --git a/sysutils/logtool/pkg-descr b/sysutils/logtool/pkg-descr new file mode 100644 index 000000000000..6d066e7ae916 --- /dev/null +++ b/sysutils/logtool/pkg-descr @@ -0,0 +1,20 @@ +Logtool is a command line program that will parse syslog (and syslog- +like) logfiles into a more palatable format. It will take anything +resembling a standard syslog file (this includes syslog-ng, and +probably most of the other variants out there), and crunch it into one +of the following formats for your viewing pleasure: + + - ANSI (colorized for easy "at a glance" viewing) + - ASCII (for e-mail'ed reports, and term's that don't support color) + - CSV (for importing into your favorite spreadsheet/database) + - HTML (for generating web pages) + - RAW (for no good reason) + +It can be configured to parse the data any one of several ways, +including stripping the host, and/or program fields, and modifying the +time display format of the log entry's. + +WWW: http://users.digitex.net/~max/ + +-- Ying-Chieh Liao + ijliao@csie.nctu.edu.tw diff --git a/sysutils/logtool/pkg-plist b/sysutils/logtool/pkg-plist new file mode 100644 index 000000000000..6298bf3737f8 --- /dev/null +++ b/sysutils/logtool/pkg-plist @@ -0,0 +1,8 @@ +bin/logtool +bin/logtail +etc/logtool/exclude +etc/logtool/green +etc/logtool/include +etc/logtool/logtool.conf +etc/logtool/yellow +@dirrm etc/logtool |