From nobody Thu Feb 08 03:07:37 2024 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TVhk21llYz58j0T; Thu, 8 Feb 2024 03:07:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TVhk214vRz4nJJ; Thu, 8 Feb 2024 03:07:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707361658; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xIhmDn6wxdua3t0HNWYAFG7imWInysjfP2J+DK/Ghs0=; b=oe1glm6l5cZArqT8Rd8DUnXqT0GZDB/WTzdi3992eSsT/1wwjkq+oifOgTJvX1apjiRk6n raVMTZAW6ltkaib7XbAzpxXV1HFv/NgS+Ux5+u9NipHWHhn/uS+y58dp8GFh/oYS2ehUJH a714yu/07PFJnd5hTuInJq3s7WayQKjQI1sxJaG0NlIysKvD46cGg5qmnpwZX4Pn39/qPA MQdd3Y96QuXlcn/bBFBndIXTuST6iDis1qwAMWIp5BemyqBtO7Th7ydtXmIaYoxNJLeuPd QrrBrbX3bmwPq840fSkyLIw7lrIs4FSQtYhYHUvuXyIH3sNX+SxKt37U82LIIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707361658; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xIhmDn6wxdua3t0HNWYAFG7imWInysjfP2J+DK/Ghs0=; b=K3iqCSvyBIoq2G2H98vG5o0YyHbrV8ahtZJGSQu1X3i4YBzHze2YEKCAB6ZMCHYoZ9bMOZ C6SL9HT/3l9s0BxgB+LIaLwNOtTJ1spSdqhAWSIS8Nw7QBjVv6lg42pXufpnoQH/lPQa4b wJyhbwW0JtmPF5EAa/Kf0bApFpSvmC9UA/jgt1xrdAemwHoRM6pNjdwIAsP3a0nSwzzlRd 885q4Q8Rqr7rx1q+la6+4rFTYL/eyscBbvqH3IT+4bWWmcDJLW9euQ7c0K7MLJzrw/q+Wf 6RH63IZZYe/41wZU90PZMTcDEIYu5BeEMcwh0IaBPJwyzFISyeihi3HQZYaXQA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707361658; a=rsa-sha256; cv=none; b=JPWbeQGVJkEmeHZ4BG6mUd5k3QkbRCfOktXv+crUQMSLMWvbER4+Rcs2BBs2wi6yCHHzgV aNJRtwvaofYjhgNUytPnMxqpz21Vfzh47SnR909D0RuXTiNCac7MsYWhUKGqDxiUMMUHRn znslMOYIJamptT7VXZB66IW88a7US7CFTrS2Vx5MEwNgtXb3Ea/8tNXKjyI9wdvxZRiUAb kYAbrDEPobdnM7oeKcAikAOEYvFhgM8cJK/apeQSam9MgcWkHyEMuo9J3Hh7TAUS9+67wk I4YmXAKRZZTMtVHFhTqAHpX43Zf0rGhbJc30CqiSKCEJJ61PFVcxovCn86JfWw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TVhk2091szYZJ; Thu, 8 Feb 2024 03:07:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41837b0R061346; Thu, 8 Feb 2024 03:07:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41837bAj061343; Thu, 8 Feb 2024 03:07:37 GMT (envelope-from git) Date: Thu, 8 Feb 2024 03:07:37 GMT Message-Id: <202402080307.41837bAj061343@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Alexey Dokuchaev Subject: git: 6b1147423943 - main - net/https_dns_proxy: new port had been added (+) List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: danfe X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6b11474239435f6c65b9aba9e39e51e4935ed321 Auto-Submitted: auto-generated The branch main has been updated by danfe: URL: https://cgit.FreeBSD.org/ports/commit/?id=6b11474239435f6c65b9aba9e39e51e4935ed321 commit 6b11474239435f6c65b9aba9e39e51e4935ed321 Author: Alexey Dokuchaev AuthorDate: 2024-02-08 03:05:54 +0000 Commit: Alexey Dokuchaev CommitDate: 2024-02-08 03:05:54 +0000 net/https_dns_proxy: new port had been added (+) Light-weight (written in plain C) DNS-HTTPS, non-caching translation proxy when DNSCrypt-Proxy does not quite fit (or even does not work). WWW: https://github.com/aarond10/https_dns_proxy --- dns/Makefile | 1 + dns/https_dns_proxy/Makefile | 29 ++++++++++++++++++++++++++ dns/https_dns_proxy/distinfo | 3 +++ dns/https_dns_proxy/files/patch-CMakeLists.txt | 20 ++++++++++++++++++ dns/https_dns_proxy/pkg-descr | 15 +++++++++++++ 5 files changed, 68 insertions(+) diff --git a/dns/Makefile b/dns/Makefile index daf0b7055422..18c8aac235dc 100644 --- a/dns/Makefile +++ b/dns/Makefile @@ -80,6 +80,7 @@ SUBDIR += hesiod SUBDIR += hetzner_ddns SUBDIR += hostdb + SUBDIR += https_dns_proxy SUBDIR += idnkit SUBDIR += idnkit2 SUBDIR += inadyn diff --git a/dns/https_dns_proxy/Makefile b/dns/https_dns_proxy/Makefile new file mode 100644 index 000000000000..7a71dddc918d --- /dev/null +++ b/dns/https_dns_proxy/Makefile @@ -0,0 +1,29 @@ +PORTNAME= https_dns_proxy +PORTVERSION= g20231226 +CATEGORIES= dns net + +MAINTAINER= danfe@FreeBSD.org +COMMENT= Light-weight DNS-HTTPS, non-caching translation proxy +WWW= https://github.com/aarond10/https_dns_proxy + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libcares.so:dns/c-ares \ + libcurl.so:ftp/curl \ + libev.so:devel/libev + +USES= cmake +USE_GITHUB= yes +GH_ACCOUNT= aarond10 +GH_TAGNAME= 8afbba7 + +CMAKE_ARGS= -DSW_VERSION:STRING=2023.12.26-${GH_TAGNAME} + +PLIST_FILES= bin/${PORTNAME} + +do-install: + ${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/${PORTNAME} \ + ${STAGEDIR}${PREFIX}/bin + +.include diff --git a/dns/https_dns_proxy/distinfo b/dns/https_dns_proxy/distinfo new file mode 100644 index 000000000000..5c85b3a2f047 --- /dev/null +++ b/dns/https_dns_proxy/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1703626567 +SHA256 (aarond10-https_dns_proxy-g20231226-8afbba7_GH0.tar.gz) = 118c192d97587eeb54dbf40aff2cc919e9bd1d3c78a3c8489fddfe73009f9e4c +SIZE (aarond10-https_dns_proxy-g20231226-8afbba7_GH0.tar.gz) = 28002 diff --git a/dns/https_dns_proxy/files/patch-CMakeLists.txt b/dns/https_dns_proxy/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..462aea6deea2 --- /dev/null +++ b/dns/https_dns_proxy/files/patch-CMakeLists.txt @@ -0,0 +1,20 @@ +--- CMakeLists.txt.orig 2023-12-26 21:36:07 UTC ++++ CMakeLists.txt +@@ -67,6 +67,7 @@ endif() + + find_path(LIBCARES_INCLUDE_DIR ares.h) + find_path(LIBEV_INCLUDE_DIR ev.h) ++cmake_path(GET LIBEV_INCLUDE_DIR PARENT_PATH LOCALBASE) + + if(CUSTOM_LIBCURL_INSTALL_PATH) + message(STATUS "Using custom libcurl from: ${CUSTOM_LIBCURL_INSTALL_PATH}") +@@ -108,7 +109,8 @@ set(TARGET_NAME "https_dns_proxy") + aux_source_directory(src SRC_LIST) + set(SRC_LIST ${SRC_LIST}) + add_executable(${TARGET_NAME} ${SRC_LIST}) +-set(LIBS ${LIBS} cares curl ev resolv) ++set(LIBS ${LIBS} cares curl ev) ++target_link_directories(${TARGET_NAME} PRIVATE ${LOCALBASE}/lib) + target_link_libraries(${TARGET_NAME} ${LIBS}) + set_property(TARGET ${TARGET_NAME} PROPERTY C_STANDARD 11) + diff --git a/dns/https_dns_proxy/pkg-descr b/dns/https_dns_proxy/pkg-descr new file mode 100644 index 000000000000..3820dfcbc367 --- /dev/null +++ b/dns/https_dns_proxy/pkg-descr @@ -0,0 +1,15 @@ +https_dns_proxy is light-weight DNS<->HTTPS, non-caching translation +proxy for the RFC 8484 DNS-over-HTTPS standard. It receives regular +(UDP) DNS requests and issues them via DoH. + +Using DNS over HTTPS makes eavesdropping and spoofing of DNS traffic +between you and the HTTPS DNS provider (Google/Cloudflare) much less +likely, of course so long as you trust your DoH provider. Features: + + - Tiny size (<45kiB) + - Uses cURL for HTTP/2 and pipelining, keeping resolve latencies + extremely low + - Single-threaded, non-blocking select() server for use on + resource-starved embedded systems + - Designed to sit in front of dnsmasq or similar caching resolver + for transparent use