2010-05-19 22:58:47 +02:00
|
|
|
# Remember to install Pinentry and
|
|
|
|
# 'echo "pinentry-program `which pinentry-gtk-2`" >> ~/.gnupg/gpg-agent.conf'.
|
2008-07-07 13:50:21 +02:00
|
|
|
|
2010-05-19 22:59:07 +02:00
|
|
|
{ fetchurl, stdenv, readline, zlib, libgpgerror, pth, libgcrypt, libassuan
|
|
|
|
, libksba, coreutils, useLdap ? true, openldap ? null
|
|
|
|
, useBzip2 ? true, bzip2 ? null, useUsb ? true, libusb ? null
|
2010-05-19 22:58:47 +02:00
|
|
|
, useCurl ? true, curl ? null
|
2005-12-18 23:14:31 +01:00
|
|
|
}:
|
2005-03-22 16:23:20 +01:00
|
|
|
|
2010-05-19 22:58:47 +02:00
|
|
|
assert useLdap -> (openldap != null);
|
|
|
|
assert useBzip2 -> (bzip2 != null);
|
|
|
|
assert useUsb -> (libusb != null);
|
|
|
|
assert useCurl -> (curl != null);
|
2010-02-10 20:03:48 +01:00
|
|
|
|
2008-09-09 11:06:01 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2011-08-22 19:38:45 +02:00
|
|
|
name = "gnupg-2.0.18";
|
2008-09-09 11:06:01 +02:00
|
|
|
|
2005-03-22 16:23:20 +01:00
|
|
|
src = fetchurl {
|
2008-09-09 11:06:01 +02:00
|
|
|
url = "mirror://gnupg/gnupg/${name}.tar.bz2";
|
2011-08-22 19:38:45 +02:00
|
|
|
sha256 = "0nxf5nbgxi5splnw6xww5iy6sw367kz9x1cy5aaznhx45ivdvbj8";
|
2005-03-22 16:23:20 +01:00
|
|
|
};
|
2008-09-09 11:06:01 +02:00
|
|
|
|
2010-05-19 22:58:47 +02:00
|
|
|
buildInputs = [ readline zlib libgpgerror pth libgcrypt libassuan libksba ]
|
|
|
|
++ stdenv.lib.optional useLdap openldap
|
|
|
|
++ stdenv.lib.optional useBzip2 bzip2
|
|
|
|
++ stdenv.lib.optional useUsb libusb
|
|
|
|
++ stdenv.lib.optional useCurl curl;
|
|
|
|
|
2010-05-19 22:58:56 +02:00
|
|
|
patchPhase = ''
|
2010-05-19 22:59:07 +02:00
|
|
|
find tests -type f | xargs sed -e 's@/bin/pwd@${coreutils}&@g' -i
|
2010-05-19 22:58:56 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
checkPhase="GNUPGHOME=`pwd` ./agent/gpg-agent --daemon make check";
|
2010-05-19 22:58:47 +02:00
|
|
|
|
|
|
|
doCheck = true;
|
2008-01-15 01:55:21 +01:00
|
|
|
|
|
|
|
meta = {
|
2010-05-19 22:58:47 +02:00
|
|
|
description = "GNU Privacy Guard (GnuPG), GNU Project's implementation of the OpenPGP standard";
|
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
GnuPG is the GNU project's complete and free implementation of
|
|
|
|
the OpenPGP standard as defined by RFC4880. GnuPG allows to
|
|
|
|
encrypt and sign your data and communication, features a
|
|
|
|
versatile key managment system as well as access modules for all
|
|
|
|
kind of public key directories. GnuPG, also known as GPG, is a
|
|
|
|
command line tool with features for easy integration with other
|
|
|
|
applications. A wealth of frontend applications and libraries
|
|
|
|
are available. Version 2 of GnuPG also provides support for
|
|
|
|
S/MIME.
|
|
|
|
'';
|
|
|
|
|
|
|
|
homepage = http://gnupg.org/;
|
|
|
|
|
|
|
|
license = "GPLv3+";
|
|
|
|
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ ludo urkud ];
|
2008-01-15 01:55:21 +01:00
|
|
|
};
|
2005-03-22 16:23:20 +01:00
|
|
|
}
|