From nobody Mon Feb 23 02:16:06 2026 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4fK4GG3tB4z6SX0x for ; Mon, 23 Feb 2026 02:16:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fK4GG2yyFz45NK for ; Mon, 23 Feb 2026 02:16:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1771812966; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=O3O4QMlyhPCjtcKsr99ddKQyTcNWmpgUHi2q24uoJ6w=; b=h+PBh7Z9ulYWxnKP0d3Txst1g+8urcbUG8EwPrWVLfV4lXHczqOeQ5uzGZJ8cCVLAZPn7b R7ghWcctk/u35iIpArcxkKTmM8nk+uKjBy9U23cz26j2fCkWVRfaD2vl/uzNDu/Ror0g39 flM4Hsb7djlbiFjU+Whr5jLjEyOIt4eydAZulPI0Ls2Azuv02PMa4yz+BY2x1XCBmlKHGi /o/J8nakVhAZetw+YK/dUE26+sNzl/c0ely80zxgFL2I7ayLfPDYXmJUv7MdaJMjQS1sFt uMc82V8DIKAjSS+l50uos8/d+3V98OZapDLUjh/TZm/R0bQf/pR+7SuGtU1sww== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1771812966; a=rsa-sha256; cv=none; b=iv5cpJ6ZoYHv+9CweVGxO81MgUFTyHoOsjGbIZOUsNMHDTA/3KB5TbmXn588ovPQsFG2gq IkSMonfqclTHLVefoLiOkNrqDWiJ5cw3+8kbuJtTIkS/2LxIOlU+uVhEIw6gy7liaj53oZ XqnUPKd9lAXOcWZQlc/VEFZBne+AFP5eCcRK8b41qtO+I8/SAE/q78187qzGg5+5baVVFF vWuGJAw4ipTp1usLsRRgHiLHzT46v6SfrO4fwfWuVLEmF3SAVtAkxByG9dakIGwfDjJchk 5qbqElNuViCeE9fX1iYCHwHvq034NAv+SUq5DmJrtKtwKLQUS2T0PDIdWByUcw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1771812966; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=O3O4QMlyhPCjtcKsr99ddKQyTcNWmpgUHi2q24uoJ6w=; b=mV6yCX8jt5Yr/ydw1KvyqBxaM9+q0YaI6c72g+/WSON568A7FNdF7K5C8TrYt1P6Ocqtta h75t9ptqgLZKWJIfw5ryf/3MTZGW3F81ubbUJv7GiF7ypslsbAQZiCNjayH+c/qZnOwquM VRPDN7zuxCY4nD6yVBK/VxFT6m/9XL8xRsH0DTOS2uZuqqvWjt1EkuEy5JKbHOvixKnELB SmaOW3hDFrhRXEwZ8jRzTHsoUCJONzs0zBpYQbpHYlgnoYXOKGLN5O2Z5vzRGtS+B6esuX QCiSLQdxIkKIBnCv6VpBeucufysnlSERDdk3+LC0/CIdfAohFaYhGKkrPDdqRg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fK4GG1kbpz19HB for ; Mon, 23 Feb 2026 02:16:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 21183 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 23 Feb 2026 02:16:06 +0000 To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Vladimir Druzenko Subject: git: 8d9310c604ca - main - sysutils/logrotate: Update 3.13.0 => 3.22.0 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: vvd X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8d9310c604ca6a273e802c8160518d0308e29788 Auto-Submitted: auto-generated Date: Mon, 23 Feb 2026 02:16:06 +0000 Message-Id: <699bb866.21183.f426e98@gitrepo.freebsd.org> The branch main has been updated by vvd: URL: https://cgit.FreeBSD.org/ports/commit/?id=8d9310c604ca6a273e802c8160518d0308e29788 commit 8d9310c604ca6a273e802c8160518d0308e29788 Author: Vladimir Druzenko AuthorDate: 2026-02-23 02:02:21 +0000 Commit: Vladimir Druzenko 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 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 - #endif - #include -@@ -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 - #endif - #include -@@ -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;