Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 07 Feb 2026 20:15:02 +0000
From:      Vladimir Druzenko <vvd@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Cc:        Vincent Milum Jr <git@darkain.com>
Subject:   git: 3a579bf40e81 - main - sysutils/logrotate: Fix Logrotate to work by default
Message-ID:  <69879d46.3d22c.170690c6@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by vvd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3a579bf40e81c54e7c67218ebbbec76062afcf83

commit 3a579bf40e81c54e7c67218ebbbec76062afcf83
Author:     Vincent Milum Jr <git@darkain.com>
AuthorDate: 2026-02-07 20:03:54 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2026-02-07 20:14:14 +0000

    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/logrotate/Makefile                    | 3 +--
 sysutils/logrotate/files/logrotate.conf.sample | 1 +
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sysutils/logrotate/Makefile b/sysutils/logrotate/Makefile
index c95ee7c41f11..352ebd641329 100644
--- a/sysutils/logrotate/Makefile
+++ b/sysutils/logrotate/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	logrotate
 PORTVERSION=	3.13.0
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	sysutils
 
 MAINTAINER=	js@iksz.hu
@@ -16,7 +16,6 @@ PATCH_STRIP=		-p1
 USES=		autoreconf cpe gmake localbase
 CPE_VENDOR=	logrotate_project
 GNU_CONFIGURE=	yes
-GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
 CONFIGURE_ARGS=	--with-default-mail-command=/usr/bin/mailx \
 		--with-compress-command=/usr/bin/gzip \
 		--with-uncompress-command=/usr/bin/gunzip \
diff --git a/sysutils/logrotate/files/logrotate.conf.sample b/sysutils/logrotate/files/logrotate.conf.sample
index 4fe2a86064cd..0d6f5c2d18d8 100644
--- a/sysutils/logrotate/files/logrotate.conf.sample
+++ b/sysutils/logrotate/files/logrotate.conf.sample
@@ -17,6 +17,7 @@ include __PREFIX__/etc/logrotate.d
 /var/log/lastlog {
     monthly
     rotate 1
+    missingok
 }
 
 # system-specific logs may be configured here


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69879d46.3d22c.170690c6>