Add httplog. Apache log rollover program with strftime(3) filename
support.
This commit is contained in:
parent
e3d0611cf6
commit
d90f4b1e1c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=50546
@ -69,6 +69,7 @@
|
||||
SUBDIR += guitar
|
||||
SUBDIR += gupsc
|
||||
SUBDIR += healthd
|
||||
SUBDIR += httplog
|
||||
SUBDIR += idled
|
||||
SUBDIR += installwatch
|
||||
SUBDIR += ipa
|
||||
|
41
sysutils/httplog/Makefile
Normal file
41
sysutils/httplog/Makefile
Normal file
@ -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>
|
1
sysutils/httplog/distinfo
Normal file
1
sysutils/httplog/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (httplog-1.9.tar.gz) = 504598edb31f02b0d91849a92247f7c0
|
1
sysutils/httplog/pkg-comment
Normal file
1
sysutils/httplog/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
Apache log rollover program with strftime(3) filename support
|
11
sysutils/httplog/pkg-descr
Normal file
11
sysutils/httplog/pkg-descr
Normal file
@ -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>
|
4
sysutils/httplog/pkg-plist
Normal file
4
sysutils/httplog/pkg-plist
Normal file
@ -0,0 +1,4 @@
|
||||
bin/httplog
|
||||
%%PORTDOCS%%share/doc/httplog/ChangeLog
|
||||
%%PORTDOCS%%share/doc/httplog/README
|
||||
%%PORTDOCS%%@dirrm share/doc/httplog
|
Loading…
Reference in New Issue
Block a user