Skip to content

Commit

Permalink
Merge pull request #203976 from Homebrew/cdncheck-add-formula
Browse files Browse the repository at this point in the history
cdncheck 1.1.0 (new formula)
  • Loading branch information
BrewTestBot authored Jan 12, 2025
2 parents cbf556d + 2fdd91f commit cc79e7b
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/autobump.txt
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@ cdebug
cdk
cdk8s
cdktf
cdncheck
cdogs-sdl
cdsclient
cdxgen
Expand Down
36 changes: 36 additions & 0 deletions Formula/c/cdncheck.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
class Cdncheck < Formula
desc "Utility to detect various technology for a given IP address"
homepage "https://projectdiscovery.io"
url "https://github.com/projectdiscovery/cdncheck/archive/refs/tags/v1.1.0.tar.gz"
sha256 "fef8644c0efd215feb28738d48e4e07ad106c9159ac08fe167a46a7b32f07ce9"
license "MIT"
head "https://github.com/projectdiscovery/cdncheck.git", branch: "main"

bottle do
sha256 cellar: :any_skip_relocation, arm64_sequoia: "b3c7460bfe832254b41cf180b7767fabc2c3d52b23aad990783143e6cb730bfa"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "5ad11fbaeba40508ca2ceae361156d2d66963355f1aa05b2f28c26a0747bd2a7"
sha256 cellar: :any_skip_relocation, arm64_ventura: "2bf6c89272f824b48034fe9331d16f62c1ecb0be866a3c88fc0d1fc420145f6d"
sha256 cellar: :any_skip_relocation, sonoma: "3d442205b07302b60d25a468390c45c4060a27c248aada6d2944381ce1c6560e"
sha256 cellar: :any_skip_relocation, ventura: "5e385b8e9e1f9499eff500c55afdb4df15e3d4a8ab5540d0c6fe9615fa854d6e"
sha256 cellar: :any_skip_relocation, x86_64_linux: "d191d7f40f2bd2cfae453a35c1dd42be2d8e9accf1475741350816e3206410e0"
end

depends_on "go" => :build

# Fixes incorrect version
# Upstream PR ref: https://github.com/projectdiscovery/cdncheck/pull/379
patch do
url "https://github.com/projectdiscovery/cdncheck/commit/d85cbad8c8afccd534cff23481a8e22cc5b1f7df.patch?full_index=1"
sha256 "aa4fd9b6b5307cf3ac68f4e8b7f4029b0666aaa1a85f15d8f51cc8de19ea9450"
end

def install
system "go", "build", *std_go_args(ldflags: "-s -w"), "./cmd/cdncheck"
end

test do
assert_match version.to_s, shell_output("#{bin}/cdncheck -version 2>&1")

assert_match "Found result: 1", shell_output("#{bin}/cdncheck -i 103.244.50.0/32 2>&1")
end
end

0 comments on commit cc79e7b

Please sign in to comment.