DNSCrypt is a piece of lightweight software that everyone

should use to boost online privacy and security. It works
by encrypting all DNS traffic between the user and OpenDNS,
preventing any spying, spoofing or man-in-the-middle attacks.

WWW:	https://www.opendns.com/technology/dnscrypt/

PR:		ports/167833
Submitted by:	Leo Vandewoestijne <freebsd@dns-lab.com>
This commit is contained in:
Pawel Pekala 2012-05-15 20:14:53 +00:00
parent 2344f7d44d
commit 3772632854
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=296690
7 changed files with 105 additions and 0 deletions

View file

@ -30,6 +30,7 @@
SUBDIR += dnscap SUBDIR += dnscap
SUBDIR += dnscheck SUBDIR += dnscheck
SUBDIR += dnscheckengine SUBDIR += dnscheckengine
SUBDIR += dnscrypt-proxy
SUBDIR += dnsdoctor SUBDIR += dnsdoctor
SUBDIR += dnsflood SUBDIR += dnsflood
SUBDIR += dnshijacker SUBDIR += dnshijacker

View file

@ -0,0 +1,40 @@
# New ports collection makefile for: dnscrypt-proxy
# Date created: 15 May 2012
# Whom: Leo Vandewoestijne <freebsd@dns-lab.com>
#
# $FreeBSD$
#
PORTNAME= dnscrypt-proxy
PORTVERSION= 0.9.3
CATEGORIES= dns
MASTER_SITES= http://cloud.github.com/downloads/opendns/dnscrypt-proxy/ \
http://www.dns-lab.com/downloads/dnscrypt-proxy/
MAINTAINER= freebsd@dns-lab.com
COMMENT= Boost privacy and security of DNS
GNU_CONFIGURE= yes
USE_GMAKE= yes
SUB_FILES= pkg-message
USE_RC_SUBR= ${PORTNAME}
MAN8= dnscrypt-proxy.8 dnscrypt-proxy.8.markdown
PORTDOCS= AUTHORS ChangeLog COPYING INSTALL NEWS \
README README.markdown TECHNOTES THANKS
pre-install:
@${INSTALL_MAN} ${WRKSRC}/man/dnscrypt-proxy.8 ${MAN8PREFIX}/man/man8/
@${INSTALL_MAN} ${WRKSRC}/man/dnscrypt-proxy.8.markdown ${MAN8PREFIX}/man/man8/
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
.endif
@${CAT} ${WRKDIR}/pkg-message
.include <bsd.port.mk>

View file

@ -0,0 +1,2 @@
SHA256 (dnscrypt-proxy-0.9.3.tar.gz) = f1733e443a815da6789130f7718500304f2d90fbcdce863a5a5b98c9de06372b
SIZE (dnscrypt-proxy-0.9.3.tar.gz) = 1368327

View file

@ -0,0 +1,36 @@
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: dnscrypt-proxy
# REQUIRE: LOGIN cleanvar
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable dnscrypt-proxy:
#
# dnscrypt_proxy_enable="YES": Set to NO by default.
# Set it to YES to enable dnscrypt-proxy.
. /etc/rc.subr
name=dnscrypt_proxy
rcvar=dnscrypt_proxy_enable
stop_cmd="dnscrypt_proxy_stop"
load_rc_config dnscrypt_proxy
: {dnscrypt_proxy_enable:="NO"}
command=%%PREFIX%%/sbin/dnscrypt-proxy
procname=%%PREFIX%%/sbin/dnscrypt-proxy
pidfile=/var/run/dnscrypt-proxy.pid
logdir=/var/log/dnscrypt-proxy.log
command_args="-d -p ${pidfile} -l ${logdir}"
dnscrypt_proxy_stop() {
kill -KILL `cat ${pidfile}` 2> /dev/null && echo "Killed ${name}."
}
run_rc_command "$1"

View file

@ -0,0 +1,18 @@
This port/software comes all 'working out of the box'.
By default this port is using OpenDNS' resolvers,
but other nameservers are also possible.
To view available options, run:
%%PREFIX%%/sbin/dnscrypt-proxy --help
or read the manual: `man dnscrypt-proxy`
You might like to adjust
%%ETCDIR%%/rc.d/dnscrypt-proxy
accordingly with your needs and/or preferences.
To enable dnscrypt-proxy at boot:
echo dnscrypt_proxy_enable=\"YES\" >> /etc/rc.conf

View file

@ -0,0 +1,6 @@
DNSCrypt is a piece of lightweight software that everyone
should use to boost online privacy and security. It works
by encrypting all DNS traffic between the user and OpenDNS,
preventing any spying, spoofing or man-in-the-middle attacks.
WWW: https://www.opendns.com/technology/dnscrypt/

View file

@ -0,0 +1,2 @@
@stopdaemon dnscrypt-proxy
sbin/dnscrypt-proxy