Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Feb 2026 02:16:06 +0000
From:      Vladimir Druzenko <vvd@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 8d9310c604ca - main - sysutils/logrotate: Update 3.13.0 => 3.22.0
Message-ID:  <699bb866.21183.f426e98@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=8d9310c604ca6a273e802c8160518d0308e29788

commit 8d9310c604ca6a273e802c8160518d0308e29788
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2026-02-23 02:02:21 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2026-02-23 02:14:13 +0000

    sysutils/logrotate: Update 3.13.0 => 3.22.0
    
    Changelogs:
    https://github.com/logrotate/logrotate/releases/tag/3.14.0
    https://github.com/logrotate/logrotate/releases/tag/3.15.0
    https://github.com/logrotate/logrotate/releases/tag/3.15.1
    https://github.com/logrotate/logrotate/releases/tag/3.16.0
    https://github.com/logrotate/logrotate/releases/tag/3.17.0
    https://github.com/logrotate/logrotate/releases/tag/3.18.0
    https://github.com/logrotate/logrotate/releases/tag/3.18.1
    https://github.com/logrotate/logrotate/releases/tag/3.19.0
    https://github.com/logrotate/logrotate/releases/tag/3.20.0
    https://github.com/logrotate/logrotate/releases/tag/3.20.1
    https://github.com/logrotate/logrotate/releases/tag/3.21.0
    https://github.com/logrotate/logrotate/releases/tag/3.22.0
    
    Improve port:
    - Switch from USE_GITHUB to tarball from upstream.
    - Use SUB_FILES+INSTALL_DATA for logrotate.conf.sample instead of SED.
    - Merge MKDIRs.
    - Remove upstreamed patches.
    
    PR:             293024
    Approved by:    js@iksz.hu (maintainer, timeout 15 days)
---
 sysutils/logrotate/Makefile                           | 19 +++++++++----------
 sysutils/logrotate/distinfo                           |  6 +++---
 ...logrotate.conf.sample => logrotate.conf.sample.in} |  2 +-
 sysutils/logrotate/files/patch-config.c               | 19 -------------------
 sysutils/logrotate/files/patch-logrotate.c            | 19 -------------------
 sysutils/logrotate/files/patch-logrotate.h            | 11 -----------
 6 files changed, 13 insertions(+), 63 deletions(-)

diff --git a/sysutils/logrotate/Makefile b/sysutils/logrotate/Makefile
index 352ebd641329..1524586f39df 100644
--- a/sysutils/logrotate/Makefile
+++ b/sysutils/logrotate/Makefile
@@ -1,31 +1,30 @@
 PORTNAME=	logrotate
-PORTVERSION=	3.13.0
-PORTREVISION=	3
+DISTVERSION=	3.22.0
 CATEGORIES=	sysutils
+MASTER_SITES=	https://github.com/${PORTNAME}/${PORTNAME}/releases/download/${DISTVERSION}/
 
 MAINTAINER=	js@iksz.hu
 COMMENT=	Daemon to rotate, compress, remove, and mail system log files
+WWW=		https://github.com/logrotate/logrotate/
 
 LICENSE=	GPLv2
 
 LIB_DEPENDS=	libpopt.so:devel/popt
 
-USE_GITHUB=	yes
-
-PATCH_STRIP=		-p1
-USES=		autoreconf cpe gmake localbase
+USES=		cpe gmake localbase tar:xz
 CPE_VENDOR=	logrotate_project
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--with-default-mail-command=/usr/bin/mailx \
 		--with-compress-command=/usr/bin/gzip \
 		--with-uncompress-command=/usr/bin/gunzip \
 		--with-state-file-path=/var/run/logrotate.status
+SUB_FILES=	logrotate.conf.sample
 
 post-install:
-	${SED} -e 's|__PREFIX__|${PREFIX}|' \
-		< ${FILESDIR}/logrotate.conf.sample > ${STAGEDIR}${PREFIX}/etc/logrotate.conf.sample
-	${MKDIR} ${STAGEDIR}${ETCDIR}.d
-	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	${INSTALL_DATA} ${WRKDIR}/logrotate.conf.sample \
+		${STAGEDIR}${PREFIX}/etc/logrotate.conf.sample
+	${MKDIR} ${STAGEDIR}${ETCDIR}.d \
+		 ${STAGEDIR}${EXAMPLESDIR}
 	${INSTALL_DATA} ${FILESDIR}/syslog.sample ${STAGEDIR}${EXAMPLESDIR}
 
 .include <bsd.port.mk>
diff --git a/sysutils/logrotate/distinfo b/sysutils/logrotate/distinfo
index bc06a4318c52..b9987f711dc6 100644
--- a/sysutils/logrotate/distinfo
+++ b/sysutils/logrotate/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1508013010
-SHA256 (logrotate-logrotate-3.13.0_GH0.tar.gz) = fb1ff8502e7ae4aedaa3d0da8d3740a6a0f44b72e34666af724e9094b166c942
-SIZE (logrotate-logrotate-3.13.0_GH0.tar.gz) = 82436
+TIMESTAMP = 1770494949
+SHA256 (logrotate-3.22.0.tar.xz) = 42b4080ee99c9fb6a7d12d8e787637d057a635194e25971997eebbe8d5e57618
+SIZE (logrotate-3.22.0.tar.xz) = 172108
diff --git a/sysutils/logrotate/files/logrotate.conf.sample b/sysutils/logrotate/files/logrotate.conf.sample.in
similarity index 92%
rename from sysutils/logrotate/files/logrotate.conf.sample
rename to sysutils/logrotate/files/logrotate.conf.sample.in
index 0d6f5c2d18d8..64a326fe6bf6 100644
--- a/sysutils/logrotate/files/logrotate.conf.sample
+++ b/sysutils/logrotate/files/logrotate.conf.sample.in
@@ -12,7 +12,7 @@ create
 compress
 
 # RPM packages drop log rotation information into this directory
-include __PREFIX__/etc/logrotate.d
+include %%PREFIX%%/etc/logrotate.d
 
 /var/log/lastlog {
     monthly
diff --git a/sysutils/logrotate/files/patch-config.c b/sysutils/logrotate/files/patch-config.c
deleted file mode 100644
index 03259d90c3c0..000000000000
--- a/sysutils/logrotate/files/patch-config.c
+++ /dev/null
@@ -1,19 +0,0 @@
---- config.c.orig	2017-10-12 15:19:41 UTC
-+++ config.c
-@@ -1,6 +1,6 @@
- #include "queue.h"
- /* Alloca is defined in stdlib.h in NetBSD */
--#ifndef __NetBSD__
-+#if !defined(__FreeBSD__) && !defined(__NetBSD__)
- #include <alloca.h>
- #endif
- #include <limits.h>
-@@ -27,6 +27,8 @@
- 
- #include "log.h"
- #include "logrotate.h"
-+
-+extern struct logInfoHead logs;
- 
- #if !defined(GLOB_ABORTED) && defined(GLOB_ABEND)
- #define GLOB_ABORTED GLOB_ABEND
diff --git a/sysutils/logrotate/files/patch-logrotate.c b/sysutils/logrotate/files/patch-logrotate.c
deleted file mode 100644
index 031d9fde7e38..000000000000
--- a/sysutils/logrotate/files/patch-logrotate.c
+++ /dev/null
@@ -1,19 +0,0 @@
---- logrotate.c.orig	2017-10-12 15:19:41 UTC
-+++ logrotate.c
-@@ -1,6 +1,6 @@
- #include "queue.h"
- /* alloca() is defined in stdlib.h in NetBSD */
--#ifndef __NetBSD__
-+#if !defined(__FreeBSD__) && !defined(__NetBSD__)
- #include <alloca.h>
- #endif
- #include <limits.h>
-@@ -29,6 +29,8 @@
- 
- #include "log.h"
- #include "logrotate.h"
-+
-+struct logInfoHead logs;
- 
- static void *prev_context;
- #ifdef WITH_SELINUX
diff --git a/sysutils/logrotate/files/patch-logrotate.h b/sysutils/logrotate/files/patch-logrotate.h
deleted file mode 100644
index ec8437eba696..000000000000
--- a/sysutils/logrotate/files/patch-logrotate.h
+++ /dev/null
@@ -1,11 +0,0 @@
---- logrotate.h.orig	2017-10-12 15:19:41 UTC
-+++ logrotate.h
-@@ -80,7 +80,7 @@
-     TAILQ_ENTRY(logInfo) list;
- };
- 
--TAILQ_HEAD(logInfoHead, logInfo) logs;
-+TAILQ_HEAD(logInfoHead, logInfo);
- 
- extern int numLogs;
- extern int debug;


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?699bb866.21183.f426e98>