head 1.2; access; symbols pkgsrc-2026Q1:1.2.0.24 pkgsrc-2026Q1-base:1.2 pkgsrc-2025Q4:1.2.0.22 pkgsrc-2025Q4-base:1.2 pkgsrc-2025Q3:1.2.0.20 pkgsrc-2025Q3-base:1.2 pkgsrc-2025Q2:1.2.0.18 pkgsrc-2025Q2-base:1.2 pkgsrc-2025Q1:1.2.0.16 pkgsrc-2025Q1-base:1.2 pkgsrc-2024Q4:1.2.0.14 pkgsrc-2024Q4-base:1.2 pkgsrc-2024Q3:1.2.0.12 pkgsrc-2024Q3-base:1.2 pkgsrc-2024Q2:1.2.0.10 pkgsrc-2024Q2-base:1.2 pkgsrc-2024Q1:1.2.0.8 pkgsrc-2024Q1-base:1.2 pkgsrc-2023Q4:1.2.0.6 pkgsrc-2023Q4-base:1.2 pkgsrc-2023Q3:1.2.0.4 pkgsrc-2023Q3-base:1.2 pkgsrc-2023Q2:1.2.0.2 pkgsrc-2023Q2-base:1.2 pkgsrc-2023Q1:1.1.0.34 pkgsrc-2023Q1-base:1.1 pkgsrc-2022Q4:1.1.0.32 pkgsrc-2022Q4-base:1.1 pkgsrc-2022Q3:1.1.0.30 pkgsrc-2022Q3-base:1.1 pkgsrc-2022Q2:1.1.0.28 pkgsrc-2022Q2-base:1.1 pkgsrc-2022Q1:1.1.0.26 pkgsrc-2022Q1-base:1.1 pkgsrc-2021Q4:1.1.0.24 pkgsrc-2021Q4-base:1.1 pkgsrc-2021Q3:1.1.0.22 pkgsrc-2021Q3-base:1.1 pkgsrc-2021Q2:1.1.0.20 pkgsrc-2021Q2-base:1.1 pkgsrc-2021Q1:1.1.0.18 pkgsrc-2021Q1-base:1.1 pkgsrc-2020Q4:1.1.0.16 pkgsrc-2020Q4-base:1.1 pkgsrc-2020Q3:1.1.0.14 pkgsrc-2020Q3-base:1.1 pkgsrc-2020Q2:1.1.0.12 pkgsrc-2020Q2-base:1.1 pkgsrc-2020Q1:1.1.0.8 pkgsrc-2020Q1-base:1.1 pkgsrc-2019Q4:1.1.0.10 pkgsrc-2019Q4-base:1.1 pkgsrc-2019Q3:1.1.0.6 pkgsrc-2019Q3-base:1.1 pkgsrc-2019Q2:1.1.0.4 pkgsrc-2019Q2-base:1.1 pkgsrc-2019Q1:1.1.0.2 pkgsrc-2019Q1-base:1.1; locks; strict; comment @# @; 1.2 date 2023.04.23.17.18.39; author nils; state Exp; branches; next 1.1; commitid daRaWw7xwwFJPfmE; 1.1 date 2019.03.20.10.34.10; author he; state Exp; branches; next ; commitid FElLT2Qblim6I5gB; desc @@ 1.2 log @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 @ text @$NetBSD: patch-examples_logrotate.conf,v 1.1 2019/03/20 10:34:10 he Exp $ Use pkgsrc config directory. --- examples/logrotate.conf.orig 2021-04-16 16:32:39.000000000 +0000 +++ examples/logrotate.conf @@@@ -18,6 +18,6 @@@@ dateext #compress # packages drop log rotation information into this directory -include /etc/logrotate.d +include @@PKG_SYSCONFDIR@@/logrotate.d # system-specific logs may also be configured here. @ 1.1 log @Update logrotate to version 3.15.0. Pkgsrc changes: * Track rename of logrotate-default to logrotate.conf * Add a fix so that the log file name is actually passed to the various script hooks(!) https://github.com/logrotate/logrotate/pull/245 Upstream changes: 3.15.0 ====== * timer unit: change trigger fuzz from 12h to 1h (#230) * service unit: only run if /var/log is mounted (#230) * preserve fractional part of timestamps when compressing (#226) * re-indent source code using spaces only (#188) * minage: avoid rounding issue while comparing the amount of seconds (#36) * never remove old log files if rotate -1 is specified (#202) * return non-zero exit status if a config file contains an error (#199) * make copytruncate work with rotate 0 (#191) * warn user if both size and the time interval options are used (#192) * pass rotated log file name as the 2nd argument of the postrotate script when sharedscript is not enabled (#193) * rename logrotate-default to logrotate.conf (#187) 3.14.0 ====== * make configure show support status for SELinux and ACL at the end (#179) * make logrotate build again on FreeBSD (#178) * move wtmp and btmp definitions from logrotate.conf to * separate configuration files in logrotate.d (#168) * print a warning about logrotate doing nothing when -d is used (#165) * do not reject executable config files (#166) * add hardening options to logrotate.service in examples (#143) * fix spurious compressor failure when using su and compress (#169) * keep logrotate version in .tarball-version in release tarballs (#156) * introduce the hourago configuration directive (#159) * ignore empty patterns in tabooext to avoid exclusion of everything (#160) * properly report skipped test cases instead of pretending success 3.13.0 ====== * make distribution tarballs report logrotate version properly (RHBZ#1500264) * make (un)compress work even if stdin and/or stdout are closed (#154) * remove -s from DEFAULT_MAIL_COMMAND and improve its documenation (#152) * uncompress logs before mailing them even if delaycompress is enabled (#151) * handle unlink of a non-existing log file as a warning only (#144) * include compile-time options in the output of logrotate --version (#145) * make logrotate --version print to stdout instead of stderr (#145) * flush write buffers before syncing state file (#148) * specify (un)compress utility explicitly in tests (#137) * enable running tests in parallel (#132) * explicitly map root UID/GID to 0 on Cygwin (#133) * add .dpkg-bak and .dpkg-del to default tabooext list (#134) 3.12.3 ====== * copy and copytruncate directives now work together again * unlink() is no longer preceded by open() unless shred is enabled (#124) * compress and uncompress now take commands from $PATH, too (#122) 3.12.2 ====== * build fixes related to -Werror (#119) and -Werror=format= (#108) * configure --enable-werror now controls use of the -Werror flag (#123) 3.12.1 ====== * Included forgotten build-aux directory in release tarballs. 3.12.0 ====== * Fixed accident removal of rotated files with dateext. (#118) * Line comments inside globs in config files are now skipped. (#109) * logrotate now recovers from a corrupted state file. (#45) * Makefile.legacy has been removed. (#103) * config.h is now generated by autotools. (#102 and #103) * createolddir now creates old directory as unprivileged user. (#114) * weekly rotations are now predictable and configurable. (#93) * Errors in config files are no longer treated as fatal errors. (#81) * configure --with-default-mail-command specifies default mail command. (#100) * Fixed heap buffer overflow when parsing crafted config file. (#33) @ text @d1 1 a1 1 $NetBSD$ d5 1 a5 1 --- examples/logrotate.conf.orig 2018-05-25 12:31:21.000000000 +0000 d7 1 a7 1 @@@@ -15,6 +15,6 @@@@ dateext d14 1 a14 1 # system-specific logs may be also be configured here. @