logcheck 1.4.1

* logcheck 1.4.1
* logcheck: update build

Closes #123034.

Signed-off-by: Rui Chen <rui@chenrui.dev>
Co-authored-by: Rui Chen <rui@chenrui.dev>
Signed-off-by: Michka Popoff <3406519+iMichka@users.noreply.github.com>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
master
Porkepix 2023-02-12 02:20:49 +01:00 committed by BrewTestBot
parent e7cff14b3d
commit 14c533e68c
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F
1 changed files with 11 additions and 2 deletions

View File

@ -1,8 +1,8 @@
class Logcheck < Formula
desc "Mail anomalies in the system logfiles to the administrator"
homepage "https://packages.debian.org/sid/logcheck"
url "https://deb.debian.org/debian/pool/main/l/logcheck/logcheck_1.4.0.tar.xz"
sha256 "dfd95c980727108cc9b8921736af9388dea0f6157688c03e8e39de378107b3dc"
url "https://deb.debian.org/debian/pool/main/l/logcheck/logcheck_1.4.1.tar.xz"
sha256 "6ea06d7a4607c025cb45d7ab230d8b0245b26015a03f13ce109874817ca2d853"
license "GPL-2.0-only"
livecheck do
@ -14,7 +14,16 @@ class Logcheck < Formula
sha256 cellar: :any_skip_relocation, all: "ce01d92a5ca847e047f0123f6e27d0708bc0f0d768e30021a8660ca796b32aa9"
end
on_macos do
depends_on "gnu-sed" => :build
end
def install
# use gnu-sed on macOS
ENV.prepend_path "PATH", Formula["gnu-sed"].libexec/"gnubin" if OS.mac?
# Fix dependency on `dpkg-parsechangelog`
inreplace "Makefile", "$$(dpkg-parsechangelog -S version)", version.to_s
inreplace "Makefile", "$(DESTDIR)/$(CONFDIR)", "$(CONFDIR)"
system "make", "install", "--always-make", "DESTDIR=#{prefix}",
"SBINDIR=sbin", "BINDIR=bin", "CONFDIR=#{etc}/logcheck"