summaryrefslogtreecommitdiff
path: root/sysutils/logrotate
AgeCommit message (Collapse)AuthorFilesLines
2021-10-26sysutils: Replace RMD160 checksums with BLAKE2s checksumsnia1-2/+2
All checksums have been double-checked against existing RMD160 and SHA512 hashes
2021-10-07sysutils: Remove SHA1 hashes for distfilesnia1-2/+1
2021-01-08Update logrotate to version 3.18.0.he3-23/+7
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-08logrotate: fix build on NetBSDwiz2-5/+9
(no secure_getenv function)
2020-10-01Updated sysutils/logrotate to 3.17.0.nils3-8/+24
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-21Update sysutils/logroate to 3.16.0.nils3-12/+23
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-20Back out suggested fix to ship args to scripts.he3-22/+3
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.
2019-03-20Update logrotate to version 3.15.0.he6-73/+50
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)
2017-03-06* Fix compilation with GCC, based on https://github.com/joyent/pkgsrc/pull/470.fhajny7-53/+62
* Use proper Github support, use tagged releases. * Use upstream install target. * Cleanup and legibility.
2017-01-26Updated to version 3.11.0.nils7-49/+38
Upstream Changelog : - Add taboopat configuration directive to exclude configuration files based on globing patterns. - Allow to change default state path at build time (via the --with-state-file-path option of the configure script). - Automatically determine resulting file suffix based on the compression program in use. - Preserve SELinux context with compress and sharedscripts properly. - Rename already existing output files to avoid collisions. - Import systemd service and timer for logrotate from openSUSE. - Introduce the addextension configuration directive. - Create CONTRIBUTING.md with instructions for logrotate contributors. - Maintain ChangeLog.md instead of the legacy CHANGES file. - Make createolddir configuration directive preserve sticky bit. - Add minage configuration directive to specify minimum file age to rotate. - Avoid using local implementation of strndup() and asprintf() if these functions are available at build time. - Fix parsing of su directive to accept usernames starting with numeric symbols. - Make sure that 64-bit file offsets are used on 32-bit systems. Pkgsrc changes : - due to (not so) new compilation system, and recent changes for the manpage, patch-logrotate.8 is now unnecessary and removed ; - fixed compilation issue in config.c about libgen.h ; - updated existing patches to work with new version.
2016-08-03Updated to version 3.10.0. Changelog :nils3-56/+8
3.9.2 -> 3.10.0 : - Legacy Makefile renamed to Makefile.legacy, will be removed eventually. - Fix 'make dist' and 'make distcheck' to produce a usable release tarball. - Fix 'olddir' usage with wildcard in the middle of path in the pattern definition when the pattern did not match any log file. - Remove half-rotated files when rotation of particular log file is skipped because of an error during copy or compression. It's not in the official changelog, but compilation errors also have been fixed for NetBSD, so patches/patch-config.c is not necessary anymore.
2016-06-09Fix HOMEPAGE to be copy'n'pastable.wiz1-2/+2
2016-02-24fixed silly typonils1-2/+2
2016-02-24Updated to version 3.9.2. Changelog :nils5-26/+62
3.9.1 -> 3.9.2 - Upstream moved to GitHub: https://github.com/logrotate/logrotate. - Add support for %M, %S and %V in "dateext" directive. - Fix bad filename in subject of email when "compress" and "maillast" is used. - Allow rotating files created before 1996. - Fix compilation errors on NetBSD caused by "array subscript has type 'char' in config.c". - Fix matching subdirectories on BSD systems for patterns like "*/log" in situation where logrotate tried to match "foo/log" even when "foo" has not been a directory. - Fix logging dates in debug messages. - Remove state file entries for logs which do not exist and have not been rotated for more than a year. - Fix poor performance with big state file. - Support logging to syslog by using '-l syslog'. - Allow running test-suite using dash. Pkgsrc changes : - patch for Makefile.am removed thanks to fixes for compilation errors - however, some compilation errors with the same cause were still there, so a patch for config.c is neccessary (patch merged upstream, will be in next release)
2015-11-04Add SHA512 digests for distfiles for sysutils categoryagc1-1/+2
Problems found with existing digests: Package memconf distfile memconf-2.16/memconf.gz b6f4b736cac388dddc5070670351cf7262aba048 [recorded] 95748686a5ad8144232f4d4abc9bf052721a196f [calculated] Problems found locating distfiles: Package dc-tools: missing distfile dc-tools/abs0-dc-burn-netbsd-1.5-0-gae55ec9 Package ipw-firmware: missing distfile ipw2100-fw-1.2.tgz Package iwi-firmware: missing distfile ipw2200-fw-2.3.tgz Package nvnet: missing distfile nvnet-netbsd-src-20050620.tgz Package syslog-ng: missing distfile syslog-ng-3.7.2.tar.gz Otherwise, existing SHA1 digests verified and found to be the same on the machine holding the existing distfiles (morden). All existing SHA1 digests retained for now as an audit trail.
2015-06-29Updated to version 3.9.1. Changelog :nils3-13/+35
3.9.0 -> 3.9.1 - Fix off-by-one error which can lead to crash when copytruncate is used. 3.8.9 -> 3.9.0 - Fix crash when using long dateformat. [nmerdan] - Add support for %H dateformat. [czchen] - Fix regression introduced in 3.8.9 when when rotating multiple logs when one of them is missing. - In the debug mode, do not skip the code-path which handles the case when the last rotation does not exist. [Sergey Vidishev] - Show more precise description when "log does not need rotating".\ - Add new -l option to log verbose output to file. The file is overwritten on every logrotate execution. - Allow rotation of sparse files with copytruncate. PKgsrc changes : Switched from old Makefile to new building procedure, using autogen, configure and (g)make, which was introduced in version 3.8.8. The new patch file contains a workaround to get the new building procedure working.
2015-03-11Updated to version 3.8.9.nils3-11/+11
Changelog is : 3.8.8 -> 3.8.9 - Add new directive "createolddir" and "nocreateolddir". These directives can be used to create the directory specified by olddir with particular "mode", "owner" and "group". - Continue with rotation even when first log from logset is removed during the rotation. - Fix crash on BSD systems introduced in 3.8.8 caused by different qsort_r function. Function qsort is now used instead. - Fix potential buffer overflow in usage of strncat function. - Fix compilation with musl-libc. - Add experimental 'renamecopy' directive to allow 'olddir' on different physical device. See the "man logrotate" for more information. 3.8.7 -> 3.8.8 - Add support for building using autotools/automake. Using "./autogen.sh", "./configure" and "make" is now preferred way how to build logrotate. Old Makefile remains available, but it is deprecated and will be removed in the future. Please report any problem related to new build system. - Add support for systems which do not support fork (use vfork instead) and madvise. - Fix bug when wrong log file has been removed in case of dateext and dateformat %d-%m-%Y. - Do not expect that the name of root account is 'root'. - Do not stop rotation with an error when olddir and log file are on different devices and copy or copytruncate is used. - Return an error code when parent directory of log does not exist, "su" directive is not used, logrotate is running as root and missingok is not specified. [vcizek] - Prepend error printed by compression program with the log name even when the compression program exits with zero exit code. pkgsrc change : took over maintainership.
2014-01-27Do not set FETCH_USING, should not be set in a package Makefile.wiz1-3/+1
2013-10-30Update sysutils/logrotate to 3.8.7.gls2-6/+7
Via Nils Ratusznik in PR pkg/48311. pkgsrc changes: --------------- FETCH_USING=curl to fetch over https. Upstream changes: ----------------- Changelog : 3.8.6 -> 3.8.7 - Fixed --force/-f option handling together with "size" directive (3.8.5 regression). - Use "logrotate_tmp_t" context for SELinux tests and if this context does not exist, skip SELinux related tests. 3.8.5 -> 3.8.6 - Fixed memory corruption caused by rotation directory which does not exist with "sharedscripts" together with "prerotate" script.
2013-07-28Update logrotate to 3.8.5.obache3-14/+13
Based on PR pkg/48073 by Nils Ratusznik. (drop FETCH_USING=curl, put distfile on ftp.n.o). 3.8.4 -> 3.8.5 - Improved rotation during daylight saving time and between timezone changes. - Fixed ACL setting problem caused by ext3 erroneously reporting ENOSYS instead of ENOSUP. - Do not continue with rotation if state file is corrupted. - Make logrotate.status creation atomic. - Allow "hourly" rotation. See manpage for more information. - Use "/bin/echo" in tests. Fixes tests execution in Dash. - Do no try to parse config files bigger than 16MB. - Improved manpage consistency and formatting. - Fix race condition between acl_set_fd() and fchmod().
2013-05-07Update sysutils/logrotate to 3.8.4.gls2-8/+8
From Nils Ratusznik per PR pkg/47800 pkgsrc changes: --------------- Update MASTER_SITES. Now requires curl to fetch on https mirror. Upstream changes: ----------------- 3.8.3 -> 3.8.4 - Added --version command line option - Disable ACL tests if logrotate is not compiled WITH_ACL support or if ACLs are not supported by the system running tests - Disable SELinux tests if logrotate is not compiled WITH_SELINUX support or if SELinux is not supported by the system running tests - Fixed bug which prevented skipping particular log file config if the config contained errors. - Fixed skipping of configs containing firstaction/lastaction scripts with '}' character in case of error before these scripts. - Support also 'K' unit for *size directives. - Added preremove option to let admin to do something with the old logs before they are removed by logrotate. - Fixed possible loop in tabooext parsing. - Move code to set SELinux context before compressLogFile calls to create compressed log files with the proper context. - Call prerotate/postrotate script only for really rotated files in nosharedscripts mode (as stated in man page).
2013-03-07Update logrotate to 3.8.3.obache2-6/+6
PR pkg/47581 by Nils Ratusznik. 3.8.2 -> 3.8.3 - Fixed setting "size" bigger than 4GB on 32bit architectures - Do not overwrite mode set by "create" option when using ACL. "create" directive is now not mixed up with ACLs. If you use "create" in config file and log file has some ACLs set, ACLs are not kept and are overwritten by the mode set in "create" directive. - Mode argument in "create" directive can be omitted. Only owner and group is set in this case. Check man page for more info.
2013-02-20Fix path to default status file.dillo2-4/+4
2013-01-10Update to 3.8.2, from Nils Ratusznik via pkgsrc-wip.wiz8-75/+16
Changes: - show error and ignore config if '{' is not present after log files declaration - support whitespaces in compressoptions directive - support for tilde expansion in config files - fixed mail sending for 'mailfirst', 'dateext' and 'delaycompress' combination - do not use gzip/gunzip from /usr/local on Solaris - Do not include alloca.h on NetBSD, since alloca() is declared in stdlib.h there
2012-10-23Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days.asau1-3/+1
2012-03-06Add logrotate-3.8.1 as sysutils/logrotatesbd11-0/+225
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.