Skip to content

Commit 02e7859

Browse files
BrewTestBotdaeho-ro
authored andcommitted
sngrep 1.8.3
sngrep: update build Signed-off-by: Rui Chen <[email protected]>
1 parent 4e0aaf0 commit 02e7859

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

Formula/s/sngrep.rb

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
class Sngrep < Formula
22
desc "Command-line tool for displaying SIP calls message flows"
33
homepage "https://github.com/irontec/sngrep"
4-
url "https://github.com/irontec/sngrep/archive/refs/tags/v1.8.2.tar.gz"
5-
sha256 "1cd05bddd531b353e3069c5243e7076b60a3ee907dbbc3c9c2834676ed8c4bac"
4+
url "https://github.com/irontec/sngrep/releases/download/v1.8.3/sngrep-1.8.3.tar.gz"
5+
sha256 "794224f4cd08978a6115a767e9945f756fdf7cbc7c1a34eabca293e0293b21b8"
66
license "GPL-3.0-or-later" => { with: "openvpn-openssl-exception" }
77

88
bottle do
@@ -20,18 +20,27 @@ class Sngrep < Formula
2020

2121
depends_on "autoconf" => :build
2222
depends_on "automake" => :build
23+
depends_on "pkgconf" => :build
24+
2325
depends_on "ncurses"
2426
depends_on "openssl@3"
2527

2628
uses_from_macos "libpcap"
2729

30+
on_linux do
31+
depends_on "libgcrypt"
32+
end
33+
2834
def install
35+
# Fix compile with newer Clang
36+
ENV.append_to_cflags "-Wno-implicit-function-declaration" if DevelopmentTools.clang_build_version >= 1403
37+
2938
ENV.append_to_cflags "-I#{Formula["ncurses"].opt_include}/ncursesw" if OS.linux?
3039

3140
system "./bootstrap.sh"
32-
system "./configure", *std_configure_args,
33-
"--disable-silent-rules",
34-
"--with-openssl"
41+
system "./configure", "--disable-silent-rules",
42+
"--with-openssl",
43+
*std_configure_args
3544
system "make", "install"
3645
end
3746

0 commit comments

Comments
 (0)