1
1
class Cntlm < Formula
2
- desc "NTLM authentication proxy with tunneling"
3
- homepage "https://cntlm.sourceforge.net/ "
4
- url "https://downloads.sourceforge.net/project /cntlm/cntlm/cntlm%200.92.3/cntlm-0.92.3 .tar.bz2 "
5
- sha256 "7b603d6200ab0b26034e9e200fab949cc0a8e5fdd4df2c80b8fc5b1c37e7b930 "
2
+ desc "NTLM authenticating proxy with tunneling"
3
+ homepage "https://github.com/versat/cntlm "
4
+ url "https://github.com/versat /cntlm/archive/refs/tags/0.94.0 .tar.gz "
5
+ sha256 "da9e98f26be5810abc88fd6c35c86151c6b3e8f326eb8a774902083c21985000 "
6
6
license "GPL-2.0-only"
7
7
8
- livecheck do
9
- url :stable
10
- regex ( %r{url=.*?/cntlm[._-]v?(\d +(?:\. \d +)+)\. t}i )
11
- end
12
-
13
- no_autobump! because : :requires_manual_review
14
-
15
- bottle do
16
- rebuild 2
17
- sha256 arm64_tahoe : "730084818967f10d47a8458853ebb7a56bce4c2280759bda2f3c31d1edae9da3"
18
- sha256 arm64_sequoia : "ac09c6fb2f75321560a0fedd69a9d520f9a62ee176cd7b8a03d8ea5964385f1a"
19
- sha256 arm64_sonoma : "d0c3faca50823ec43395e72762071b26b1fe3860b7fa855f3f12080fb66025e3"
20
- sha256 arm64_ventura : "f4674d812c8b17f3e78bea4dfd0bccf3149de7c0be14f9027d2f07724f3eaf32"
21
- sha256 arm64_monterey : "ec776bb3b8bd91670fdf97e67fefc1ae8c2a4f2901cbb2b007622d22b8e697d7"
22
- sha256 arm64_big_sur : "edfcd9088709ea81afc22ec95e7fc9e3c2707dfbcf25582955af0d6288dc4d11"
23
- sha256 sonoma : "d0bdc1e0168ffef33d215c83d0af2e4164c9930c6b5a4ea5abe3b1504707c24e"
24
- sha256 ventura : "3bb0d9bd593c362c6303a22d404efc85a9ffcc648110808b3271654574326284"
25
- sha256 monterey : "473e65aea1b1536ccbd7390fa121cf0273f47c0184b08bf0398d28aa0e128e92"
26
- sha256 big_sur : "fccbf3803f9aff9aa6b0bb9b8f0e17c28b80e1b85ef0d712082744bdd417eda9"
27
- sha256 catalina : "7239fa52155edd2040ed7bff62b954351bb5e96fd226b4f0e1f7e956c64223d7"
28
- sha256 arm64_linux : "7d3ee84edf54985c366adab8d382412f0bae76dbcd117fd740cc36b009fead4f"
29
- sha256 x86_64_linux : "523184cb07c5b9c17d65a2a36f767ed37726570ec5ac3239ae49be84e12c5f6b"
30
- end
31
-
32
8
def install
33
9
system "./configure"
34
- system "make" , "CC=#{ ENV . cc } " , "SYSCONFDIR=#{ etc } "
35
- # install target fails - @adamv
10
+ system "make" , "SYSCONFDIR=#{ etc } "
36
11
bin . install "cntlm"
37
12
man1 . install "doc/cntlm.1"
38
13
etc . install "doc/cntlm.conf"
@@ -44,11 +19,10 @@ def caveats
44
19
45
20
service do
46
21
run [ opt_bin /"cntlm" , "-f" ]
47
- require_root true
48
22
end
49
23
50
24
test do
51
- assert_match "version #{ version } " , shell_output ( "#{ bin } /cntlm -h 2>&1" , 1 )
25
+ assert_match "version #{ version } " , shell_output ( "#{ bin } /cntlm -h 2>&1" )
52
26
53
27
bind_port = free_port
54
28
( testpath /"cntlm.conf" ) . write <<~EOS
@@ -65,8 +39,6 @@ def caveats
65
39
exec "#{ bin } /cntlm -c #{ testpath } /cntlm.conf -v"
66
40
end
67
41
sleep 2
68
- # "unreacheable" is a typo in upstreams code. There haven't been
69
- # any updates to `cntlm` in over a decade, so this can't be fixed.
70
- assert_match "502 Parent proxy unreacheable" , shell_output ( "curl -s localhost:#{ bind_port } " )
42
+ assert_match "502 Parent proxy unreachable" , shell_output ( "curl -s localhost:#{ bind_port } " )
71
43
end
72
44
end
0 commit comments