From nobody Sun Feb 11 04:08:38 2024 X-Original-To: dev-commits-ports-all@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 4TXYx21zxhz59Kx6; Sun, 11 Feb 2024 04:08:38 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TXYx21TLvz4QkM; Sun, 11 Feb 2024 04:08:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707624518; 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=QaLNalG1Cif7iiU0CCm/dGLz7zAHIIqyGDLYol1Z78g=; b=St0KMt7UXNfkUgsmYyhC7tBsKtVBtilzFjkP8l+CaAyA7ueV833hHNERkqEgLtkBdFo6WT w/t8xLLXoUFoVqt57Z8z++nbfY2KQlRChEZt8HKm1M2TA3It/3S50rsla1cAtE769+QFJa FW0w74cLP48mAHBOSn30GWX7xaX9Zs/QeO4IiXtYEYFtO0d5pzduU8T3HNnJQUf+nC2qoU x5Wv/92NIMaqTwvA+TvPu6BV8lI5Js5sFsnASgzUcySPfLTyXt7mt4jO5xVm2TPdMbPn+4 6OsIe7fasJyAt9c0EncuLb+ndcC/ZLrHXioTKMufvRG8s7hnqlGQEAi5TnXH6Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707624518; a=rsa-sha256; cv=none; b=u3LAW9KfX7/z9nviZjo0oQArhZ0MQYk3TAelLwmizl5FizyBw1L3MRQ21pmzUKqkMv/j79 rdInkwHRKh4eOL7fBh/dZbAjQST0LxXRSzV0P+WcrT8tvib1V37oF9jiqax9ae/+2cKJTM PCG3BGTkAZStOkDjWMhN+D9+KsW572tGB2ZEwLbznSk6QQvLgo+U4m5qREhF35S8g2pIIm C3wTgLW2baU5HEdW1nuIRXuUemfXRqXKOLTTWQUVb0zZVzw3h93ooEzQ/OY72vNvTO9FCg CHH14iVSICHwXLUrN0vmBC8PXFzd8+iT9u/ymuHciWjYBIDSUy3m3oDIovpF+w== 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=1707624518; 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=QaLNalG1Cif7iiU0CCm/dGLz7zAHIIqyGDLYol1Z78g=; b=WbgL6sRN0h8gkFJlevr0B3JPnF7ZTb2us3OUAyxLzQoTgpveF4qMVYfGKCHKcK2O8Eu974 Xwz4ClJoAMtVtv0iYvWCDA8sBKR7tmvNkxwNwTjrDqaYsLFzbN6K6sHvbYbW0zZxS9gRoS l4n+XFig36I+jaIoFMQsaZkF9KZH8dW9qGkr0ep/FmIRJvkz0dmzVVKPBMjMjdx6ylWXRZ L4pvsRoYaQAUgykPmlOpB12qJufcYaveFsRnGTnLx3rV7JSxo9Iradf/nsYA6X/6pYOAx4 e5OW6OoZEqkm1OXMd42gTiCGPAJ1ZVyU67V31koTDkHeQiTmQ6FizfY8JVy0YQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TXYx20XD9zl1l; Sun, 11 Feb 2024 04:08:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41B48crd011371; Sun, 11 Feb 2024 04:08:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41B48c8b011368; Sun, 11 Feb 2024 04:08:38 GMT (envelope-from git) Date: Sun, 11 Feb 2024 04:08:38 GMT Message-Id: <202402110408.41B48c8b011368@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yasuhiro Kimura Subject: git: 4d161fff0334 - main - security/logcheck: Add patch to change crontab entry List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yasu X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4d161fff033445025c42bd05f0eba6aebed15563 Auto-Submitted: auto-generated The branch main has been updated by yasu: URL: https://cgit.FreeBSD.org/ports/commit/?id=4d161fff033445025c42bd05f0eba6aebed15563 commit 4d161fff033445025c42bd05f0eba6aebed15563 Author: Dan Langille AuthorDate: 2024-02-11 02:19:54 +0000 Commit: Yasuhiro Kimura CommitDate: 2024-02-11 04:06:24 +0000 security/logcheck: Add patch to change crontab entry When the host is heavily loaded, the log files can grow incredibly and one logcheck invocation may not complete before it is invoked next time. This commit add patch to change crontab entries so it uses lockf(1) to avoid multiple invocation of logcheck under such situation as above. PR: 276023 --- security/logcheck/Makefile | 2 +- security/logcheck/files/patch-debian_logcheck.cron.d | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/security/logcheck/Makefile b/security/logcheck/Makefile index 1e161066e21b..8d29dd5b2cf6 100644 --- a/security/logcheck/Makefile +++ b/security/logcheck/Makefile @@ -1,6 +1,6 @@ PORTNAME= logcheck DISTVERSION= 1.4.3 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= security MASTER_SITES= DEBIAN_POOL DISTNAME= ${PORTNAME}_${PORTVERSION} diff --git a/security/logcheck/files/patch-debian_logcheck.cron.d b/security/logcheck/files/patch-debian_logcheck.cron.d index e72f3f982fee..0f33b88cb62a 100644 --- a/security/logcheck/files/patch-debian_logcheck.cron.d +++ b/security/logcheck/files/patch-debian_logcheck.cron.d @@ -1,4 +1,4 @@ ---- debian/logcheck.cron.d.orig 2017-01-25 21:08:04 UTC +--- debian/logcheck.cron.d.orig 2023-07-18 10:54:00 UTC +++ debian/logcheck.cron.d @@ -1,9 +1,5 @@ -# /etc/cron.d/logcheck: crontab entries for the logcheck package @@ -12,5 +12,5 @@ -2 * * * * logcheck if [ -x /usr/sbin/logcheck ]; then nice -n10 /usr/sbin/logcheck; fi - -# EOF -+@reboot if [ -x %%PREFIX%%/sbin/logcheck ]; then nice -n10 %%PREFIX%%/sbin/logcheck -R; fi -+2 * * * * if [ -x %%PREFIX%%/sbin/logcheck ]; then nice -n10 %%PREFIX%%/sbin/logcheck; fi ++@reboot if [ -x %%PREFIX%%/sbin/logcheck ]; then /usr/bin/lockf -t 0 /tmp/.logcheck nice -n10 %%PREFIX%%/sbin/logcheck -R; fi ++2 * * * * if [ -x %%PREFIX%%/sbin/logcheck ]; then /usr/bin/lockf -t 0 /tmp/.logcheck nice -n10 %%PREFIX%%/sbin/logcheck; fi