diff options
author | Franz Pletz <fpletz@fnordicwalking.de> | 2017-01-21 20:43:26 +0100 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2017-01-21 20:46:04 +0100 |
commit | 3c49d9788cb489c76eeeea00511d55a76e5bff92 (patch) | |
tree | d7b88e6c23152cb8d98bb5021f531ca41f0219a9 /pkgs/tools | |
parent | c796bfc0ba9fadf39e30d8e032f7a64c1549d177 (diff) | |
download | nixlib-3c49d9788cb489c76eeeea00511d55a76e5bff92.tar nixlib-3c49d9788cb489c76eeeea00511d55a76e5bff92.tar.gz nixlib-3c49d9788cb489c76eeeea00511d55a76e5bff92.tar.bz2 nixlib-3c49d9788cb489c76eeeea00511d55a76e5bff92.tar.lz nixlib-3c49d9788cb489c76eeeea00511d55a76e5bff92.tar.xz nixlib-3c49d9788cb489c76eeeea00511d55a76e5bff92.tar.zst nixlib-3c49d9788cb489c76eeeea00511d55a76e5bff92.zip |
signing-party: 2.2 -> 2.5, install all tools
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/security/signing-party/default.nix | 52 |
1 files changed, 44 insertions, 8 deletions
diff --git a/pkgs/tools/security/signing-party/default.nix b/pkgs/tools/security/signing-party/default.nix index e2e3955628de..ea6b7411c4e7 100644 --- a/pkgs/tools/security/signing-party/default.nix +++ b/pkgs/tools/security/signing-party/default.nix @@ -1,16 +1,25 @@ -{stdenv, fetchurl, gnupg, perl, automake111x, autoconf}: +{ stdenv, fetchurl, makeWrapper, autoconf, automake +, gnupg, perl, python, libmd, qprint, coreutils, gnused, glibc, gnupg1compat +, perlPackages }: stdenv.mkDerivation rec { - version = "2.2"; + version = "2.5"; basename = "signing-party"; name = "${basename}-${version}"; + src = fetchurl { url = "mirror://debian/pool/main/s/${basename}/${basename}_${version}.orig.tar.gz"; - sha256 = "13qncdyadw1cnslc2xss9s2rpkalm7rz572b23p7mqcdqp30cpdd"; + sha256 = "1y2bxk01qiwaqaily0s6zi10ssv7l35vksib6fxzyl76pp693nv2"; }; sourceRoot = "."; + patches = [ ./gpgwrap_makefile.patch ]; + + postPatch = '' + substituteInPlace gpg-mailkeys/gpg-mailkeys --replace "/usr/sbin/sendmail" "sendmail" + ''; + preBuild = '' substituteInPlace sig2dot/Makefile --replace "\$(DESTDIR)/usr" "$out" substituteInPlace gpgsigs/Makefile --replace "\$(DESTDIR)/usr" "$out" @@ -19,19 +28,46 @@ stdenv.mkDerivation rec { substituteInPlace keyanalyze/Makefile --replace "\$(DESTDIR)/usr" "$out" ''; - # - perl is required for its pod2man (used in caff) - buildInputs = [ automake111x autoconf perl gnupg ]; - - patches = [ ./gpgwrap_makefile.patch ]; + nativeBuildInputs = [ autoconf automake makeWrapper ]; + buildInputs = [ gnupg perl python libmd ] ++ + (with perlPackages; [ GnuPGInterface TextTemplate MIMEtools NetIDNEncode MailTools ]); installFlags = [ "DESTDIR=\${out}" ]; - doCheck = false; # no check rule + postInstall = '' + install -m 755 \ + caff/caff caff/pgp-clean caff/pgp-fixkey \ + gpglist/gpglist \ + gpgparticipants/gpgparticipants \ + gpgparticipants/gpgparticipants-prefill \ + gpgsigs/gpgsigs \ + gpg-key2ps/gpg-key2ps \ + gpg-mailkeys/gpg-mailkeys \ + keyart/keyart \ + $out/bin + + install -m 644 \ + caff/caff.1 caff/pgp-clean.1 caff/pgp-fixkey.1 \ + gpglist/gpglist.1 \ + gpgparticipants/gpgparticipants-prefill.1 \ + gpgparticipants/gpgparticipants.1 \ + gpgsigs/gpgsigs.1 \ + gpg-key2ps/gpg-key2ps.1 \ + gpg-mailkeys/gpg-mailkeys.1 \ + $out/share/man/man1 + + wrapProgram $out/bin/caff --prefix PERL5LIB ":" "$PERL5LIB" \ + --prefix PATH ":" "${stdenv.lib.makeBinPath [ gnupg1compat ]}" + wrapProgram $out/bin/gpg-mailkeys --prefix PATH ":" "${stdenv.lib.makeBinPath [ qprint coreutils gnused glibc gnupg1compat ]}" + ''; + + doCheck = false; # no tests meta = { description = "A collection for all kinds of pgp related things, including signing scripts, party preparation scripts etc"; homepage = http://pgp-tools.alioth.debian.org; platforms = gnupg.meta.platforms; license = stdenv.lib.licenses.gpl2; + maintainers = with stdenv.lib.maintainers; [ fpletz ]; }; } |