Merge pull request #206954 from Homebrew/bump-gollama-1.28.13
[homebrew-core.git] / Formula / d / dnsdist.rb
blob937d6429ddacaf26fa0ea0b9f5c94379c3186e44
1 class Dnsdist < Formula
2   desc "Highly DNS-, DoS- and abuse-aware loadbalancer"
3   homepage "https://www.dnsdist.org/"
4   url "https://downloads.powerdns.com/releases/dnsdist-1.9.8.tar.bz2"
5   sha256 "f664f73a96a8d7343d32696accb70fd8b1ed4328d73cdb0a627a561d6e2fd99e"
6   license "GPL-2.0-only"
8   livecheck do
9     url "https://downloads.powerdns.com/releases/"
10     regex(/href=.*?dnsdist[._-]v?(\d+(?:\.\d+)+)\.t/i)
11   end
13   bottle do
14     sha256 cellar: :any,                 arm64_sequoia: "37a81f1a7902b38db901460d51e372a2c2e78f90b14faf87f6f649928c82abd9"
15     sha256 cellar: :any,                 arm64_sonoma:  "42b0a9a71b26f98825ee82d5292b81ec78439db91c646f47887fb4a56f368d67"
16     sha256 cellar: :any,                 arm64_ventura: "c25bce9c1cd32bd92ff7298c6e4702b2ebb39772859fb3653c151b7e0da53242"
17     sha256 cellar: :any,                 sonoma:        "bbb9ee6cdc27310c15fbdfaa1804a405f76fc8a3d9e9e49af90c547f4f75d311"
18     sha256 cellar: :any,                 ventura:       "f3ebdd73c4d92ed6af63a66df23d67f3bd08655b6887845d5f39717579c8cb43"
19     sha256 cellar: :any_skip_relocation, x86_64_linux:  "befe41fe1ca151f63a3ff433a29a7f59958dcf054238a23e6a07b2b21938c001"
20   end
22   depends_on "boost" => :build
23   depends_on "pkgconf" => :build
24   depends_on "abseil"
25   depends_on "fstrm"
26   depends_on "libnghttp2"
27   depends_on "libsodium"
28   depends_on "luajit"
29   depends_on "openssl@3"
30   depends_on "re2"
31   depends_on "tinycdb"
33   uses_from_macos "libedit"
35   def install
36     system "./configure", "--disable-silent-rules",
37                           "--without-net-snmp",
38                           "--enable-dns-over-tls",
39                           "--enable-dns-over-https",
40                           "--enable-dnscrypt",
41                           "--with-re2",
42                           "--sysconfdir=#{etc}/dnsdist",
43                           *std_configure_args
44     system "make", "install"
45   end
47   test do
48     (testpath/"dnsdist.conf").write "setLocal('127.0.0.1')"
49     output = shell_output("#{bin}/dnsdist -C dnsdist.conf --check-config 2>&1")
50     assert_equal "Configuration 'dnsdist.conf' OK!", output.chomp
51   end
52 end