Commit | Line | Data |
---|---|---|
f2499672 AE |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2013 Andreas Enge <andreas@enge.fr> | |
02c108bd | 3 | ;;; Copyright © 2014 Mark H Weaver <mhw@netris.org> |
f2499672 AE |
4 | ;;; |
5 | ;;; This file is part of GNU Guix. | |
6 | ;;; | |
7 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
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 | ;;; | |
12 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
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 | |
18 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
19 | ||
1ffa7090 | 20 | (define-module (gnu packages file) |
59a43334 | 21 | #:use-module (gnu packages) |
f2499672 AE |
22 | #:use-module (guix licenses) |
23 | #:use-module (guix packages) | |
24 | #:use-module (guix download) | |
25 | #:use-module (guix build-system gnu)) | |
26 | ||
27 | (define-public file | |
28 | (package | |
29 | (name "file") | |
48abd130 | 30 | (version "5.19") |
f2499672 AE |
31 | (source (origin |
32 | (method url-fetch) | |
33 | (uri (string-append "ftp://ftp.astron.com/pub/file/file-" | |
34 | version ".tar.gz")) | |
35 | (sha256 (base32 | |
48abd130 MW |
36 | "0z1sgrcfy6d285kj5izy1yypf371bjl3247plh9ppk0svaxv714l")) |
37 | (patches (list (search-patch "file-CVE-2014-3587.patch"))))) | |
f2499672 | 38 | (build-system gnu-build-system) |
35b9e423 | 39 | (synopsis "File type guesser") |
f2499672 AE |
40 | (description |
41 | "The file command is a file type guesser, a command-line tool that tells | |
35b9e423 | 42 | you in words what kind of data a file contains. It does not rely on filename |
3fd242e0 | 43 | extensions to tell you the type of a file, but looks at the actual contents |
f2499672 AE |
44 | of the file.") |
45 | (license bsd-2) | |
46 | (home-page "http://www.darwinsys.com/file/"))) | |
3940c5ca | 47 | |
310081e2 LC |
48 | (define-public file-5.20 ;fix for CVE-2014-3710 |
49 | (package (inherit file) | |
50 | (version "5.20") | |
51 | (source (origin | |
52 | (method url-fetch) | |
53 | (uri (string-append "ftp://ftp.astron.com/pub/file/file-" | |
54 | version ".tar.gz")) | |
55 | (sha256 | |
56 | (base32 | |
57 | "0iyjs9z8kp43gz7gva4j67h4p0n53f7q8x3ibai9s01sp3xnphsv")))))) |