@@ -0,0 +1,37 @@
1+{stdenv, fetchurl, gnupg, perl, automake111x, autoconf}:
2+
3+stdenv.mkDerivation rec {
4+ version = "2.0";
5+ basename = "signing-party";
6+ name = "${basename}-${version}";
7+ src = fetchurl {
8+ url = "mirror://debian/pool/main/s/${basename}/${basename}_${version}.orig.tar.gz";
9+ sha256 = "0vn15sb2yyzd57xdblw48p5hi6fnpvgy83mqyz5ygph65y5y88yc";
10+ };
11+
12+ sourceRoot = ".";
13+
14+ preBuild = ''
15+ substituteInPlace sig2dot/Makefile --replace "\$(DESTDIR)/usr" "$out"
16+ substituteInPlace gpgsigs/Makefile --replace "\$(DESTDIR)/usr" "$out"
17+ substituteInPlace keylookup/Makefile --replace "\$(DESTDIR)/usr" "$out"
18+ substituteInPlace springgraph/Makefile --replace "\$(DESTDIR)/usr" "$out"
19+ substituteInPlace keyanalyze/Makefile --replace "\$(DESTDIR)/usr" "$out"
20+ '';
21+
22+ # - perl is required for its pod2man (used in caff)
23+ buildInputs = [ automake111x autoconf perl gnupg ];
24+
25+ patches = [ ./gpgwrap_makefile.patch ];
26+
27+ installFlags = [ "DESTDIR=\${out}" ];
28+
29+ doCheck = false; # no check rule
30+
31+ meta = {
32+ description = "PGP Tools is a collection for all kinds of pgp related things, including signing scripts, party preparation scripts etc.";
33+ homepage = http://pgp-tools.alioth.debian.org;
34+ platforms = gnupg.meta.platforms;
35+ licence = stdenv.lib.licences.gpl2;
36+ };
37+}