From 48e6d5139a18179423f5b87d29cccbbcbc758641 Mon Sep 17 00:00:00 2001 From: Aubin Paul Date: Wed, 25 Feb 2015 10:23:28 -0500 Subject: nzbget 15.0-r1207 (devel) and plist. Added an optional devel build for those following the more frequently updated testing branch and a LaunchAgent plist for those using the web interface. Closes #37195. Signed-off-by: Mike McQuaid --- Library/Formula/nzbget.rb | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'Library/Formula') diff --git a/Library/Formula/nzbget.rb b/Library/Formula/nzbget.rb index cdb85edc4..21d54e84c 100644 --- a/Library/Formula/nzbget.rb +++ b/Library/Formula/nzbget.rb @@ -3,6 +3,12 @@ class Nzbget < Formula url "https://downloads.sourceforge.net/project/nzbget/nzbget-stable/14.2/nzbget-14.2.tar.gz" sha1 "25adf5565d228cf1cbb8fa305732f61a6f869aa0" + devel do + url "https://downloads.sourceforge.net/project/nzbget/nzbget-testing/15.0-r1207/nzbget-15.0-testing-r1207.tar.gz" + sha1 "37f9d069df4bab4a78a1999434a2152aae6c2577" + version "15.0-r1207" + end + head "https://nzbget.svn.sourceforge.net/svnroot/nzbget/trunk" bottle do @@ -47,6 +53,31 @@ class Nzbget < Formula etc.install "nzbget.conf" end + plist_options :manual => "nzbget" + + def plist; <<-EOS.undent + + + + + Label + #{plist_name} + ProgramArguments + + #{opt_bin}/nzbget + -s + -o + OutputMode=Log + + RunAtLoad + + KeepAlive + + + + EOS + end + test do # Start nzbget as a server in daemon-mode system "#{bin}/nzbget", "-D" -- cgit v1.2.3