Daemon to rotate, compress, remove and mail system log files.
I try to make it work just like /usr/sbin/newsyslog.
With logrotate, you can mail syslog and execute command
before or after logrotate.
sysutils/logrotate: Fix Logrotate to work by default
If the file /var/log/lastlog is missing, logrotate fails, even if other
configs are available.
Add "missingok" to this block so other logrorate blocks located in
${PREFIX}/etc/logrotate.d/ will function as expected when that one file
is unavailable.
While here remove unnecessary GNU_CONFIGURE_MANPREFIX.
PR: 293024
Pull Request: https://github.com/freebsd/freebsd-ports/pull/472/
sysutils: remove 'Created by' lines
A big Thank You to the original contributors of these ports:
* <jsmith@resonatingmedia.com>
* Aaron Dalton <aaron@FreeBSD.org>
* Aaron Landwehr <aaron@snaphat.com>
* Adam Weinberger <adamw@FreeBSD.org>
* Adrian Chadd
* Adrian Chadd <adrian@FreeBSD.org>
* Akinori MUSHA aka knu <knu@idaemons.org>
* Alan Eldridge <alane@FreeBSD.org>
* Alan Eldridge <alane@geeksrus.net>
* Aldis Berjoza <aldis@bsdroot.lv>
* Alex Deiter <alex.deiter@gmail.com>
(Only the first 15 lines of the commit message are shown above )
Ensure that there is only one variable definition per each object, as
the C (and C++) standards mandated for years and compilers started to
enforce as of recently (Clang 11, GCC 10).
Reported by: pkg-fallout
sysutils/logrotate: 3.8.9 -> 3.9.2
Changes:
- 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.
PR: 205716
Submitted by: douglas@douglasthrift.net
Approved by: js@iksz.hu (maintainer)
- Update to 3.8.9
- Add LICENSE
- Use @sample in plist
- While here, regenerate patches to silence portlint warnings
PR: 196668
Submitted by: jyoung15 at gmail.com
Approved by: Balazs Nagy <js at iksz.hu> (maintainer)
sysutils/logrotate: 3.8.7 -> 3.8.8, fix mail sending
- 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.
PR: 195184
Submitted by: rand@meridian-enviro.com
Approved by: maintainer (timeout)
- Update to 3.8.7 [1]
While here [2]:
- Use new LIB_DEPENDS format
- Convert to USES=gmake
- Convert to staging
- Fix configuration file handling
PR: ports/185615 [1]
Submitted by: Balazs Nagy <js@iksz.hu> (maintainer)
Approved by: implicit portmgr@ blanket approval [2]
- DISTNAME= ${PORTNAME}-${PORTVERSION} is the default and not needed.
PR: ports/153292
Submitted by: myself (pgollucci)
Tested by: -exp run by pav
Approved by: portmgr (pav)
- Olddir options fix
logrotate's path-type options (eg. compress, olddir,
just to name a few) fail because FreeBSD's libc
implements mbtrowc(3) differently, and returns -2 on
empty string. Linux version, however, returns 0.
A simple zero-length check added to path check function,
which hides this.
PR: 126337
Submitted by: Balazs NAGY <js@iksz.hu> (maintainer)
Bump portrevision due to upgrade of devel/gettext.
The affected ports are the ones with gettext as a run-dependency
according to ports/INDEX-7 (5007 of them) and the ones with USE_GETTEXT
in Makefile (29 of them).
PR: ports/124340
Submitted by: edwin@
Approved by: portmgr (pav)
- Update to 3.7.1 with Debian patch 3
- Fix path in config.h (/var/lib -> /var/log) to match our hier
- Include dateext patch. This is obtained from Fedora CVS:
http://www.redhat.com/archives/fedora-cvs-commits/2005-June/msg00761.html
PR: ports/114523
Submitted by: Tom Mueko <tmueko at kommunity.net>
Approved by: Balazs Nagy <js at iksz.hu> (maintaineR)
- Fix bug: prerotate and postrotate scripts don't get the logfile name to be
rotated
- Raise portrevision
PR: ports/67978
Submitted by: Bal?zs Nagy <js@iksz.hu> (maintainer)