summary refs log tree commit diff
path: root/pkgs/tools/security/signing-party
diff options
context:
space:
mode:
authorDamien Cassou <damien@cassou.me>2015-06-03 17:08:45 +0200
committerDamien Cassou <damien@cassou.me>2015-06-03 17:08:45 +0200
commita4ac0caa5257ffe1a281962a520c53d2d47529af (patch)
tree3dc780f388cafeb08d1dbcd3faa0f3737c051fb7 /pkgs/tools/security/signing-party
parentf93a8ee1105f4cc3770ce339a8c1a4acea3b2fb6 (diff)
downloadnixpkgs-a4ac0caa5257ffe1a281962a520c53d2d47529af.tar
nixpkgs-a4ac0caa5257ffe1a281962a520c53d2d47529af.tar.gz
nixpkgs-a4ac0caa5257ffe1a281962a520c53d2d47529af.tar.bz2
nixpkgs-a4ac0caa5257ffe1a281962a520c53d2d47529af.tar.lz
nixpkgs-a4ac0caa5257ffe1a281962a520c53d2d47529af.tar.xz
nixpkgs-a4ac0caa5257ffe1a281962a520c53d2d47529af.tar.zst
nixpkgs-a4ac0caa5257ffe1a281962a520c53d2d47529af.zip
Add signing-party (aka., gpg-tools)
Diffstat (limited to 'pkgs/tools/security/signing-party')
-rw-r--r--pkgs/tools/security/signing-party/default.nix37
-rw-r--r--pkgs/tools/security/signing-party/gpgwrap_makefile.patch16
2 files changed, 53 insertions, 0 deletions
diff --git a/pkgs/tools/security/signing-party/default.nix b/pkgs/tools/security/signing-party/default.nix
new file mode 100644
index 00000000000..ec4197933ec
--- /dev/null
+++ b/pkgs/tools/security/signing-party/default.nix
@@ -0,0 +1,37 @@
+{stdenv, fetchurl, gnupg, perl, automake111x, autoconf}:
+
+stdenv.mkDerivation rec {
+  version = "2.0";
+  basename = "signing-party";
+  name = "${basename}-${version}";
+  src = fetchurl {
+    url = "mirror://debian/pool/main/s/${basename}/${basename}_${version}.orig.tar.gz";
+    sha256 = "0vn15sb2yyzd57xdblw48p5hi6fnpvgy83mqyz5ygph65y5y88yc";
+  };
+
+  sourceRoot = ".";
+
+  preBuild = ''
+    substituteInPlace sig2dot/Makefile --replace "\$(DESTDIR)/usr" "$out"
+    substituteInPlace gpgsigs/Makefile --replace "\$(DESTDIR)/usr" "$out"
+    substituteInPlace keylookup/Makefile --replace "\$(DESTDIR)/usr" "$out"
+    substituteInPlace springgraph/Makefile --replace "\$(DESTDIR)/usr" "$out"
+    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 ];
+
+  installFlags = [ "DESTDIR=\${out}" ];
+
+  doCheck = false; # no check rule
+
+  meta = {
+    description = "PGP Tools is 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;
+    licence = stdenv.lib.licences.gpl2;
+  };
+}
diff --git a/pkgs/tools/security/signing-party/gpgwrap_makefile.patch b/pkgs/tools/security/signing-party/gpgwrap_makefile.patch
new file mode 100644
index 00000000000..4beaf5b8088
--- /dev/null
+++ b/pkgs/tools/security/signing-party/gpgwrap_makefile.patch
@@ -0,0 +1,16 @@
+--- a/gpgwrap/Makefile	2015-06-03 16:24:48.723129144 +0200
++++ b/gpgwrap/Makefile	2015-06-03 16:24:11.639744346 +0200
+@@ -1,9 +1,12 @@
+ MAKE=make
+ 
+-.PHONY: all clean
++.PHONY: all clean install
+ 
+ all:
+ 	cd src && ${MAKE} all DIET="${DIET}"
+ 
++install:
++
++
+ clean:
+ 	cd src && ${MAKE} clean