Date: Fri, 21 Jan 2000 14:39:04 GMT From: tmb_ports@maddog.u-net.com To: FreeBSD-gnats-submit@freebsd.org Subject: ports/16254: New-port: www/cronolog Message-ID: <200001211439.OAA08591@tyne.sophos.com>
next in thread | raw e-mail | index | archive | help
>Number: 16254 >Category: ports >Synopsis: New port: www/cronolog >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Jan 21 06:40:01 PST 2000 >Closed-Date: >Last-Modified: >Originator: Mark Blackman >Release: FreeBSD 4.0-20000118-CURRENT i386 >Organization: private >Environment: >Description: >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # cronolog # cronolog/Makefile # cronolog/pkg # cronolog/pkg/COMMENT # cronolog/pkg/DESCR # cronolog/pkg/PLIST # cronolog/files # cronolog/files/md5 # cronolog/patches # cronolog/patches/patch-aa # echo c - cronolog mkdir -p cronolog > /dev/null 2>&1 echo x - cronolog/Makefile sed 's/^X//' >cronolog/Makefile << 'END-of-cronolog/Makefile' X# New ports collection makefile for: cronolog X# Version required: 1.6.1 X# Date created: 20 January 2000 X# Whom: Mark Blackman <tmb_ports@maddog.u-net.com> X# X# $FreeBSD$ X# X XDISTNAME= cronolog-1.6.1 XCATEGORIES= www XMASTER_SITES= http://www.ford-mason.co.uk/resources/cronolog/ X XMAINTAINER= tmb_ports@maddog.u-net.com X XMAN1= cronolog.1m cronosplit.1m X XGNU_CONFIGURE= yes X Xpost-install: X strip ${PREFIX}/sbin/cronolog ${PREFIX}/sbin/cronolog X X.include <bsd.port.mk> END-of-cronolog/Makefile echo c - cronolog/pkg mkdir -p cronolog/pkg > /dev/null 2>&1 echo x - cronolog/pkg/COMMENT sed 's/^X//' >cronolog/pkg/COMMENT << 'END-of-cronolog/pkg/COMMENT' XA web log rotation utility that provides datestamp filenames END-of-cronolog/pkg/COMMENT echo x - cronolog/pkg/DESCR sed 's/^X//' >cronolog/pkg/DESCR << 'END-of-cronolog/pkg/DESCR' X"cronolog" is a simple program that reads log messages from its input Xand writes them to a set of output files, the names of which are Xconstructed using template and the current date and time. The Xtemplate uses the same format specifiers as the Unix date command X(which are the same as the standard C strftime library function). X X"cronolog" is intended to be used in conjunction with a Web server, such Xas Apache to split the access log into daily or monthly logs. For Xexample the Apache configuration directives: X X TransferLog "|/www/sbin/cronolog /www/logs/%Y/%m/%d/access.log" X ErrorLog "|/www/sbin/cronolog /www/logs/%Y/%m/%d/errors.log" X Xwould instruct Apache to pipe its access and error log messages into Xseparate copies of cronolog, which would create new log files each day Xin a directory hierarchy structured by date, i.e. on 31 December 1996 Xmessages would be written to X X /www/logs/1996/12/31/access.log X /www/logs/1996/12/31/errors.log X Xafter midnight the files X X /www/logs/1997/01/01/access.log X /www/logs/1997/01/01/errors.log X Xwould be used, with the directories 1997, 1997/01 and 1997/01/01 being Xcreated if they did not already exist. X XThe most up-to-date version of "cronolog" can be found at: X X WWW: http://www.ford-mason.co.uk/resources/cronolog/ X X- Mark Blackman Xtmb@maddog.u-net.com END-of-cronolog/pkg/DESCR echo x - cronolog/pkg/PLIST sed 's/^X//' >cronolog/pkg/PLIST << 'END-of-cronolog/pkg/PLIST' Xinfo/cronolog.info Xsbin/cronolog Xsbin/cronosplit END-of-cronolog/pkg/PLIST echo c - cronolog/files mkdir -p cronolog/files > /dev/null 2>&1 echo x - cronolog/files/md5 sed 's/^X//' >cronolog/files/md5 << 'END-of-cronolog/files/md5' XMD5 (cronolog-1.6.1.tar.gz) = 8c9a3ecf3ea8d39daa5eebea91112846 END-of-cronolog/files/md5 echo c - cronolog/patches mkdir -p cronolog/patches > /dev/null 2>&1 echo x - cronolog/patches/patch-aa sed 's/^X//' >cronolog/patches/patch-aa << 'END-of-cronolog/patches/patch-aa' X*** - Thu Jan 20 16:03:33 2000 X--- src/cronoutils.c Thu Jan 20 16:01:37 2000 X*************** X*** 71,77 **** X X #include "cronoutils.h" X extern char *tzname[2]; X- extern long int timezone; X X X /* debug_file is the file to output debug messages to. No debug X--- 71,76 ---- END-of-cronolog/patches/patch-aa exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200001211439.OAA08591>