summaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorjedgar <jedgar@FreeBSD.org>2000-01-22 03:10:03 +0000
committerjedgar <jedgar@FreeBSD.org>2000-01-22 03:10:03 +0000
commit3e4776ff24ef9fdcf4eb6183d899d9d798fa666b (patch)
tree6bfc9c897a22cce3cdeb934adc64b402a34a7fa8 /sysutils
parentc92a8020cd3c34306111148d9e5757b104f0ce41 (diff)
downloadFreeBSD-ports-3e4776ff24ef9fdcf4eb6183d899d9d798fa666b.zip
FreeBSD-ports-3e4776ff24ef9fdcf4eb6183d899d9d798fa666b.tar.gz
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>
Diffstat (limited to 'sysutils')
-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 0000000..f0f8860
--- /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 0000000..77f42e0
--- /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 0000000..bc93cd4
--- /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 0000000..7e6c87d
--- /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 0000000..4fba4e0
--- /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 0000000..25f8313
--- /dev/null
+++ b/sysutils/cronolog/pkg-plist
@@ -0,0 +1,3 @@
+info/cronolog.info
+sbin/cronolog
+sbin/cronosplit
OpenPOWER on IntegriCloud