diff --git a/dns/blocky/Makefile b/dns/blocky/Makefile index 4c56a7e0aa68..c2ff14241a93 100644 --- a/dns/blocky/Makefile +++ b/dns/blocky/Makefile @@ -1,31 +1,32 @@ PORTNAME= blocky DISTVERSIONPREFIX= v DISTVERSION= 0.29.0 +PORTREVISION= 1 CATEGORIES= dns MAINTAINER= eduardo@FreeBSD.org COMMENT= Fast and lightweight DNS proxy as ad-blocker WWW= https://0xerr0r.github.io/blocky/ LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE USES= go:modules USE_RC_SUBR= blocky GO_MODULE= github.com/0xERR0R/blocky GO_TARGET= main.go:${PREFIX}/sbin/${PORTNAME} GO_BUILDFLAGS= -ldflags "-w -s \ -X github.com/0xERR0R/blocky/util.Version=${DISTVERSION} \ -X github.com/0xERR0R/blocky/util.BuildTime=`date '+%Y%m%d-%H%M%S'` \ -X github.com/0xERR0R/blocky/util.Architecture=${ARCH}" SUB_FILES= pkg-message PLIST_FILES= "@sample etc/blocky-config.yml.sample" \ sbin/blocky post-install: ${INSTALL_DATA} ${FILESDIR}/blocky-config.yml.sample ${STAGEDIR}${PREFIX}/etc/blocky-config.yml.sample .include diff --git a/dns/blocky/files/blocky-config.yml.sample b/dns/blocky/files/blocky-config.yml.sample index aae167cd4a9f..39794437fd4a 100644 --- a/dns/blocky/files/blocky-config.yml.sample +++ b/dns/blocky/files/blocky-config.yml.sample @@ -1,14 +1,21 @@ -upstream: - default: - - 1.1.1.1 - - tcp-tls:fdns1.dismail.de:853 - - https://dns.digitale-gesellschaft.ch/dns-query +upstreams: + groups: + default: + - 8.8.8.8 + - 1.1.1.1 + - https://dns.digitale-gesellschaft.ch/dns-query + +queryLog: + type: none + blocking: - blackLists: + denylists: ads: - https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts clientGroupsBlock: default: - ads -port: 53 -httpPort: 4000 + +ports: + dns: 53 + http: 4000