diff options
| author | Marcello Barnaba | 2014-01-06 15:04:02 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2014-01-14 08:36:19 +0000 |
| commit | 992f95c4845b37c0f4082fd784f94c7e41096162 (patch) | |
| tree | 288aed42b4f2880fab08e9ad6ace210b7114c3bd /Library/Formula | |
| parent | 24c14b98d951284e9ff9d2bc19f2528b7b64c0ad (diff) | |
| download | homebrew-992f95c4845b37c0f4082fd784f94c7e41096162.tar.bz2 | |
privoxy: add launchd plist
Closes #25672.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/privoxy.rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Library/Formula/privoxy.rb b/Library/Formula/privoxy.rb index 025fcfa4b..d7944d72a 100644 --- a/Library/Formula/privoxy.rb +++ b/Library/Formula/privoxy.rb @@ -25,4 +25,29 @@ class Privoxy < Formula system "make" system "make install" end + + plist_options :manual => "privoxy #{HOMEBREW_PREFIX}/etc/privoxy/config" + + 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>KeepAlive</key> + <true/> + <key>Label</key> + <string>#{plist_name}</string> + <key>WorkingDirectory</key> + <string>#{var}</string> + <key>ProgramArguments</key> + <array> + <string>#{sbin}/privoxy</string> + <string>#{etc}/privoxy/config</string> + </array> + <key>RunAtLoad</key> + <true/> + </dict> + </plist> + EOS + end end |
