diff options
Diffstat (limited to 'sysutils/logtool-devel')
-rw-r--r-- | sysutils/logtool-devel/Makefile | 27 | ||||
-rw-r--r-- | sysutils/logtool-devel/distinfo | 1 | ||||
-rw-r--r-- | sysutils/logtool-devel/files/patch-aa | 37 | ||||
-rw-r--r-- | sysutils/logtool-devel/files/patch-ab | 10 | ||||
-rw-r--r-- | sysutils/logtool-devel/files/patch-ac | 11 | ||||
-rw-r--r-- | sysutils/logtool-devel/files/patch-ad | 11 | ||||
-rw-r--r-- | sysutils/logtool-devel/pkg-comment | 1 | ||||
-rw-r--r-- | sysutils/logtool-devel/pkg-descr | 20 | ||||
-rw-r--r-- | sysutils/logtool-devel/pkg-plist | 8 |
9 files changed, 126 insertions, 0 deletions
diff --git a/sysutils/logtool-devel/Makefile b/sysutils/logtool-devel/Makefile new file mode 100644 index 000000000000..fa42950c7861 --- /dev/null +++ b/sysutils/logtool-devel/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-devel/distinfo b/sysutils/logtool-devel/distinfo new file mode 100644 index 000000000000..ec034f6969cc --- /dev/null +++ b/sysutils/logtool-devel/distinfo @@ -0,0 +1 @@ +MD5 (logtool-1.0.1.tar.gz) = 6d6f122ecb77e47326cf57cbe2349f84 diff --git a/sysutils/logtool-devel/files/patch-aa b/sysutils/logtool-devel/files/patch-aa new file mode 100644 index 000000000000..6f3f655400b7 --- /dev/null +++ b/sysutils/logtool-devel/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-devel/files/patch-ab b/sysutils/logtool-devel/files/patch-ab new file mode 100644 index 000000000000..d157f7fb0176 --- /dev/null +++ b/sysutils/logtool-devel/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-devel/files/patch-ac b/sysutils/logtool-devel/files/patch-ac new file mode 100644 index 000000000000..e4a1e31c8f8a --- /dev/null +++ b/sysutils/logtool-devel/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-devel/files/patch-ad b/sysutils/logtool-devel/files/patch-ad new file mode 100644 index 000000000000..792b3a7404bd --- /dev/null +++ b/sysutils/logtool-devel/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-devel/pkg-comment b/sysutils/logtool-devel/pkg-comment new file mode 100644 index 000000000000..98e4f29abd9b --- /dev/null +++ b/sysutils/logtool-devel/pkg-comment @@ -0,0 +1 @@ +Parse syslog logfile into a palatable format diff --git a/sysutils/logtool-devel/pkg-descr b/sysutils/logtool-devel/pkg-descr new file mode 100644 index 000000000000..6d066e7ae916 --- /dev/null +++ b/sysutils/logtool-devel/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-devel/pkg-plist b/sysutils/logtool-devel/pkg-plist new file mode 100644 index 000000000000..6298bf3737f8 --- /dev/null +++ b/sysutils/logtool-devel/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 |