summaryrefslogtreecommitdiff
path: root/sysutils/cronolog
diff options
context:
space:
mode:
authorChris D. Faulhaber <jedgar@FreeBSD.org>2000-01-22 03:10:03 +0000
committerChris D. Faulhaber <jedgar@FreeBSD.org>2000-01-22 03:10:03 +0000
commit61d7daff10a3fdf0d70ea2f4998f84fbefd9abbc (patch)
treed9f5f9510ce0f1b2997e37cbcd17a909366f0b47 /sysutils/cronolog
parentFix WWW (diff)
cronolog is a simple program that reads log messages from its input
and writes them to a set of output files, the names of which are constructed using template and the current date and time. The template uses the same format specifiers as the Unix date command (which are the same as the standard C strftime library function). PR: 16254 Submitted by: Mark Blackman <tmb_ports@maddog.u-net.com>
Notes
Notes: svn path=/head/; revision=24894
Diffstat (limited to 'sysutils/cronolog')
-rw-r--r--sysutils/cronolog/Makefile22
-rw-r--r--sysutils/cronolog/distinfo1
-rw-r--r--sysutils/cronolog/files/patch-aa12
-rw-r--r--sysutils/cronolog/pkg-comment1
-rw-r--r--sysutils/cronolog/pkg-descr35
-rw-r--r--sysutils/cronolog/pkg-plist3
6 files changed, 74 insertions, 0 deletions
diff --git a/sysutils/cronolog/Makefile b/sysutils/cronolog/Makefile
new file mode 100644
index 000000000000..f0f886015db8
--- /dev/null
+++ b/sysutils/cronolog/Makefile
@@ -0,0 +1,22 @@
+# New ports collection makefile for: cronolog
+# Version required: 1.6.1
+# Date created: 20 January 2000
+# Whom: Mark Blackman <tmb_ports@maddog.u-net.com>
+#
+# $FreeBSD$
+#
+
+DISTNAME= cronolog-1.6.1
+CATEGORIES= sysutils
+MASTER_SITES= http://www.ford-mason.co.uk/resources/cronolog/
+
+MAINTAINER= tmb_ports@maddog.u-net.com
+
+MAN1= cronolog.1m cronosplit.1m
+
+GNU_CONFIGURE= yes
+
+post-install:
+ ${STRIP} ${PREFIX}/sbin/cronolog ${PREFIX}/sbin/cronolog
+
+.include <bsd.port.mk>
diff --git a/sysutils/cronolog/distinfo b/sysutils/cronolog/distinfo
new file mode 100644
index 000000000000..77f42e015624
--- /dev/null
+++ b/sysutils/cronolog/distinfo
@@ -0,0 +1 @@
+MD5 (cronolog-1.6.1.tar.gz) = 8c9a3ecf3ea8d39daa5eebea91112846
diff --git a/sysutils/cronolog/files/patch-aa b/sysutils/cronolog/files/patch-aa
new file mode 100644
index 000000000000..bc93cd4d4038
--- /dev/null
+++ b/sysutils/cronolog/files/patch-aa
@@ -0,0 +1,12 @@
+*** - Thu Jan 20 16:03:33 2000
+--- src/cronoutils.c Thu Jan 20 16:01:37 2000
+***************
+*** 71,77 ****
+
+ #include "cronoutils.h"
+ extern char *tzname[2];
+- extern long int timezone;
+
+
+ /* debug_file is the file to output debug messages to. No debug
+--- 71,76 ----
diff --git a/sysutils/cronolog/pkg-comment b/sysutils/cronolog/pkg-comment
new file mode 100644
index 000000000000..7e6c87dbb225
--- /dev/null
+++ b/sysutils/cronolog/pkg-comment
@@ -0,0 +1 @@
+A web log rotation utility that provides datestamp filenames
diff --git a/sysutils/cronolog/pkg-descr b/sysutils/cronolog/pkg-descr
new file mode 100644
index 000000000000..4fba4e00e28c
--- /dev/null
+++ b/sysutils/cronolog/pkg-descr
@@ -0,0 +1,35 @@
+"cronolog" is a simple program that reads log messages from its input
+and writes them to a set of output files, the names of which are
+constructed using template and the current date and time. The
+template uses the same format specifiers as the Unix date command
+(which are the same as the standard C strftime library function).
+
+"cronolog" is intended to be used in conjunction with a Web server, such
+as Apache to split the access log into daily or monthly logs. For
+example the Apache configuration directives:
+
+ TransferLog "|/www/sbin/cronolog /www/logs/%Y/%m/%d/access.log"
+ ErrorLog "|/www/sbin/cronolog /www/logs/%Y/%m/%d/errors.log"
+
+would instruct Apache to pipe its access and error log messages into
+separate copies of cronolog, which would create new log files each day
+in a directory hierarchy structured by date, i.e. on 31 December 1996
+messages would be written to
+
+ /www/logs/1996/12/31/access.log
+ /www/logs/1996/12/31/errors.log
+
+after midnight the files
+
+ /www/logs/1997/01/01/access.log
+ /www/logs/1997/01/01/errors.log
+
+would be used, with the directories 1997, 1997/01 and 1997/01/01 being
+created if they did not already exist.
+
+The most up-to-date version of "cronolog" can be found at:
+
+ WWW: http://www.ford-mason.co.uk/resources/cronolog/
+
+- Mark Blackman
+tmb@maddog.u-net.com
diff --git a/sysutils/cronolog/pkg-plist b/sysutils/cronolog/pkg-plist
new file mode 100644
index 000000000000..25f83137c733
--- /dev/null
+++ b/sysutils/cronolog/pkg-plist
@@ -0,0 +1,3 @@
+info/cronolog.info
+sbin/cronolog
+sbin/cronosplit