From d90f4b1e1ccf007b8b7e2871b3df29f7a63bb8a4 Mon Sep 17 00:00:00 2001 From: Anders Nordby Date: Sun, 25 Nov 2001 20:21:34 +0000 Subject: [PATCH] Add httplog. Apache log rollover program with strftime(3) filename support. --- sysutils/Makefile | 1 + sysutils/httplog/Makefile | 41 ++++++++++++++++++++++++++++++++++++ sysutils/httplog/distinfo | 1 + sysutils/httplog/pkg-comment | 1 + sysutils/httplog/pkg-descr | 11 ++++++++++ sysutils/httplog/pkg-plist | 4 ++++ 6 files changed, 59 insertions(+) create mode 100644 sysutils/httplog/Makefile create mode 100644 sysutils/httplog/distinfo create mode 100644 sysutils/httplog/pkg-comment create mode 100644 sysutils/httplog/pkg-descr create mode 100644 sysutils/httplog/pkg-plist diff --git a/sysutils/Makefile b/sysutils/Makefile index 42f0ff27b34d..f73758552916 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -69,6 +69,7 @@ SUBDIR += guitar SUBDIR += gupsc SUBDIR += healthd + SUBDIR += httplog SUBDIR += idled SUBDIR += installwatch SUBDIR += ipa diff --git a/sysutils/httplog/Makefile b/sysutils/httplog/Makefile new file mode 100644 index 000000000000..d1d67df4241a --- /dev/null +++ b/sysutils/httplog/Makefile @@ -0,0 +1,41 @@ +# New ports collection makefile for: httplog +# Date created: 25 November 2001 +# Whom: anders +# +# $FreeBSD$ +# + +PORTNAME= httplog +PORTVERSION= 1.9 +CATEGORIES= sysutils www +MASTER_SITES= http://nutbar.chemlab.org/downloads/programs/ \ + ftp://ftp.nuug.no/pub/anders/distfiles/ + +MAINTAINER= ports@FreeBSD.org + +MAN8= httplog.8 + +DOCS= ChangeLog README + +post-patch: + (cd ${WRKSRC} && printf \ + "#define VERSION \"1.9\"\n#define USE_ZLIB\n#define USE_DEBUG\n" \ + >defines.h && \ + ${PERL} -pi -e "s@@@" httplog.c && \ + ${PERL} -pi -e "s@/var/lib/apache/bin/httplog@${PREFIX}/bin/httplog@" \ + httplog.8) + +do-build: + (cd ${WRKSRC} && ${CC} ${CFLAGS} -o httplog httplog.c -lz) + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/httplog ${PREFIX}/bin/ + ${INSTALL_MAN} ${WRKSRC}/httplog.8 ${PREFIX}/man/man8/ +.if !defined(NOPORTDOCS) + ${INSTALL} -d -o root -g wheel -m 0755 ${DOCSDIR} +.for f in ${DOCS} + ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/ +.endfor +.endif + +.include diff --git a/sysutils/httplog/distinfo b/sysutils/httplog/distinfo new file mode 100644 index 000000000000..623f054abfef --- /dev/null +++ b/sysutils/httplog/distinfo @@ -0,0 +1 @@ +MD5 (httplog-1.9.tar.gz) = 504598edb31f02b0d91849a92247f7c0 diff --git a/sysutils/httplog/pkg-comment b/sysutils/httplog/pkg-comment new file mode 100644 index 000000000000..abaaf42256a4 --- /dev/null +++ b/sysutils/httplog/pkg-comment @@ -0,0 +1 @@ +Apache log rollover program with strftime(3) filename support diff --git a/sysutils/httplog/pkg-descr b/sysutils/httplog/pkg-descr new file mode 100644 index 000000000000..ea419610c358 --- /dev/null +++ b/sysutils/httplog/pkg-descr @@ -0,0 +1,11 @@ +httplog is a replacement for Apache's 'rotatelogs' and Andrew Ford's +'chronolog'. It allows you to specify a logfile using strftime paramaters in +the filename to act as a template. This means that the logs in your logfiles +will also be sorted according to the filename. For example, if you specify a +logfile of /var/log/http%Y%m%d.log, a new log file would be generated each day, +with content for only that one day. It also supports compression of logfiles +using gzip, and many other useful functions. + +WWW: http://nutbar.chemlab.org/ + +- Anders Nordby diff --git a/sysutils/httplog/pkg-plist b/sysutils/httplog/pkg-plist new file mode 100644 index 000000000000..ac94d84087db --- /dev/null +++ b/sysutils/httplog/pkg-plist @@ -0,0 +1,4 @@ +bin/httplog +%%PORTDOCS%%share/doc/httplog/ChangeLog +%%PORTDOCS%%share/doc/httplog/README +%%PORTDOCS%%@dirrm share/doc/httplog