Commit | Line | Data |
---|---|---|
ff78435f EB |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org> | |
3 | ;;; | |
4 | ;;; This file is part of GNU Guix. | |
5 | ;;; | |
6 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
7 | ;;; under the terms of the GNU General Public License as published by | |
8 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
9 | ;;; your option) any later version. | |
10 | ;;; | |
11 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
12 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | ;;; GNU General Public License for more details. | |
15 | ;;; | |
16 | ;;; You should have received a copy of the GNU General Public License | |
17 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
18 | ||
19 | (define-module (gnu packages mcrypt) | |
20 | #:use-module (guix packages) | |
21 | #:use-module ((guix licenses) #:select (gpl2+)) | |
22 | #:use-module (guix download) | |
23 | #:use-module (guix build-system gnu) | |
24 | #:use-module (gnu packages) | |
25 | #:use-module (gnu packages compression) | |
26 | #:use-module (gnu packages perl) | |
27 | #:use-module (gnu packages file)) | |
28 | ||
29 | (define-public mcrypt | |
30 | (package | |
31 | (name "mcrypt") | |
32 | (version "2.6.8") | |
33 | (source | |
34 | (origin | |
35 | (method url-fetch) | |
36 | (uri (string-append "mirror://sourceforge/mcrypt/mcrypt-" | |
37 | version ".tar.gz")) | |
38 | (sha256 | |
39 | (base32 | |
40 | "161031n1w9pb4yzz9i47szc12a4mwpcpvyxnvafsik2l9s2aliai")))) | |
41 | (build-system gnu-build-system) | |
42 | (inputs | |
43 | `(("zlib" ,zlib) | |
44 | ("libmcrypt" ,libmcrypt) | |
45 | ("libmhash" ,libmhash))) | |
46 | (home-page "http://mcrypt.sourceforge.net/") | |
47 | (synopsis "Replacement for the popular Unix crypt command") | |
48 | (description | |
49 | "MCrypt is a replacement for the old crypt() package and crypt(1) | |
50 | command, with extensions. It allows developers to use a wide range of | |
51 | encryption functions, without making drastic changes to their code. It allows | |
52 | users to encrypt files or data streams without having to be cryptographers. | |
53 | The companion to MCrypt is Libmcrypt, which contains the actual encryption | |
54 | functions themselves, and provides a standardized mechanism for accessing | |
55 | them.") | |
56 | (license gpl2+))) | |
57 | ||
58 | (define-public libmcrypt | |
59 | (package | |
60 | (name "libmcrypt") | |
61 | (version "2.5.8") | |
62 | (source | |
63 | (origin | |
64 | (method url-fetch) | |
65 | (uri (string-append "mirror://sourceforge/mcrypt/libmcrypt-" | |
66 | version ".tar.gz")) | |
67 | (sha256 | |
68 | (base32 | |
69 | "0gipgb939vy9m66d3k8il98rvvwczyaw2ixr8yn6icds9c3nrsz4")))) | |
70 | (build-system gnu-build-system) | |
71 | (native-inputs `(("file" ,file))) | |
72 | (home-page "http://mcrypt.sourceforge.net/") | |
73 | (synopsis "Encryption algorithm library") | |
74 | (description | |
75 | "Libmcrypt is a data encryption library. The library is thread safe and | |
76 | provides encryption and decryption functions. This version of the library | |
77 | supports many encryption algorithms and encryption modes. Some algorithms | |
78 | which are supported: SERPENT, RIJNDAEL, 3DES, GOST, SAFER+, CAST-256, RC2, | |
79 | XTEA, 3WAY, TWOFISH, BLOWFISH, ARCFOUR, WAKE and more.") | |
80 | (license gpl2+))) | |
81 | ||
82 | (define-public libmhash | |
83 | (package | |
84 | (name "libmhash") | |
85 | (version "0.9.9.9") | |
86 | (source | |
87 | (origin | |
88 | (method url-fetch) | |
89 | ||
90 | (uri (string-append "mirror://sourceforge/mhash/mhash-" | |
91 | version ".tar.bz2")) | |
92 | (sha256 | |
93 | (base32 | |
94 | "1w7yiljan8gf1ibiypi6hm3r363imm3sxl1j8hapjdq3m591qljn")) | |
95 | (patches (list (search-patch "mhash-keygen-test-segfault.patch"))))) | |
96 | (build-system gnu-build-system) | |
97 | (native-inputs | |
98 | `(("file" ,file) | |
99 | ("perl" ,perl))) ;for tests | |
100 | (home-page "http://mhash.sourceforge.net/") | |
101 | (synopsis "Thread-safe hash library") | |
102 | (description | |
103 | "mhash is a thread-safe hash library, implemented in C, and provides a | |
104 | uniform interface to a large number of hash algorithms. These algorithms can | |
105 | be used to compute checksums, message digests, and other signatures. The HMAC | |
106 | support implements the basics for message authentication, following RFC 2104. | |
107 | ||
108 | Algorithms currently supplied are: | |
109 | ||
110 | CRC-32, CRC-32B, ALDER-32, MD-2, MD-4, MD-5, RIPEMD-128, RIPEMD-160, | |
111 | RIPEMD-256, RIPEMD-320, SHA-1, SHA-224, SHA-256, SHA-384, SHA-512, HAVAL-128, | |
112 | HAVAL-160, HAVAL-192, HAVAL-256, TIGER, TIGER-128, TIGER-160, GOST, WHIRLPOOL, | |
113 | SNEFRU-128, SNEFRU-256") | |
114 | (license gpl2+))) |