gnu: orfm: Update to 0.4.1.
[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")
31 (version "2.11")
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
38 "1gavgpzqwgkpagjxw72xgxz52y1ifgz0ckqh8g7cckz7jvyhp0mv"))
c7bdc7ec
MW
39 (patches (list (search-patch "cpio-CVE-2014-9112-pt1.patch")
40 (search-patch "cpio-CVE-2014-9112-pt2.patch")
41 (search-patch "cpio-CVE-2014-9112-pt3.patch")
42 (search-patch "cpio-CVE-2014-9112-pt4.patch")
43 (search-patch "cpio-CVE-2014-9112-pt5.patch")
44 (search-patch "cpio-gets-undeclared.patch")))))
501b1675 45 (build-system gnu-build-system)
c7bdc7ec
MW
46
47 ;; FIXME: autoconf is needed to run autom4te, to update to test suite
48 ;; after the CVE-2014-9112 patches. Remove this when cpio is
49 ;; updated to post-2.11.
50 (native-inputs `(("autoconf" ,autoconf)))
51
501b1675 52 (home-page "https://www.gnu.org/software/cpio/")
f50d2669 53 (synopsis "Manage cpio and tar file archives")
501b1675 54 (description
c5779c93 55 "GNU cpio copies files into or out of cpio or tar archives. Indeed,
79c311b8 56many formats are supported, including legacy formats. The format is
c5779c93 57determined automatically by the program and is handled appropriately.
79c311b8
LC
58Furthermore, the location of the archive is not important. It can be another
59file on the drive, a tape, or data on a pipe.")
f50d2669 60 (license gpl3+)))