2012-08-06 13:19:05 +00:00
|
|
|
class Cntlm < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "NTLM authentication proxy with tunneling"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "http://cntlm.sourceforge.net/"
|
|
|
|
url "https://downloads.sourceforge.net/project/cntlm/cntlm/cntlm%200.92.3/cntlm-0.92.3.tar.bz2"
|
|
|
|
sha256 "7b603d6200ab0b26034e9e200fab949cc0a8e5fdd4df2c80b8fc5b1c37e7b930"
|
2012-08-06 13:19:05 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure"
|
|
|
|
system "make", "CC=#{ENV.cc}", "SYSCONFDIR=#{etc}"
|
|
|
|
# install target fails - @adamv
|
|
|
|
bin.install "cntlm"
|
|
|
|
man1.install "doc/cntlm.1"
|
|
|
|
etc.install "doc/cntlm.conf"
|
|
|
|
end
|
|
|
|
|
|
|
|
def caveats
|
|
|
|
"Edit #{etc}/cntlm.conf to configure Cntlm"
|
|
|
|
end
|
2013-11-04 04:57:23 +00:00
|
|
|
|
|
|
|
plist_options :startup => true
|
|
|
|
|
|
|
|
def plist; <<-EOS.undent
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
|
|
<plist version="1.0">
|
|
|
|
<dict>
|
|
|
|
<key>Label</key>
|
|
|
|
<string>#{plist_name}</string>
|
|
|
|
<key>ProgramArguments</key>
|
|
|
|
<array>
|
2015-01-15 22:26:04 +00:00
|
|
|
<string>#{opt_bin}/cntlm</string>
|
2013-11-04 04:57:23 +00:00
|
|
|
</array>
|
|
|
|
<key>KeepAlive</key>
|
|
|
|
<false/>
|
|
|
|
<key>RunAtLoad</key>
|
|
|
|
<true/>
|
|
|
|
<key>StandardErrorPath</key>
|
|
|
|
<string>/dev/null</string>
|
|
|
|
<key>StandardOutPath</key>
|
|
|
|
<string>/dev/null</string>
|
|
|
|
</dict>
|
|
|
|
</plist>
|
|
|
|
EOS
|
|
|
|
end
|
2012-08-06 13:19:05 +00:00
|
|
|
end
|