gnu: Add debian-archive-keyring.
[jackhill/guix/guix.git] / gnu / packages / debian.scm
CommitLineData
8e1cd1a2
EF
1;;; Copyright © 2018 Efraim Flashner <efraim@flashner.co.il>
2;;;
3;;; GNU Guix is free software; you can redistribute it and/or modify it
4;;; under the terms of the GNU General Public License as published by
5;;; the Free Software Foundation; either version 3 of the License, or (at
6;;; your option) any later version.
7;;;
8;;; GNU Guix is distributed in the hope that it will be useful, but
9;;; WITHOUT ANY WARRANTY; without even the implied warranty of
10;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11;;; GNU General Public License for more details.
12;;;
13;;; You should have received a copy of the GNU General Public License
14;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
15
16(define-module (gnu packages debian)
17 #:use-module ((guix licenses) #:prefix license:)
18 #:use-module (guix download)
19 #:use-module (guix packages)
20 #:use-module (guix build-system gnu)
21 #:use-module (gnu packages gnupg))
22
23(define-public debian-archive-keyring
24 (package
25 (name "debian-archive-keyring")
26 (version "2017.7")
27 (source
28 (origin
29 (method url-fetch)
30 (uri (string-append "mirror://debian/pool/main/d/" name "/"
31 name "_" version ".tar.xz"))
32 (sha256
33 (base32
34 "1pdwgipfi0y4svhxlw8arhq792f1g3vlmw4raphizy7sa65vd4ca"))))
35 (build-system gnu-build-system)
36 (arguments
37 '(#:test-target "verify-results"
38 #:parallel-build? #f ; has race conditions
39 #:phases
40 (modify-phases %standard-phases
41 (delete 'configure) ; no configure script
42 (replace 'install
43 (lambda* (#:key outputs #:allow-other-keys)
44 (let* ((out (assoc-ref outputs "out"))
45 (apt (string-append out "/etc/apt/trusted.gpg.d/"))
46 (key (string-append out "/share/keyrings/")))
47 (install-file "keyrings/debian-archive-keyring.gpg" key)
48 (install-file "keyrings/debian-archive-removed-keys.gpg" key)
49 (for-each (lambda (file)
50 (install-file file apt))
51 (find-files "trusted.gpg" "\\.gpg$")))
52 #t)))))
53 (native-inputs
54 `(("gnupg" ,gnupg)
55 ("jetring" ,jetring)))
56 (home-page "https://packages.qa.debian.org/d/debian-archive-keyring.html")
57 (synopsis "GnuPG archive keys of the Debian archive")
58 (description
59 "The Debian project digitally signs its Release files. This package
60contains the archive keys used for that.")
61 (license (list license:public-domain ; the keys
62 license:gpl2+)))) ; see debian/copyright