# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id$

PortSystem          1.0

name                dnscrypt-proxy
version             1.7.0
categories          net
license             ISC
maintainers         mps openmaintainer
description         A protocol for securing communications between a client and a DNS \
                    resolver.
long_description    ${description}
homepage            http://dnscrypt.org/
master_sites        http://download.dnscrypt.org/dnscrypt-proxy/

platforms           darwin
depends_lib         port:libsodium

checksums           rmd160  20b68c568946cdc8743f50c9064e3ac13ec8cf84\
                    sha256  be9827f66401f38fd4bdb372046eff9b5802ab5f3d188878a0dcd7bd20074c09 

startupitem.create      yes
startupitem.netchange   yes
startupitem.executable  ${prefix}/sbin/dnscrypt-proxy --local-address=127.0.0.1:53 --resolver-address=208.67.220.220:443 --provider-name=2.dnscrypt-cert.opendns.com --provider-key=B735:1140:206F:225D:3E2B:D822:D7FD:691E:A1C3:3CC8:D666:8D0C:BE04:BFAB:CA43:FB79

notes "
You need to update your DNS server settings to point to 127.0.0.1
(in the Network Preference Pane -> Advanced... -> DNS tab)
"

livecheck.type      regex
livecheck.url       [lindex ${master_sites} 0]
livecheck.regex     ${name}-(\\d+\.\\d+.\\d)