diff options
| author | Aubin Paul | 2015-02-25 10:23:28 -0500 |
|---|---|---|
| committer | Mike McQuaid | 2015-02-25 16:20:43 +0000 |
| commit | 48e6d5139a18179423f5b87d29cccbbcbc758641 (patch) | |
| tree | 810a254941f7abf39a1b53d489341d5da08e4188 /Library | |
| parent | 05d7dc12435c6f37cd083b9a5bd0f86e73c1beac (diff) | |
| download | homebrew-48e6d5139a18179423f5b87d29cccbbcbc758641.tar.bz2 | |
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 <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/nzbget.rb | 31 |
1 files changed, 31 insertions, 0 deletions
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 + <?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" |
