From patchwork Wed Apr 22 13:29:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Arun Isaac X-Patchwork-Id: 21411 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 AE7EA27BBE4; Wed, 22 Apr 2020 14:30:14 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 6927827BBE1 for ; Wed, 22 Apr 2020 14:30:14 +0100 (BST) Received: from localhost ([::1]:50612 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRFSA-0005Pn-0S for patchwork@mira.cbaines.net; Wed, 22 Apr 2020 09:30:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57468) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRFS1-0005PR-P1 for guix-patches@gnu.org; Wed, 22 Apr 2020 09:30:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jRFRz-00047L-Qv for guix-patches@gnu.org; Wed, 22 Apr 2020 09:30:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:40039) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jRFRz-00045x-E5 for guix-patches@gnu.org; Wed, 22 Apr 2020 09:30:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jRFRz-0002Vn-8e for guix-patches@gnu.org; Wed, 22 Apr 2020 09:30:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#40767] [PATCH] gnu: Add maradns. Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 22 Apr 2020 13:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 40767 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 40767@debbugs.gnu.org Cc: Arun Isaac X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15875621849593 (code B ref -1); Wed, 22 Apr 2020 13:30:03 +0000 Received: (at submit) by debbugs.gnu.org; 22 Apr 2020 13:29:44 +0000 Received: from localhost ([127.0.0.1]:51585 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jRFRb-0002UT-5x for submit@debbugs.gnu.org; Wed, 22 Apr 2020 09:29:44 -0400 Received: from lists.gnu.org ([209.51.188.17]:59810) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jRFRY-0002UH-Dj for submit@debbugs.gnu.org; Wed, 22 Apr 2020 09:29:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57278) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRFRX-0005Ly-RK for guix-patches@gnu.org; Wed, 22 Apr 2020 09:29:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jRFRV-0003Kg-Jw for guix-patches@gnu.org; Wed, 22 Apr 2020 09:29:34 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:35190) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jRFRU-00038X-IH for guix-patches@gnu.org; Wed, 22 Apr 2020 09:29:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=J2mDsagPGNuvgAZWgsOQGoqMfqtM4ki+RX2N/FUFQmA=; b=iMspYFepslTRn9JpsRLcXNk6ku oyQFtTAweaIUl+iNsmDlnBw/zRJhMwdyWsuagxY60EGPC7fa77ZDH/+Dh/9cNh2e412oIi4zW3VQz r94MJpLH5gm0ZtJxmos4x5PULE4ye9uWmhwM2taEcAOtwiw1hJ7XYmxG89aKA1quqHk8=; Received: from [192.168.2.1] (helo=steel.lan) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1jRFRM-000Bij-K1; Wed, 22 Apr 2020 18:59:24 +0530 From: Arun Isaac Date: Wed, 22 Apr 2020 18:59:22 +0530 Message-Id: <20200422132922.9539-1-arunisaac@systemreboot.net> X-Mailer: git-send-email 2.26.1 MIME-Version: 1.0 Received-SPF: pass client-ip=139.59.75.54; envelope-from=arunisaac@systemreboot.net; helo=mugam.systemreboot.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/04/22 09:29:25 X-ACL-Warn: Detected OS = ??? X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/dns.scm (maradns): New variable. --- gnu/packages/dns.scm | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/gnu/packages/dns.scm b/gnu/packages/dns.scm index 0f7227ad03..75be82b3b4 100644 --- a/gnu/packages/dns.scm +++ b/gnu/packages/dns.scm @@ -14,6 +14,7 @@ ;;; Copyright © 2019 Chris Marusich ;;; Copyright © 2019 Rutger Helling ;;; Copyright © 2020 Pierre Langlois +;;; Copyright © 2020 Arun Isaac ;;; ;;; This file is part of GNU Guix. ;;; @@ -949,3 +950,44 @@ could) directly register names in the Domain Name System (DNS). Some examples of public suffixes are .com, .co.uk and pvt.k12.ma.us. This is a list of all known public suffixes.") (license license:mpl2.0)))) + +(define-public maradns + (package + (name "maradns") + (version "3.5.0004") + (source + (origin + (method url-fetch) + (uri (string-append "https://maradns.samiam.org/download/" + (version-major+minor version) "/" + version "/maradns-" version ".tar.xz")) + (sha256 + (base32 + "1zv0i6m4m05ay5zlhwq1h88hgjq2d81cjanpnb3gyhr0xhmjwk6a")))) + (build-system gnu-build-system) + (arguments + `(#:tests? #f ; need to be root to run tests + #:make-flags (list "CC=gcc" + (string-append "PREFIX=" %output) + (string-append "RPM_BUILD_ROOT=" %output)) + #:phases + (modify-phases %standard-phases + (replace 'configure + (lambda _ + (invoke "./configure"))) + (add-before 'install 'create-install-directories + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (for-each (lambda (dir) + (mkdir-p (string-append out dir))) + (list "/bin" "/sbin" "/etc" + "/share/man/man1" + "/share/man/man5" + "/share/man/man8")) + #t)))))) + (home-page "https://maradns.samiam.org") + (synopsis "Small lightweight DNS server") + (description "MaraDNS is a small and lightweight DNS server. MaraDNS +consists of a UDP-only authoritative DNS server for hosting domains, and a UDP +and TCP-capable recursive DNS server for finding domains on the internet.") + (license license:bsd-2)))