gnu: Add amtk.
[jackhill/guix/guix.git] / gnu / packages / cpio.scm
CommitLineData
233e7676
LC
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2012 Nikita Karetnikov <nikita@karetnikov.org>
c7bdc7ec 3;;; Copyright © 2014 Mark H Weaver <mhw@netris.org>
501b1675 4;;;
233e7676 5;;; This file is part of GNU Guix.
501b1675 6;;;
233e7676 7;;; GNU Guix is free software; you can redistribute it and/or modify it
501b1675
NK
8;;; under the terms of the GNU General Public License as published by
9;;; the Free Software Foundation; either version 3 of the License, or (at
10;;; your option) any later version.
11;;;
233e7676 12;;; GNU Guix is distributed in the hope that it will be useful, but
501b1675
NK
13;;; WITHOUT ANY WARRANTY; without even the implied warranty of
14;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15;;; GNU General Public License for more details.
16;;;
17;;; You should have received a copy of the GNU General Public License
233e7676 18;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
501b1675 19
1ffa7090 20(define-module (gnu packages cpio)
4a44e743 21 #:use-module (guix licenses)
59a43334 22 #:use-module (gnu packages)
c7bdc7ec 23 #:use-module (gnu packages autotools)
501b1675
NK
24 #:use-module (guix packages)
25 #:use-module (guix download)
26 #:use-module (guix build-system gnu))
27
28(define-public cpio
29 (package
30 (name "cpio")
92d0fcb6 31 (version "2.12")
01eafd38
LC
32 (source (origin
33 (method url-fetch)
34 (uri (string-append "mirror://gnu/cpio/cpio-"
35 version ".tar.bz2"))
36 (sha256
37 (base32
4e58a402 38 "0vi9q475h1rki53100zml75vxsykzyhrn70hidy41s5c2rc8r6bh"))
fc1adab1 39 (patches (search-patches "cpio-CVE-2016-2037.patch"))))
501b1675 40 (build-system gnu-build-system)
501b1675 41 (home-page "https://www.gnu.org/software/cpio/")
f50d2669 42 (synopsis "Manage cpio and tar file archives")
501b1675 43 (description
c5779c93 44 "GNU cpio copies files into or out of cpio or tar archives. Indeed,
79c311b8 45many formats are supported, including legacy formats. The format is
c5779c93 46determined automatically by the program and is handled appropriately.
79c311b8
LC
47Furthermore, the location of the archive is not important. It can be another
48file on the drive, a tape, or data on a pipe.")
f50d2669 49 (license gpl3+)))