Skip to content
Permalink
Browse files

dns/stubby: Add Stubby DNS Privacy Daemon v0.2.6

  • Loading branch information...
decke committed Apr 16, 2019
1 parent efe15ae commit 9977a99c0fa4698d940375d52cbc75cb791e154d
Showing with 80 additions and 0 deletions.
  1. +28 −0 dns/stubby/Makefile
  2. +3 −0 dns/stubby/distinfo
  3. +34 −0 dns/stubby/files/stubby.in
  4. +6 −0 dns/stubby/pkg-descr
  5. +9 −0 dns/stubby/pkg-plist
@@ -0,0 +1,28 @@
# $FreeBSD$

PORTNAME= stubby
PORTVERSION= 0.2.6
DISTVERSIONPREFIX= v
CATEGORIES= dns ipv6

MAINTAINER= decke@FreeBSD.org
COMMENT= DNS Privacy stub resolver

LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING

LIB_DEPENDS= libgetdns.so:dns/getdns \
libyaml.so:textproc/libyaml

USES= autoreconf gmake

USE_GITHUB= yes
GH_ACCOUNT= getdnsapi

GNU_CONFIGURE= yes
CONFIGURE_ARGS= CFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"

USE_RC_SUBR= stubby

.include <bsd.port.mk>
@@ -0,0 +1,3 @@
TIMESTAMP = 1555428267
SHA256 (getdnsapi-stubby-v0.2.6_GH0.tar.gz) = 634b0b9fb8f36416e210fa65800a6c1672bcf9f4f276a042ccf89567ad8ef781
SIZE (getdnsapi-stubby-v0.2.6_GH0.tar.gz) = 50774
@@ -0,0 +1,34 @@
#!/bin/sh
#
# $FreeBSD: head/dns/getdns/files/stubby.in 468888 2018-05-02 22:04:17Z zi $
#

# PROVIDE: stubby
# REQUIRE: NETWORKING SERVERS
# BEFORE: DAEMON
# KEYWORD: shutdown

#
# Add some of the following variables to /etc/rc.conf to configure stubby:
# stubby_enable (bool): Set to "NO" by default.
# Set it to "YES" to enable stubby.
# stubby_config (str): Default "%%PREFIX%%/etc/stubby.conf"
# Set it to the full path to the config file
# that stubby will use during the automated
# start-up.

. /etc/rc.subr

name="stubby"
rcvar=stubby_enable

load_rc_config $name

: ${stubby_enable="NO"}
: ${stubby_config="%%PREFIX%%/etc/stubby/stubby.yml"}

command="%%PREFIX%%/bin/stubby"
command_args="-g -C ${stubby_config}"

required_files=${stubby_config}
run_rc_command "$1"
@@ -0,0 +1,6 @@
Stubby is an application that acts as a local DNS Privacy stub resolver (using
DNS-over-TLS). Stubby encrypts DNS queries sent from a client machine (desktop
or laptop) to a DNS Privacy resolver increasing end user privacy. Stubby is in
the early stages of development but is suitable for technical/advanced users.

WWW: https://dnsprivacy.org/wiki/display/DP/DNS+Privacy+Daemon+-+Stubby
@@ -0,0 +1,9 @@
bin/stubby
@sample %%ETCDIR%%/stubby.yml.example
man/man1/stubby.1.gz
%%DOCSDIR%%/AUTHORS
%%DOCSDIR%%/COPYING
%%DOCSDIR%%/ChangeLog
%%DOCSDIR%%/INSTALL
%%DOCSDIR%%/NEWS
%%DOCSDIR%%/README.md

0 comments on commit 9977a99

Please sign in to comment.
You can’t perform that action at this time.