From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id YFpMIb7o4WMrZgEAbAwnHQ (envelope-from ) for ; Tue, 07 Feb 2023 06:59:26 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id wCOXIL7o4WOBNAEAG6o9tA (envelope-from ) for ; Tue, 07 Feb 2023 06:59:26 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5312080D7 for ; Tue, 7 Feb 2023 06:59:26 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pPH0X-0001Cg-Jr; Tue, 07 Feb 2023 00:59:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pPH0W-0001CY-Dv for guix-patches@gnu.org; Tue, 07 Feb 2023 00:59:08 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pPH0Q-0003Wx-JO for guix-patches@gnu.org; Tue, 07 Feb 2023 00:59:08 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pPH0Q-0002r1-BE for guix-patches@gnu.org; Tue, 07 Feb 2023 00:59:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61339] [PATCH] gnu: Add smartdns. Resent-From: Hilton Chain Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 07 Feb 2023 05:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61339 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61339@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.167574950410919 (code B ref -1); Tue, 07 Feb 2023 05:59:02 +0000 Received: (at submit) by debbugs.gnu.org; 7 Feb 2023 05:58:24 +0000 Received: from localhost ([127.0.0.1]:50811 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pPGzo-0002q3-2j for submit@debbugs.gnu.org; Tue, 07 Feb 2023 00:58:24 -0500 Received: from lists.gnu.org ([209.51.188.17]:38658) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pPGzm-0002pu-32 for submit@debbugs.gnu.org; Tue, 07 Feb 2023 00:58:22 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pPGzl-00019k-SJ for guix-patches@gnu.org; Tue, 07 Feb 2023 00:58:21 -0500 Received: from mail.boiledscript.com ([144.168.59.46]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pPGzk-0003V7-2g for guix-patches@gnu.org; Tue, 07 Feb 2023 00:58:21 -0500 Date: Tue, 07 Feb 2023 13:57:46 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1675749494; 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=V5JzR9QunSgi8jKNecVkriUlO/7AE52waEgXHmu2ato=; b=ZgpH12HzdAjtxifhaVRNoTghtJ6TxNZave14TvQmNsBGmNR7VEYnjp/uI+jItKNL1KMz8A WdnmSDEF13heLT6nHkG2PdubZfepaKLoMhL7slG8OCcJbjP1HcjY54aSpZV2tgzIU6XQt7 s4Q32YYoOwH6FAoyLD1oECKzHDigm+9E3D4kGgkXneIiTyBPlxS46crAL/hyedbGLyE5Yd ih6TCPWI8A6xrcmNbrobhq/BbIOOUGWmUvmym6jNteq9zVkJBynoK3xrj5GdOwxnAlDAEY LEVVNpd30Q033rFR+16otkRb/ZqL53A5uUIwbX9oMhk2y7YT9g/waQAeCifbRg== Message-ID: <87zg9qdnl1.wl-hako@ultrarare.space> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spamd-Bar: / Received-SPF: pass client-ip=144.168.59.46; envelope-from=hako@ultrarare.space; helo=mail.boiledscript.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Hilton Chain X-ACL-Warn: , Hilton Chain via Guix-patches From: Hilton Chain via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=ZgpH12Hz; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1675749566; a=rsa-sha256; cv=none; b=SgUb0LeAeqlIQIKBoJQqGZkAjEU0hRfIEriaFFbbu0T+/Tiun1xkOG7A+HqX1BZly9SRIJ 4/M1K3d1TeeEp35vr7GYMY8dzavtspAuS7MdRoWOtr5O3I3I9XKBs0m5UFelySFfj6BTvW ViegJf6OWGAs1wfh7uxt0jawbXVgzUh/SOTXqSWk8XQbqQDa5UyAIpYa5akwGLEoKHWKqg dxSz5uPTRGXFwcjuF9hdI1UYsr39jHYY0inURcpAfMkC7cA+MowskHLVQxzKOWxoF1OuQl 1P05kwGQ7kutgt+j2LbXPA0JlTp23vMsMkkIdk5Q4EAH1VuB/f6ThDOuSLhTPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1675749566; h=from:from:sender:sender:reply-to: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:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=V5JzR9QunSgi8jKNecVkriUlO/7AE52waEgXHmu2ato=; b=OTi7X7nmhZK170SVwSlsqjLv2RUn0ChbrqMV1AsvkC2RHB/5b929mz5SDNf2gpRIZj4Srg vVqmvQPtfov4Lw3x+9e+9KaPhy5VWrbUSjkEx5UAUIaR9Xyd1e23tIYfirBWl6p/Hl3ew8 qyHk0g/Rb+XgydHoCfeofxjZtA4GkzWZOdB3giOYr/Yj6pTbmIixbueyLJOzZVEZvg3Iqn COdsM+8i5ED7ZVnb/k/fkPDY6NsNOlzzMBOJ4Re0+NFA1gl7B1alvAX4uIdhU2rNFcFXeO 3MgkC1GQh74E539cT8ftF18l441AblHvB0+E5gWdJNjJWhzED+0AL/M5P84Zug== X-Migadu-Queue-Id: 5312080D7 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=ZgpH12Hz; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org X-Migadu-Spam-Score: -4.29 X-Spam-Score: -4.29 X-TUID: CSRKz1WZ7baa * gnu/packages/dns.scm (smartdns): New variable. --- gnu/packages/dns.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/dns.scm b/gnu/packages/dns.scm index 6eac4fa542..ef65dfa713 100644 --- a/gnu/packages/dns.scm +++ b/gnu/packages/dns.scm @@ -19,6 +19,7 @@ ;;; Copyright © 2020 Brice Waegeneire ;;; Copyright © 2020 Simon South ;;; Copyright © 2021 Zheng Junjie <873216071@qq.com> +;;; Copyright © 2023 Hilton Chain ;;; ;;; This file is part of GNU Guix. ;;; @@ -1389,3 +1390,38 @@ (define-public openresolv configure the real @file{/etc/resolv.conf} and optionally any local nameservers other than libc.") (license license:bsd-2))) + +(define-public smartdns + (package + (name "smartdns") + (version "40") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/pymumu/smartdns") + (commit (string-append "Release" version)))) + (file-name (git-file-name name version)) + (modules '((guix build utils))) + (snippet '(substitute* "Makefile" + ((".*SYSTEMDSYSTEMUNITDIR.*") ""))) + (sha256 + (base32 + "0ibbj96s40xgk6q7dsgpx65rjkknl1pn7nca5fcbbhcm2m80nzjj")))) + (build-system gnu-build-system) + (arguments + (list #:tests? #f ;no tests + #:make-flags + #~(list (string-append "CC=" #$(cc-for-target)) + (string-append "DESTDIR=" #$output) + "PREFIX=''") + #:phases + #~(modify-phases %standard-phases + (delete 'configure)))) + (inputs (list openssl)) + (home-page "https://github.com/pymumu/smartdns") + (synopsis "Local DNS server") + (description + "This package provides @code{SmartDNS}, a DNS server which accepts DNS +query requests from local clients, obtains DNS query results from multiple +upstream DNS servers, and returns the fastest access results to clients.") + (license license:gpl3+))) base-commit: 1f684d00d25f0f205c4cc4b762d8f56911062581 -- 2.39.1