adnix 0.4.10

This commit is contained in:
axo bot 2024-04-10 20:47:07 +00:00
parent 95997e1b30
commit 41d331e9fd
1 changed files with 31 additions and 11 deletions

View File

@ -1,21 +1,41 @@
class Adnix < Formula
desc "Rust binary to generate DNSMasq and Unbound configurations from UNIX host files"
homepage "https://github.com/msfjarvis/adnix-rs"
if Hardware::CPU.type == :arm
url "https://github.com/msfjarvis/adnix-rs/releases/download/v0.4.9/adnix-aarch64-apple-darwin.tar.xz"
sha256 "7ded696f0319fe6fece2208bcd896815dc0e65b6866333dd090954b582a8efad"
else
url "https://github.com/msfjarvis/adnix-rs/releases/download/v0.4.9/adnix-x86_64-apple-darwin.tar.xz"
sha256 "7cae2dea297d72dae3f2bb5f4dbd3cb035046be6c0e1681ec949e7274e7f232c"
version "0.4.10"
on_macos do
on_arm do
url "https://github.com/msfjarvis/adnix-rs/releases/download/v0.4.10/adnix-aarch64-apple-darwin.tar.xz"
sha256 "00eed0760fe819d3f9dfb22654da34463a7dc120441865e797908d13ce25298b"
end
on_intel do
url "https://github.com/msfjarvis/adnix-rs/releases/download/v0.4.10/adnix-x86_64-apple-darwin.tar.xz"
sha256 "f31a214859dee8f1be13e0df6c4829f466d1905579ccff08ffe8f5b1f9d89fd9"
end
end
on_linux do
on_intel do
url "https://github.com/msfjarvis/adnix-rs/releases/download/v0.4.10/adnix-x86_64-unknown-linux-gnu.tar.xz"
sha256 "3826c9a59f701a87c0cd47d1fe298c1747aaefee05c1ac3c141b14dad3801fdb"
end
end
version "0.4.9"
license "MIT/Apache-2.0"
depends_on ""
depends_on ""
def install
bin.install "adnix"
on_macos do
on_arm do
bin.install "adnix"
end
end
on_macos do
on_intel do
bin.install "adnix"
end
end
on_linux do
on_intel do
bin.install "adnix"
end
end
# Homebrew will automatically install these, so we don't need to do that
doc_files = Dir["README.*", "readme.*", "LICENSE", "LICENSE.*", "CHANGELOG.*"]