From owner-svn-ports-head@freebsd.org Tue Jul 10 11:49:03 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 094741043C02; Tue, 10 Jul 2018 11:49:03 +0000 (UTC) (envelope-from ehaupt@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AF49472420; Tue, 10 Jul 2018 11:49:02 +0000 (UTC) (envelope-from ehaupt@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 91A5F2387B; Tue, 10 Jul 2018 11:49:02 +0000 (UTC) (envelope-from ehaupt@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w6ABn2JW015655; Tue, 10 Jul 2018 11:49:02 GMT (envelope-from ehaupt@FreeBSD.org) Received: (from ehaupt@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w6ABn1If015651; Tue, 10 Jul 2018 11:49:01 GMT (envelope-from ehaupt@FreeBSD.org) Message-Id: <201807101149.w6ABn1If015651@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ehaupt set sender to ehaupt@FreeBSD.org using -f From: Emanuel Haupt Date: Tue, 10 Jul 2018 11:49:01 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r474355 - in head/dns: . utdns utdns/files X-SVN-Group: ports-head X-SVN-Commit-Author: ehaupt X-SVN-Commit-Paths: in head/dns: . utdns utdns/files X-SVN-Commit-Revision: 474355 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jul 2018 11:49:03 -0000 Author: ehaupt Date: Tue Jul 10 11:49:01 2018 New Revision: 474355 URL: https://svnweb.freebsd.org/changeset/ports/474355 Log: UTdns is a nifty tool which proxies all UDP-based DNS requests through TCP DNS. This is usefull if you have to tunnel DNS through TCP-only tunnels. This respectively was the requirement for the development of this tool. WWW: https://www.cypherpunk.at/2013/04/dnsudp-to-tcp-translator/ Added: head/dns/utdns/ head/dns/utdns/Makefile (contents, props changed) head/dns/utdns/distinfo (contents, props changed) head/dns/utdns/files/ head/dns/utdns/files/utdns.in (contents, props changed) head/dns/utdns/pkg-descr (contents, props changed) Modified: head/dns/Makefile Modified: head/dns/Makefile ============================================================================== --- head/dns/Makefile Tue Jul 10 11:48:21 2018 (r474354) +++ head/dns/Makefile Tue Jul 10 11:49:01 2018 (r474355) @@ -223,6 +223,7 @@ SUBDIR += udns SUBDIR += unbound SUBDIR += updatedd + SUBDIR += utdns SUBDIR += validns SUBDIR += vhostcname SUBDIR += vizone Added: head/dns/utdns/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/dns/utdns/Makefile Tue Jul 10 11:49:01 2018 (r474355) @@ -0,0 +1,25 @@ +# Created by: Emanuel Haupt +# $FreeBSD$ + +PORTNAME= utdns +PORTVERSION= 1.0 +DISTVERSIONSUFFIX= .r1437 +CATEGORIES= dns +MASTER_SITES= https://www.cypherpunk.at/download/utdns/ \ + LOCAL/ehaupt + +MAINTAINER= ehaupt@FreeBSD.org +COMMENT= Proxy UDP/DNS to TCP/DNS + +LICENSE= GPLv3 + +GNU_CONFIGURE= yes +USE_RC_SUBR= ${PORTNAME} + +SUB_LIST= PORTNAME=${PORTNAME} + +CFLAGS+= -DSOCK_NONBLOCK=1 + +PLIST_FILES= bin/utdns + +.include Added: head/dns/utdns/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/dns/utdns/distinfo Tue Jul 10 11:49:01 2018 (r474355) @@ -0,0 +1,3 @@ +TIMESTAMP = 1531211131 +SHA256 (utdns-1.0.r1437.tar.gz) = fd2ab9846e722f937c291d9163c18fbcfc8439dabad895444770e4978a44c5cc +SIZE (utdns-1.0.r1437.tar.gz) = 78377 Added: head/dns/utdns/files/utdns.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/dns/utdns/files/utdns.in Tue Jul 10 11:49:01 2018 (r474355) @@ -0,0 +1,29 @@ +#!/bin/sh + +# $FreeBSD$ +# +# PROVIDE: %%PORTNAME%% +# REQUIRE: LOGIN +# KEYWORD: shutdown +# +# Add the following lines to /etc/rc.conf.local or /etc/rc.conf +# to enable this service: +# +# %%PORTNAME%%_enable (bool): Set to NO by default. +# Set it to YES to enable it. +# %%PORTNAME%%_flags: Additional flags (see utdns --help) + +. /etc/rc.subr + +name="%%PORTNAME%%" +rcvar="${name}_enable" + +load_rc_config ${name} + +: ${utdns_enable:="NO"} +: ${utdns_flags:=" -b -4 -p 53 0.0.0.0"} + +command="%%PREFIX%%/bin/${name}" +command_args='> /dev/null 2>&1' + +run_rc_command "$1" Added: head/dns/utdns/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/dns/utdns/pkg-descr Tue Jul 10 11:49:01 2018 (r474355) @@ -0,0 +1,5 @@ +UTdns is a nifty tool which proxies all UDP-based DNS requests through TCP DNS. +This is usefull if you have to tunnel DNS through TCP-only tunnels. This +respectively was the requirement for the development of this tool. + +WWW: https://www.cypherpunk.at/2013/04/dnsudp-to-tcp-translator/