homebrew-core/Formula/udpxy.rb
Mike McQuaid 512758e6eb Rubocop 0.57.1 style fixes (#28754)
Realign trailing EOS.
2018-06-09 01:27:43 -07:00

46 lines
1.4 KiB
Ruby

class Udpxy < Formula
desc "UDP-to-HTTP multicast traffic relay daemon"
homepage "http://www.udpxy.com/"
url "http://www.udpxy.com/download/1_23/udpxy.1.0.23-12-prod.tar.gz"
mirror "https://fossies.org/linux/www/udpxy.1.0.23-12-prod.tar.gz"
version "1.0.23-12"
sha256 "16bdc8fb22f7659e0427e53567dc3e56900339da261199b3d00104d699f7e94c"
bottle do
cellar :any_skip_relocation
sha256 "46de795b585d88c658554fb943931885db85d75c7f838d9db6d11d98e46538d0" => :high_sierra
sha256 "ee35787b2877b8ac1a9fa967e9f8fbf466f8c107e28cc61fee59c26aef9bf44d" => :sierra
sha256 "0d4a899340bdee7f4497d68fe3bc59213ad83382d205aa08ada871d9d08c010d" => :el_capitan
end
def install
system "make"
system "make", "install", "DESTDIR=#{prefix}", "PREFIX=''"
end
plist_options :manual => "udpxy -p 4022"
def plist; <<~EOS
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_bin}/udpxy</string>
<string>-p</string>
<string>4022</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>WorkingDirectory</key>
<string>#{HOMEBREW_PREFIX}</string>
</dict>
</plist>
EOS
end
end