---
name: cronolog-devel
version: 1.7.0
origin: sysutils/cronolog-devel
comment: A web log rotation utility that provides datestamp filenames
arch: freebsd:9:x86:64
www: http://cronolog.org/
maintainer: ports@FreeBSD.org
prefix: /usr/local
licenselogic: single
flatsize: 47443
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]
files:
  /usr/local/info/cronolog.info: ffb915e5052c036b6b91b60a4ab936a5c9e119238188e71afc28cc522573e7ef
  /usr/local/man/man1/cronolog.1m.gz: e5e8f62aff426234ba9f8b0b884f597c95427c85ccb04994b9697d34cb8a95a9
  /usr/local/man/man1/cronosplit.1m.gz: 5fe5d7a240ef09289d2bd17925e6bae29cbbbb72c1ce9c3463e99454abb29332
  /usr/local/sbin/cronolog: 25fa1eca63c258b815cb05c41ef7ba87b005a98a8015f1c2d1002c5b46e06123
  /usr/local/sbin/cronosplit: fb1817d0bf9551b7b72d8bb276abb73a9c3c220d566df2ce37768fd8d149c1c5
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
