From 14c533e68cb4fd6b49b848a2ab1e4a0284fcec28 Mon Sep 17 00:00:00 2001 From: Porkepix Date: Sun, 12 Feb 2023 02:20:49 +0100 Subject: [PATCH] logcheck 1.4.1 * logcheck 1.4.1 * logcheck: update build Closes #123034. Signed-off-by: Rui Chen Co-authored-by: Rui Chen Signed-off-by: Michka Popoff <3406519+iMichka@users.noreply.github.com> Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> --- Formula/logcheck.rb | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Formula/logcheck.rb b/Formula/logcheck.rb index 9803159e6e5..adc8dbc257c 100644 --- a/Formula/logcheck.rb +++ b/Formula/logcheck.rb @@ -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"