From 76f4c53a97108acbb668d729c7c34344e86b8657 Mon Sep 17 00:00:00 2001 From: Markus Heberling Date: Wed, 13 Nov 2013 10:53:00 +0100 Subject: burp: fix download and add plist Closes #24249. Signed-off-by: Adam Vandenberg --- Library/Formula/burp.rb | 37 ++++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) (limited to 'Library/Formula') 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 + + + + + Label + #{plist_name} + UserName + root + KeepAlive + + ProgramArguments + + #{opt_prefix}/bin/burp + -a + t + + StartInterval + 1200 + WorkingDirectory + #{HOMEBREW_PREFIX} + + + 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__ -- cgit v1.2.3