|
1 | 1 | class Ngrep < Formula |
2 | 2 | desc "Network grep" |
3 | 3 | homepage "https://github.com/jpr5/ngrep" |
4 | | - url "https://github.com/jpr5/ngrep/archive/refs/tags/V1_47.tar.gz" |
5 | | - sha256 "dc4dbe20991cc36bac5e97e99475e2a1522fd88c59ee2e08f813432c04c5fff3" |
| 4 | + url "https://github.com/jpr5/ngrep/archive/refs/tags/v1.48.0.tar.gz" |
| 5 | + sha256 "49a20b83f6e3d9191c0b5533c0875fcde83df43347938c4c6fa43702bdbd06b4" |
6 | 6 | license :cannot_represent # Described as 'BSD with advertising' here: https://src.fedoraproject.org/rpms/ngrep/blob/rawhide/f/ngrep.spec#_8 |
7 | 7 |
|
8 | 8 | no_autobump! because: :requires_manual_review |
9 | 9 |
|
10 | 10 | bottle do |
11 | | - rebuild 1 |
12 | | - sha256 cellar: :any_skip_relocation, arm64_tahoe: "1b67e183459765781fe9dcebd26d2e1ceb7de1038c71506c71be704b5d0a9bbe" |
13 | | - sha256 cellar: :any_skip_relocation, arm64_sequoia: "a2f5ada3b9c16b15c122b7a749d12ec3f52e65b710e6cc8f4ea03f81a4eb0a3e" |
14 | | - sha256 cellar: :any_skip_relocation, arm64_sonoma: "1065c49a35fa2a04d53e7f7e46a622776697eb3545e7d9fc04836d50aa816339" |
15 | | - sha256 cellar: :any_skip_relocation, arm64_ventura: "6eb14e55176c89bc45e0cda15f725b5ff35d15d8dc017a5bf47609c763964271" |
16 | | - sha256 cellar: :any_skip_relocation, arm64_monterey: "c9539b7c9783bce244c1310c691766b6c14fbc9a1c0b00ed9b480ed41575717d" |
17 | | - sha256 cellar: :any_skip_relocation, arm64_big_sur: "5bc88f61eaba46026963de70f44e84f73f04b041e913051fb21f3351d16cd9e4" |
18 | | - sha256 cellar: :any_skip_relocation, sonoma: "8b377219b442558f62cd2dd1ce4fbf71ca5daa93e5352712870cd9bfe15c7a0a" |
19 | | - sha256 cellar: :any_skip_relocation, ventura: "2f7aa884659d815ab2ace822663bd3a444ef90b8580dfe1ece26b4a93eacc79f" |
20 | | - sha256 cellar: :any_skip_relocation, monterey: "b7f33fabe9f42533580c021d441d4ef8132150c345add38cf9fc6452efa611a5" |
21 | | - sha256 cellar: :any_skip_relocation, big_sur: "6ab0d459dad3462b127af805de369dac2f099844126d70e89e531ea181d0e794" |
22 | | - sha256 cellar: :any_skip_relocation, catalina: "53bf6d68b15a2f07a01d828cdcd137131a45871141da411328c376ed90768265" |
23 | | - sha256 cellar: :any_skip_relocation, arm64_linux: "c5118b8b54a6577bbf48d50a9fe39309a39461336dacb5aee639f89ceb978ec1" |
24 | | - sha256 cellar: :any_skip_relocation, x86_64_linux: "b54a418af69d95d16a04604e385faa40791e6ae6bc488a7f146b0f22a2845a5b" |
| 11 | + sha256 cellar: :any, arm64_tahoe: "8e6eaba4477e7a4b71e82c79e79a75e332b1a487b9fac32b66d6d02716d13bca" |
| 12 | + sha256 cellar: :any, arm64_sequoia: "c8112d09a7a11467016d8e24bc415a7d9e9e5a53e5fb140b248ac483bb0c1809" |
| 13 | + sha256 cellar: :any, arm64_sonoma: "fb46a7d9f3501bf1960204e524f2aacd6f8b43fb2c9700f7afeb3d0ba8910123" |
| 14 | + sha256 cellar: :any, sonoma: "78acc794ff77f9a5de5fcba6a74fdff5d548b94c4c3029644a9c31c195b518fe" |
| 15 | + sha256 cellar: :any_skip_relocation, arm64_linux: "3999f9c875dde9ccc1f43f0c110fba879c7c2f140b51cab4e1765f3a4042e328" |
| 16 | + sha256 cellar: :any_skip_relocation, x86_64_linux: "25c3ae98eab72985d04c368437233fe8e12573a88c9248c73503f6984f3b4738" |
25 | 17 | end |
26 | 18 |
|
27 | | - uses_from_macos "libpcap" |
| 19 | + depends_on "libpcap" |
| 20 | + depends_on "pcre2" |
28 | 21 |
|
29 | 22 | def install |
30 | | - # Fix compile with newer Clang |
31 | | - ENV.append_to_cflags "-Wno-implicit-function-declaration" if DevelopmentTools.clang_build_version >= 1403 |
32 | | - |
33 | | - sdk = if OS.mac? && MacOS.sdk_path_if_needed |
34 | | - MacOS.sdk_path |
35 | | - else |
36 | | - "" |
37 | | - end |
38 | | - |
39 | 23 | args = [ |
40 | 24 | "--enable-ipv6", |
| 25 | + "--enable-pcre2", |
41 | 26 | "--prefix=#{prefix}", |
42 | | - # this line required to avoid segfaults |
43 | | - # see https://github.com/jpr5/ngrep/commit/e29fc29 |
44 | | - # https://github.com/Homebrew/homebrew/issues/27171 |
45 | | - "--disable-pcap-restart", |
46 | 27 | ] |
47 | 28 |
|
48 | | - args << if OS.mac? |
49 | | - # this line required to make configure succeed |
50 | | - "--with-pcap-includes=#{sdk}/usr/include/pcap" |
51 | | - else |
52 | | - # this line required to make configure succeed |
53 | | - "--with-pcap-includes=#{Formula["libpcap"].opt_include}/pcap" |
54 | | - end |
55 | | - |
56 | | - # Resolve implicit `stdlib.h` function declarations |
57 | | - args << "ac_cv_header_stdc=yes" if OS.mac? |
| 29 | + args << "--with-pcap-includes=#{Formula["libpcap"].opt_include}" |
58 | 30 |
|
59 | 31 | system "./configure", *args |
60 | | - |
61 | 32 | system "make", "install" |
62 | 33 | end |
63 | 34 |
|
|
0 commit comments