diff options
author | Beech Rintoul <beech@FreeBSD.org> | 2010-12-28 20:16:19 +0000 |
---|---|---|
committer | Beech Rintoul <beech@FreeBSD.org> | 2010-12-28 20:16:19 +0000 |
commit | 9c0ebd86db15f7e1495030f0dfa070133fe40a7a (patch) | |
tree | a1a11116a6e5f3e68e746d90852ad4c480a9c2c4 /sysutils/cronolog-devel/files/patch-src__cronolog.c | |
parent | Update to 0.7.5. (diff) |
New port, cronolog-devel
"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.
"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. E.g.:
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 following files would be used:
/www/logs/1997/01/01/access.log
/www/logs/1997/01/01/errors.log
WWW: http://cronolog.org/
PR: ports/152794
Submitted by: Jason Helfman <jhelfman at experts-exchange.com>
Approved by: itetcu (mentor) (implicit)
Notes
Notes:
svn path=/head/; revision=267090
Diffstat (limited to 'sysutils/cronolog-devel/files/patch-src__cronolog.c')
-rw-r--r-- | sysutils/cronolog-devel/files/patch-src__cronolog.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sysutils/cronolog-devel/files/patch-src__cronolog.c b/sysutils/cronolog-devel/files/patch-src__cronolog.c new file mode 100644 index 000000000000..460672cfa553 --- /dev/null +++ b/sysutils/cronolog-devel/files/patch-src__cronolog.c @@ -0,0 +1,13 @@ +--- ./src/cronolog.c.orig 2010-12-02 13:41:57.000000000 -0800 ++++ ./src/cronolog.c 2010-12-02 13:42:30.000000000 -0800 +@@ -84,8 +84,8 @@ + + #ifndef _WIN32 + #define _GNU_SOURCE 1 +-#define OPEN_EXCLUSIVE O_WRONLY|O_CREAT|O_EXCL|O_APPEND|O_LARGEFILE +-#define OPEN_SHARED O_WRONLY|O_CREAT|O_APPEND|O_LARGEFILE ++#define OPEN_EXCLUSIVE O_WRONLY|O_CREAT|O_EXCL|O_APPEND ++#define OPEN_SHARED O_WRONLY|O_CREAT|O_APPEND + #else + #define OPEN_EXCLUSIVE O_WRONLY|O_CREAT|O_EXCL|O_APPEND + #define OPEN_SHARED O_WRONLY|O_CREAT|O_APPEND |