summary refs log tree commit diff
path: root/pkgs/tools/security/monkeysphere/default.nix
blob: f0d3a870676c0135cc1c8481ea5d3cad35e4ab73 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{ stdenv, fetchurl, perl, makeWrapper, perlPackages }:

stdenv.mkDerivation rec {
  name = "monkeysphere-${version}";
  version = "0.37";

  src = fetchurl {
    url = "http://archive.monkeysphere.info/debian/pool/monkeysphere/m/monkeysphere/monkeysphere_0.37.orig.tar.gz";
    sha256 = "0nbfd220miflah5l2y20qlmgfpbqi0j8h7qgx1b06h7v2jjbh45m";
  };

  buildInputs = [ makeWrapper perl ];

  patches = [ ./monkeysphere.patch ];

  makeFlags = ''
    PREFIX=/
    DESTDIR=$(out)
  '';

  postInstall = ''
    wrapProgram $out/bin/openpgp2ssh --prefix PERL5LIB : \
      "${with perlPackages; stdenv.lib.makePerlPath [
        CryptOpenSSLRSA
        CryptOpenSSLBignum
      ]}"
  '';

  meta = with stdenv.lib; {
    homepage = http://web.monkeysphere.info/;
    description = "Leverage the OpenPGP web of trust for SSH and TLS authentication";
    longDescription = ''
      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.
    '';
    license = licenses.gpl3;
    platforms = platforms.all;
  };
}