[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/06: gnu: Add public-suffix-list.
From: |
guix-commits |
Subject: |
04/06: gnu: Add public-suffix-list. |
Date: |
Thu, 25 Apr 2019 00:14:08 -0400 (EDT) |
marusich pushed a commit to branch master
in repository guix.
commit 41553c90e4152ae69f4793459abcc5a00928a8e5
Author: Chris Marusich <address@hidden>
Date: Fri Apr 19 00:35:37 2019 -0700
gnu: Add public-suffix-list.
* 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 6a8f49f..ec10254 100644
--- a/gnu/packages/dns.scm
+++ b/gnu/packages/dns.scm
@@ -11,6 +11,7 @@
;;; Copyright © 2017 Gregor Giesen <address@hidden>
;;; Copyright © 2018 Oleg Pykhalov <address@hidden>
;;; Copyright © 2019 Mathieu Othacehe <address@hidden>
+;;; Copyright © 2019 Chris Marusich <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -812,3 +813,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))))
- branch master updated (0406434 -> 4728806), guix-commits, 2019/04/25
- 03/06: gnu: Add libu2f-host., guix-commits, 2019/04/25
- 02/06: gnu: Add python-pyscard and python2-pyscard., guix-commits, 2019/04/25
- 04/06: gnu: Add public-suffix-list.,
guix-commits <=
- 05/06: gnu: Add python-fido2 and python2-fido2., guix-commits, 2019/04/25
- 06/06: gnu: Add python-yubikey-manager and python2-yubikey-manager., guix-commits, 2019/04/25
- 01/06: gnu: Add python-pyfakefs and python2-pyfakefs., guix-commits, 2019/04/25