{ "name": "logrotate", "version": "3.22.0", "summary": "logrotate: rotates, compresses and removes log files by size or age, run from cron", "category": "tool", "license": "GPL-2.0-or-later", "homepage": "https://github.com/logrotate/logrotate", "source": { "url": "https://github.com/logrotate/logrotate/releases/download/3.22.0/logrotate-3.22.0.tar.xz", "sha256": "42b4080ee99c9fb6a7d12d8e787637d057a635194e25971997eebbe8d5e57618" }, "watch": {"kind": "github-release", "repo": "logrotate/logrotate"}, "deps": [ "popt" ], "env_packages": [], "static": true, "nss": true, "check": "t=$(mktemp -d) && mkdir \"$t/log\" && sbin/logrotate --version 2>&1 | has '^logrotate 3.22.0' && printf 'line one\\nline two\\n' > \"$t/log/app.log\" && printf '%s/log/app.log {\\n rotate 3\\n size 1\\n compress\\n delaycompress\\n missingok\\n create 0640\\n}\\n' \"$t\" > \"$t/lr.conf\" && sbin/logrotate -s \"$t/state\" \"$t/lr.conf\" && [ -f \"$t/log/app.log.1\" ] && [ ! -s \"$t/log/app.log\" ] && has -x 'line two' < \"$t/log/app.log.1\" && printf 'line three\\n' > \"$t/log/app.log\" && sbin/logrotate -s \"$t/state\" \"$t/lr.conf\" && [ -f \"$t/log/app.log.2.gz\" ] && gzip -dc \"$t/log/app.log.2.gz\" | has -x 'line two' && has 'app.log' < \"$t/state\" && echo 'logrotate 3.22.0: a log rotated twice by size, the older copy compressed, the state file written'" }