Skip to content

Commit

Permalink
nzbget 15.0-r1207 (devel) and plist.
Browse files Browse the repository at this point in the history
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 Homebrew/legacy-homebrew#37195.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
  • Loading branch information
outlyer authored and MikeMcQuaid committed Feb 25, 2015
1 parent 583f5e2 commit ec9dc7a
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions Formula/nzbget.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -47,6 +53,31 @@ def install
etc.install "nzbget.conf"
end

plist_options :manual => "nzbget"

def plist; <<-EOS.undent
<?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>Label</key>
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_bin}/nzbget</string>
<string>-s</string>
<string>-o</string>
<string>OutputMode=Log</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
</dict>
</plist>
EOS
end

test do
# Start nzbget as a server in daemon-mode
system "#{bin}/nzbget", "-D"
Expand Down

0 comments on commit ec9dc7a

Please sign in to comment.