./sysutils/logrotate, Daemon to rotate, compress, remove and mail system log files

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 3.21.0, Package name: logrotate-3.21.0, Maintainer: nils

The logrotate utility is designed to simplify the administration of
log files on a system which generates a lot of log files. Logrotate
allows for the automatic rotation compression, removal and mailing of
log files. Logrotate can be set to handle a log file daily, weekly,
monthly or when the log file gets to a certain size. Normally,
logrotate runs as a daily cron job.


Required to run:
[devel/popt]

Required to build:
[pkgtools/cwrappers]

Master sites:

Filesize: 226.074 KB

Version history: (Expand)


CVS history: (Expand)


   2023-04-23 19:18:39 by Nils Ratusznik | Files touched by this commit (3)
Log message:
Update logrotate to version 3.21.0.

Pkgsrc changes:
 * Updated logrotate.conf patch following a fix (typo) from the project ;
 * Update checksums.

Upstream changes:
 * logrotate-3.18.1 :
    - fix memory leaks on error-handling paths
    - make renamecopy and copytruncate override each other
    - improve error handling in the parser of configuration files
    - improve user experience for non-privileged users of logrotate
 * logrotate-3.19.0 :
    - continue on EINTR in compressLogFile()
    - enforce stricter parsing of configuration files
    - avoid confusing error message in debug mode
    - fix full_write() on incomplete write
    - do not use alloca() any more
    - do not rotate hard links unless allowhardlink is used
    - change directory after dropping privileges
    - add defence in depth when dropping privileges
    - remove invalid configuration on error
    - do not open symbolic link log files by accident
    - do not write state if state file is /dev/null
 * logrotate-3.20.0 :
    - fix potential DoS from unprivileged users via
      the state file (CVE-2022-1348)
    - fix a misleading debug message with copytruncate and rotate 0
    - add support for unsigned time_t
    - do not lock state file /dev/null
 * logrotate-3.20.1 :
    - drop world-readable permission on state file even when ACLs are enabled
 * logrotate-3.21.0 :
    - add ignoreduplicates directive to allow duplicate file matches
    - add --wait-for-state-lock option to wait for lock on the state file
    - avoid failure when an anonymous non-privileged user runs logrotate
    - support home dir expansion in olddir
    - reduce unnecessary rename operations with start N where N > 1
    - unify handling of log levels
    - do not print error: when exit code is unaffected
   2021-10-26 13:20:30 by Nia Alarie | Files touched by this commit (630)
Log message:
sysutils: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes
   2021-10-07 16:58:44 by Nia Alarie | Files touched by this commit (630)
Log message:
sysutils: Remove SHA1 hashes for distfiles
   2021-01-08 09:58:30 by Havard Eidnes | Files touched by this commit (3)
Log message:
Update logrotate to version 3.18.0.

Pkgsrc changes:
 * Remove patch integrated upstream.
 * Update checksums.

Upstream changes:

[3.18.0] - 2021-01-08
=====================
  - allow UIDs and GIDs to be specified numerically (#217)
  - add support for Zstandard compressed files (#355)
  - make `delaycompress` not to fail with `rotate 0` (#341)
   2020-10-08 09:50:51 by Thomas Klausner | Files touched by this commit (2)
Log message:
logrotate: fix build on NetBSD

(no secure_getenv function)
   2020-10-01 22:14:56 by Nils Ratusznik | Files touched by this commit (3)
Log message:
Updated sysutils/logrotate to 3.17.0.
Upstream changes :
* lock state file to prevent parallel execution of logrotate
* add .bak extension to default taboo list
* allow to pass a home-relative path to include
* switch_user_permanently: skip switchback check if switched to root
* logrotate.service: enable ProtectClock to restrict setting of clock
* delete old logs hit by maxage regardless of dateext

Pkgsrc changes :
* included a patch made after release in order to get logrotate compiled on *BSD :
  https://github.com/logrotate/logrotate/pull/344
   2020-04-21 19:01:43 by Nils Ratusznik | Files touched by this commit (3)
Log message:
Update sysutils/logroate to 3.16.0.

Upstream changelog:
* fix compilation with gcc-10, which defaults to -fno-common (#288)
* reduce number of open() operations on state file (#282)
* validate user/group given to the su directive early (#276)
* add hardening options to systemd unit file in examples (#274, #291)
* fix crash of logrotate on invalid configuration with include (#271)
* fix heap buffer overflow on too long logfile extension (#270)

Pkgsrc changes:
* a systemd example service file is added to the examples;
* a btmp and wtmp example configurations files are also added, but only
btmp is copied alongside logrotate.conf: while the 2 config files were at first
present in logrotate.conf, only btmp is present on NetBSD ;
* the GITHUB_RELEASE variable is moved for pkglint compliance.
   2019-03-20 13:29:37 by Havard Eidnes | Files touched by this commit (3)
Log message:
Back out suggested fix to ship args to scripts.
It was not accepted upstream; use "$@" in the script section to ship args.
We'll see if a documentation improvement can be suggested instead.
Bump PKGREVISION.