From: Hilton Chain via Guix-patches via <guix-patches@gnu.org>
To: 61339@debbugs.gnu.org
Subject: [bug#61339] [PATCH] gnu: Add smartdns.
Date: Tue, 07 Feb 2023 13:57:46 +0800 [thread overview]
Message-ID: <87zg9qdnl1.wl-hako@ultrarare.space> (raw)
* 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 <brice@waegenei.re>
;;; Copyright © 2020 Simon South <simon@simonsouth.net>
;;; Copyright © 2021 Zheng Junjie <873216071@qq.com>
+;;; Copyright © 2023 Hilton Chain <hako@ultrarare.space>
;;;
;;; 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
next reply other threads:[~2023-02-07 5:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-07 5:57 Hilton Chain via Guix-patches via [this message]
2023-02-11 21:15 ` bug#61339: [PATCH] gnu: Add smartdns Nicolas Goaziou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zg9qdnl1.wl-hako@ultrarare.space \
--to=guix-patches@gnu.org \
--cc=61339@debbugs.gnu.org \
--cc=hako@ultrarare.space \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.