diff options
author | anders <anders@FreeBSD.org> | 2001-11-26 04:21:34 +0800 |
---|---|---|
committer | anders <anders@FreeBSD.org> | 2001-11-26 04:21:34 +0800 |
commit | 83247282bc01828bbc35668ad308e0caa6cd070f (patch) | |
tree | 70c9567765d92ff346de4d6b7bea0f61206cdea4 /sysutils | |
parent | 80651e3a08b13ec4d7c96bd6d5d641055afdb0f0 (diff) | |
download | freebsd-ports-gnome-83247282bc01828bbc35668ad308e0caa6cd070f.tar.gz freebsd-ports-gnome-83247282bc01828bbc35668ad308e0caa6cd070f.tar.zst freebsd-ports-gnome-83247282bc01828bbc35668ad308e0caa6cd070f.zip |
Add httplog. Apache log rollover program with strftime(3) filename
support.
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/Makefile | 1 | ||||
-rw-r--r-- | sysutils/httplog/Makefile | 41 | ||||
-rw-r--r-- | sysutils/httplog/distinfo | 1 | ||||
-rw-r--r-- | sysutils/httplog/pkg-comment | 1 | ||||
-rw-r--r-- | sysutils/httplog/pkg-descr | 11 | ||||
-rw-r--r-- | sysutils/httplog/pkg-plist | 4 |
6 files changed, 59 insertions, 0 deletions
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@<wait.h>@<sys/wait.h>@" 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 <bsd.port.mk> 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 <anders@FreeBSD.org> 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 |