diff options
| author | Rob Gabaree | 2013-04-28 09:50:24 -0400 |
|---|---|---|
| committer | Adam Vandenberg | 2013-07-11 12:55:33 -0700 |
| commit | 61d2aa93fc5c9f9aa38fce6c8bc7359e90ba3082 (patch) | |
| tree | 4b381d344c5138c06564c78dd025c06b9a8136af /Library/Formula/dnscrypt-proxy.rb | |
| parent | 0e46fbb2954a5da71739add444daea05bd64227d (diff) | |
| download | homebrew-61d2aa93fc5c9f9aa38fce6c8bc7359e90ba3082.tar.bz2 | |
dnscrypt-proxy 1.3.0
Closes #19488.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/dnscrypt-proxy.rb')
| -rw-r--r-- | Library/Formula/dnscrypt-proxy.rb | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/Library/Formula/dnscrypt-proxy.rb b/Library/Formula/dnscrypt-proxy.rb index 8fcce587a..8ee5020ea 100644 --- a/Library/Formula/dnscrypt-proxy.rb +++ b/Library/Formula/dnscrypt-proxy.rb @@ -26,4 +26,55 @@ class DnscryptProxy < Formula system "./configure", *args system "make install" end + + def caveats; <<-EOS.undent + Once dnscrypt-proxy is running, you will have to update your local + DNS server to point to 127.0.0.1 in order for it to actually work. + This is generally done under System Preferences > Network > Advanced. + Once there, you will see a "DNS" tab where you can enter a list of DNS + servers. You will want to make sure that 127.0.0.1 is listed there first. + + Note: By default, dnscrypt-proxy runs on 127.0.0.1:53 under the "nobody" user. + If you would like to change these settings, you will have to edit the plist file. + + To check that dnscrypt-proxy is running properly, open Terminal and enter this at + the command prompt: + + nslookup -type=txt debug.opendns.com + + You should see something like this in the output: + + debug.opendns.com text = "dnscrypt enabled (...)" + EOS + 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>KeepAlive</key> + <true/> + <key>RunAtLoad</key> + <true/> + <key>ProgramArguments</key> + <array> + <string>#{opt_prefix}/sbin/dnscrypt-proxy</string> + <string>--local-address=127.0.0.1:53</string> + <string>--user=nobody</string> + </array> + <key>UserName</key> + <string>root</string> + <key>StandardErrorPath</key> + <string>/dev/null</string> + <key>StandardOutPath</key> + <string>/dev/null</string> + </dict> + </plist> + EOS + end end |
