From patchwork Sat Apr 20 01:07:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Christopher Marusich X-Patchwork-Id: 9597 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 99A0216ECD; Sat, 20 Apr 2019 02:09:11 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id D8FE316EA1 for ; Sat, 20 Apr 2019 02:09:10 +0100 (BST) Received: from localhost ([127.0.0.1]:35153 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hHeVC-0001BN-CG for patchwork@mira.cbaines.net; Fri, 19 Apr 2019 21:09:10 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37468) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hHeV7-00017u-Ri for guix-patches@gnu.org; Fri, 19 Apr 2019 21:09:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hHeV6-0003dj-LU for guix-patches@gnu.org; Fri, 19 Apr 2019 21:09:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59807) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hHeV6-0003dU-Gz for guix-patches@gnu.org; Fri, 19 Apr 2019 21:09:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hHeV6-0006bD-AS for guix-patches@gnu.org; Fri, 19 Apr 2019 21:09:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#35333] [PATCH 4/6] gnu: Add public-suffix-list. Resent-From: Chris Marusich Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 20 Apr 2019 01:09:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35333 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 35333@debbugs.gnu.org Received: via spool by 35333-submit@debbugs.gnu.org id=B35333.155572252625289 (code B ref 35333); Sat, 20 Apr 2019 01:09:04 +0000 Received: (at 35333) by debbugs.gnu.org; 20 Apr 2019 01:08:46 +0000 Received: from localhost ([127.0.0.1]:45108 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hHeUn-0006Zj-IO for submit@debbugs.gnu.org; Fri, 19 Apr 2019 21:08:45 -0400 Received: from mail-pl1-f180.google.com ([209.85.214.180]:34798) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hHeUg-0006Yg-Fj for 35333@debbugs.gnu.org; Fri, 19 Apr 2019 21:08:39 -0400 Received: by mail-pl1-f180.google.com with SMTP id y6so3270078plt.1 for <35333@debbugs.gnu.org>; Fri, 19 Apr 2019 18:08:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=rBBJvbbrFlQ6jQYGzTQI4PHggql5f5DkJ3jdUHCQ3VY=; b=kOl64CyAK5r19zTjhO7LfSZd2BDja+FcxYY9wcrU8Hob2xBCmoP1Q3CpB4YxObU7f4 URvwD7Zitr3csko+U+NrDOI3+yE1+Tpdv2j05LGY6s37zO5OcsHhFig202Z/aQbu+PRA jh3GcQ2P3wWAHxwXkDjb31X928ULsPv34fY27loZVpAbspdmgkI2b6ujxzWSPoVWDddd HLsPqCyN0u3YH5xI6KacDC4DQEF6z+09CXP4YeS6cgJPhZ7pJpjEnakNL5Fd0tc6GLhk QSrCvCY1ZwdebiW1jd/Wsh7FaFb+/qQjGi2GCFJrbgPPwVBK2lD/0IICkws1C7BwyJ5j /O/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=rBBJvbbrFlQ6jQYGzTQI4PHggql5f5DkJ3jdUHCQ3VY=; b=AoIOJ2Bl1TThxHbb0pYrhp9w/Voc/VDlN7qc2wX+u7ASl4sFr9/Txj0bmybPChNizs RXpgm9xeUc8N9LaG+3XA+5Lq8a7YxLJu269Ig3Dh9unSOv7lXTXadVoJQEBAeuYgVqLo 4xMQee01ldFSHnzC3sT1A55rJf32rHsbTjLm0h2HswQaRkbaNtCnFZBXPa5ksTqRK71i ggTQceI/mK8KGdinIvINcR+3BOWuLmkmWXeWAbZF1xR7tVmayFtHx0ZLuJ2AUgN+MSXD wFkBOIflX5pWNaixgZRFKpFdT9yuO2s2BAYJLgEujRoAJiF10P1nJ7DrwdGa6Egjz2nq fU9g== X-Gm-Message-State: APjAAAUB8HHy7wKpZjqva1UE+LcTFbjbZMWwYJag8e6FA/6yucIaMoxG HMErXR6PB7RDdOGmEC6h4IuUYjS9 X-Google-Smtp-Source: APXvYqwkKOZH3d2h5DMKBQWm3P0qJbxrSbRqLCwl6jfEDjRuA/jgb8yfVPQ5JDWqohijMyk7ckaHfA== X-Received: by 2002:a17:902:20c6:: with SMTP id v6mr6608776plg.276.1555722512364; Fri, 19 Apr 2019 18:08:32 -0700 (PDT) Received: from garuda.lan ([2601:601:9d80:25b2::fa8]) by smtp.gmail.com with ESMTPSA id h16sm8876885pgj.85.2019.04.19.18.08.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Apr 2019 18:08:31 -0700 (PDT) From: Chris Marusich Date: Fri, 19 Apr 2019 18:07:58 -0700 Message-Id: <20190420010800.5741-5-cmmarusich@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190420010800.5741-1-cmmarusich@gmail.com> References: <20190420003814.5120-1-cmmarusich@gmail.com> <20190420010800.5741-1-cmmarusich@gmail.com> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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: , Cc: Chris Marusich Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/dns.scm (public-suffix-list): New variable. --- gnu/packages/dns.scm | 51 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/gnu/packages/dns.scm b/gnu/packages/dns.scm index 9cffe3b822..416c9e4264 100644 --- a/gnu/packages/dns.scm +++ b/gnu/packages/dns.scm @@ -11,6 +11,7 @@ ;;; Copyright © 2017 Gregor Giesen ;;; Copyright © 2018 Oleg Pykhalov ;;; Copyright © 2019 Mathieu Othacehe +;;; Copyright © 2019 Chris Marusich ;;; ;;; This file is part of GNU Guix. ;;; @@ -807,3 +808,53 @@ mDNS resolver as well as an announcer. mDNS (Multicast Domain Name System) is a zero-config service that allows one to resolve host names to IP addresses in local networks.") (license license:lgpl2.1))) + +(define-public public-suffix-list + ;; Mozilla releases the official list here: + ;; + ;; https://publicsuffix.org/list/public_suffix_list.dat + ;; + ;; However, Mozilla syncs that file from the GitHub repository periodically, + ;; so its contents will change over time. If you update this commit, please + ;; make sure that the new commit refers to a list which is identical to the + ;; officially published list available from the URL above. + (let ((commit "9375b697baddb0827a5995c81bd3c75877a0b35d")) + (package + (name "public-suffix-list") + (version (git-version "0" "1" commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/publicsuffix/list.git") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1sm7pni01rnl4ldzi8z8nc4cbgq8nxda9gwc68v0s3ij7jd1jmik")))) + (build-system trivial-build-system) + (arguments + `(#:modules ((guix build utils)) + #:builder + (begin + (use-modules (guix build utils)) + (let* ((out (assoc-ref %outputs "out")) + ;; Install to /share because that is where "read-only + ;; architecture-independent data files" should go (see: + ;; (standards) Directory Variables). Include the version in + ;; the directory name so that if multiple versions are ever + ;; installed in the same profile, they will not conflict. + (destination (string-append + out "/share/public-suffix-list-" ,version)) + (source (assoc-ref %build-inputs "source"))) + (with-directory-excursion source + (install-file "public_suffix_list.dat" destination) + (install-file "LICENSE" destination)) + #t)))) + (home-page "https://publicsuffix.org/") + (synopsis "Database of current and historical DNS suffixes") + (description "This is the Public Suffix List maintained by Mozilla. A +\"public suffix\" is one under which Internet users can (or historically +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))))