From patchwork Tue Feb 7 05:57:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Hilton Chain X-Patchwork-Id: 46721 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 8E86427BBE9; Tue, 7 Feb 2023 05:59:27 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FROM_SUSPICIOUS_NTLD,MAILING_LIST_MULTI,PDS_OTHER_BAD_TLD, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 9044D27BBEB for ; Tue, 7 Feb 2023 05:59:26 +0000 (GMT) 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 Authentication-Results: mail.boiledscript.com; auth=pass smtp.mailfrom=hako@ultrarare.space 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 X-Patchwork-Original-From: Hilton Chain via Guix-patches via From: Hilton Chain Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/dns.scm (smartdns): New variable. --- gnu/packages/dns.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) base-commit: 1f684d00d25f0f205c4cc4b762d8f56911062581 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+)))