diff options
author | Anders Nordby <anders@FreeBSD.org> | 2001-11-25 20:21:34 +0000 |
---|---|---|
committer | Anders Nordby <anders@FreeBSD.org> | 2001-11-25 20:21:34 +0000 |
commit | d90f4b1e1ccf007b8b7e2871b3df29f7a63bb8a4 (patch) | |
tree | 310f02ab23b6e77b72f4247ebe23b6cd8125bce9 /sysutils | |
parent | Since I can't detect this lib in LIB_DEPENDS, move it into BUILD_DEPENDS (diff) |
Add httplog. Apache log rollover program with strftime(3) filename
support.
Notes
Notes:
svn path=/head/; revision=50546
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 |