2018-09-06 13:09:48 +00:00
|
|
|
{ stdenv, fetchurl, makeWrapper
|
|
|
|
, perl, perlPackages, libassuan, libgcrypt
|
|
|
|
}:
|
2015-08-01 09:03:40 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "monkeysphere-${version}";
|
2018-09-06 13:09:48 +00:00
|
|
|
version = "0.41";
|
2015-08-01 09:03:40 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-09-06 13:09:48 +00:00
|
|
|
url = "http://archive.monkeysphere.info/debian/pool/monkeysphere/m/monkeysphere/monkeysphere_${version}.orig.tar.gz";
|
|
|
|
sha256 = "0jz7kwkwgylqprnl8bwvl084s5gjrilza77ln18i3f6x48b2y6li";
|
2015-08-01 09:03:40 +00:00
|
|
|
};
|
|
|
|
|
2018-09-06 13:09:48 +00:00
|
|
|
buildInputs = [ makeWrapper perl libassuan libgcrypt ];
|
2015-08-01 09:03:40 +00:00
|
|
|
|
|
|
|
patches = [ ./monkeysphere.patch ];
|
|
|
|
|
|
|
|
makeFlags = ''
|
|
|
|
PREFIX=/
|
|
|
|
DESTDIR=$(out)
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/openpgp2ssh --prefix PERL5LIB : \
|
|
|
|
"${with perlPackages; stdenv.lib.makePerlPath [
|
|
|
|
CryptOpenSSLRSA
|
|
|
|
CryptOpenSSLBignum
|
|
|
|
]}"
|
2018-02-22 20:02:52 +00:00
|
|
|
wrapProgram $out/bin/monkeysphere --prefix PERL5LIB :\
|
|
|
|
"${with perlPackages; stdenv.lib.makePerlPath [
|
|
|
|
CryptOpenSSLRSA
|
|
|
|
CryptOpenSSLBignum
|
|
|
|
]}"
|
2015-08-01 09:03:40 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://web.monkeysphere.info/;
|
2015-08-01 10:28:41 +00:00
|
|
|
description = "Leverage the OpenPGP web of trust for SSH and TLS authentication";
|
|
|
|
longDescription = ''
|
2015-08-01 09:03:40 +00:00
|
|
|
The Monkeysphere project's goal is to extend OpenPGP's web of
|
|
|
|
trust to new areas of the Internet to help us securely identify
|
|
|
|
servers we connect to, as well as each other while we work online.
|
|
|
|
The suite of Monkeysphere utilities provides a framework to
|
|
|
|
transparently leverage the web of trust for authentication of
|
|
|
|
TLS/SSL communications through the normal use of tools you are
|
|
|
|
familiar with, such as your web browser0 or secure shell.
|
|
|
|
'';
|
2018-09-06 13:09:48 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2015-08-01 09:03:40 +00:00
|
|
|
platforms = platforms.all;
|
2018-09-06 13:09:48 +00:00
|
|
|
maintainers = with maintainers; [ primeos ];
|
2015-08-01 09:03:40 +00:00
|
|
|
};
|
|
|
|
}
|