---
name: cronolog
version: 1.6.2_4
origin: sysutils/cronolog
comment: Web log rotation utility that provides datestamp filenames
arch: freebsd:9:x86:64
www: http://cronolog.org/
maintainer: bdrewery@FreeBSD.org
prefix: /usr/local
licenselogic: single
flatsize: 43204
desc: "\"cronolog\" is a simple program that reads log messages from its input\nand
  writes them to a set of output files, the names of which are\nconstructed using
  template and the current date and time.\n\n\"cronolog\" is intended to be used in
  conjunction with a Web server, such\nas Apache to split the access log into daily
  or monthly logs. E.g.:\n\n\tTransferLog \"|/www/sbin/cronolog /www/logs/%25Y/%25m/%25d/access.log\"\n\tErrorLog
  \   \"|/www/sbin/cronolog /www/logs/%25Y/%25m/%25d/errors.log\"\n\nwould instruct
  Apache to pipe its access and error log messages into\nseparate copies of cronolog,
  which would create new log files each day\nin a directory hierarchy structured by
  date, i.e. on 31 December 1996\nmessages would be written to:\n\n\t/www/logs/1996/12/31/access.log\n\t/www/logs/1996/12/31/errors.log\n\nAfter
  midnight the following files would be used:\n\n\t/www/logs/1997/01/01/access.log\n\t/www/logs/1997/01/01/errors.log\n\nWWW:
  http://cronolog.org/\n"
categories: [sysutils]
options: {SETUID_PATCH: on}
files:
  /usr/local/info/cronolog.info: ffb915e5052c036b6b91b60a4ab936a5c9e119238188e71afc28cc522573e7ef
  /usr/local/man/man1/cronolog.1m.gz: 34d8ef7875343a6491cc63bca4b5cc0fa4d067f579009b2b0e3b80f8533931cd
  /usr/local/man/man1/cronosplit.1m.gz: d645175a6696129a1b74d749a892e232e5ab30a725d9b78dd08ae72f315d55d3
  /usr/local/sbin/cronolog: a042c0f103b6955fe917e17cfe4bd4a8a0fcf52a2eca88bf5bda415ef51f5e46
  /usr/local/sbin/cronosplit: ddb56ba38b46c26360004a30fccace48a7ad8a83a91a00de3f4795b23a4e38c9
scripts:
  post-install: |
    file=/usr/local/info/cronolog.info
    install-info --quiet /usr/local/info/cronolog.info ${file%25/*}/dir
  pre-deinstall: |
    if [ -f /usr/local/info/dir ]; then if sed -e '1,/Menu:/d' /usr/local/info/dir | grep -q '^[*] '; then true; else rm /usr/local/info/dir; fi; fi
  post-deinstall: |
    file=/usr/local/info/cronolog.info
    install-info --quiet --delete /usr/local/info/cronolog.info ${file%25/*}/dir
    if [ $(info -d ${file%25/*}  --output - 2>/dev/null | grep -c '^*') -eq 1 ]; then
      rm -f ${file%25/*}/dir
    fi
