diff options
| author | Markus Heberling | 2013-11-13 10:53:00 +0100 |
|---|---|---|
| committer | Adam Vandenberg | 2013-11-17 09:17:32 -0800 |
| commit | 76f4c53a97108acbb668d729c7c34344e86b8657 (patch) | |
| tree | 6a5c65f40d1261815819559c32b015c9fdd78fd8 /Library | |
| parent | fcf9b1960aede3fe78c812aade34f816bb18868d (diff) | |
| download | homebrew-76f4c53a97108acbb668d729c7c34344e86b8657.tar.bz2 | |
burp: fix download and add plist
Closes #24249.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/burp.rb | 37 |
1 files changed, 36 insertions, 1 deletions
diff --git a/Library/Formula/burp.rb b/Library/Formula/burp.rb index 9e4d189a9..89fbc8fbc 100644 --- a/Library/Formula/burp.rb +++ b/Library/Formula/burp.rb @@ -2,7 +2,7 @@ require 'formula' class Burp < Formula homepage 'http://burp.grke.org/' - url 'http://downloads.sourceforge.net/project/burp/burp-1.3.36%20%28stable%20candidate%29/burp-1.3.36.tar.bz2' + url 'http://downloads.sourceforge.net/project/burp/burp-1.3.36/burp-1.3.36.tar.bz2' sha1 '471237090e631b3cb91ff864db84c7644c42bf87' head 'https://github.com/grke/burp.git' @@ -25,6 +25,41 @@ class Burp < Formula test do system "#{bin}/burp", "-v" end + + plist_options :startup => true + + 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>UserName</key> + <string>root</string> + <key>KeepAlive</key> + <false/> + <key>ProgramArguments</key> + <array> + <string>#{opt_prefix}/bin/burp</string> + <string>-a</string> + <string>t</string> + </array> + <key>StartInterval</key> + <integer>1200</integer> + <key>WorkingDirectory</key> + <string>#{HOMEBREW_PREFIX}</string> + </dict> + </plist> + EOS + end + + def caveats; <<-EOS.undent + Before installing the launchd entry you should configure your burp client in + #{etc}/burp/burp.conf + EOS + end + end __END__ |
