gnu: Update signing-party.
Also add more inputs to make the caff program run. I haven't successfully used it yet though. * gnu/packages/gnupg.scm (signing-party)[version]: Update to 2.6. [source]: Update origin sha256. [native-inputs]: Add autoconf and automake. [inputs]: Add perl-text-template, perl-mime-tools, perl-gnupg-interface and perl-net-idn-encode as these are required by caff. Also add libmd as this is required by TODO. [arguments]: Add the change-directory and wrap-programs phase, and fix a regex and Makefile path in the configure phase.
This commit is contained in:
parent
329779159b
commit
c9ce8e1766
1 changed files with 29 additions and 11 deletions
|
|
@ -32,8 +32,10 @@
|
||||||
#:use-module ((guix licenses) #:prefix license:)
|
#:use-module ((guix licenses) #:prefix license:)
|
||||||
#:use-module (gnu packages)
|
#:use-module (gnu packages)
|
||||||
#:use-module (gnu packages adns)
|
#:use-module (gnu packages adns)
|
||||||
|
#:use-module (gnu packages autotools)
|
||||||
#:use-module (gnu packages base)
|
#:use-module (gnu packages base)
|
||||||
#:use-module (gnu packages curl)
|
#:use-module (gnu packages curl)
|
||||||
|
#:use-module (gnu packages crypto)
|
||||||
#:use-module (gnu packages openldap)
|
#:use-module (gnu packages openldap)
|
||||||
#:use-module (gnu packages perl)
|
#:use-module (gnu packages perl)
|
||||||
#:use-module (gnu packages pth)
|
#:use-module (gnu packages pth)
|
||||||
|
|
@ -618,38 +620,48 @@ PGP keysigning parties.")
|
||||||
(define-public signing-party
|
(define-public signing-party
|
||||||
(package
|
(package
|
||||||
(name "signing-party")
|
(name "signing-party")
|
||||||
(version "1.1.4")
|
(version "2.6")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append "mirror://debian/pool/main/s/signing-party/"
|
(uri (string-append "mirror://debian/pool/main/s/signing-party/"
|
||||||
"signing-party_" version ".orig.tar.gz"))
|
"signing-party_" version ".orig.tar.gz"))
|
||||||
(sha256 (base32
|
(sha256 (base32
|
||||||
"188gp0prbh8qs29lq3pbf0qibfd6jq4fk7i0pfrybl8aahvm84rx"))))
|
"1n5bpcfpl9vg1xp6r1jhbyahrgdyxp05b5pria1rh4m0qnv8sifr"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(inputs `(("perl" ,perl)))
|
(native-inputs
|
||||||
|
`(("autoconf" ,(autoconf-wrapper))
|
||||||
|
("automake" ,automake)))
|
||||||
|
(inputs `(("perl" ,perl)
|
||||||
|
("perl-text-template" ,perl-text-template)
|
||||||
|
("perl-mime-tools" ,perl-mime-tools)
|
||||||
|
("perl-gnupg-interface" ,perl-gnupg-interface)
|
||||||
|
("perl-net-idn-encode" ,perl-net-idn-encode)
|
||||||
|
("libmd" ,libmd)))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:tests? #f
|
`(#:tests? #f
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'remove-spurious-links
|
(add-before 'configure 'change-directory
|
||||||
(lambda _ (delete-file "keyanalyze/pgpring/depcomp")))
|
(lambda _
|
||||||
|
;; The build system in the unpack phase changes to a less useful
|
||||||
|
;; subdirectory, so move up one level
|
||||||
|
(chdir (dirname (getcwd)))))
|
||||||
(replace 'configure
|
(replace 'configure
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(let ((out (assoc-ref outputs "out")))
|
(let ((out (assoc-ref outputs "out")))
|
||||||
(substitute* "keyanalyze/Makefile"
|
(substitute* "keyanalyze/Makefile"
|
||||||
(("LDLIBS") (string-append "CC=" (which "gcc") "\nLDLIBS")))
|
(("LDLIBS") (string-append "CC=" (which "gcc") "\nLDLIBS")))
|
||||||
(substitute* "keyanalyze/Makefile"
|
(substitute* "keyanalyze/Makefile"
|
||||||
(("./configure") (string-append "./configure --prefix=" out)))
|
(("\\./configure") (string-append "./configure --prefix=" out)))
|
||||||
(substitute* "keyanalyze/pgpring/configure"
|
(substitute* "gpgwrap/src/Makefile"
|
||||||
(("/bin/sh") (which "sh")))
|
|
||||||
(substitute* "gpgwrap/Makefile"
|
|
||||||
(("\\} clean")
|
(("\\} clean")
|
||||||
(string-append "} clean\ninstall:\n\tinstall -D bin/gpgwrap "
|
(string-append "} clean\ninstall:\n\tinstall -D bin/gpgwrap "
|
||||||
out "/bin/gpgwrap\n")))
|
out "/bin/gpgwrap\n")))
|
||||||
(substitute* '("gpgsigs/Makefile" "keyanalyze/Makefile"
|
(substitute* '("gpgsigs/Makefile" "keyanalyze/Makefile"
|
||||||
"keylookup/Makefile" "sig2dot/Makefile"
|
"keylookup/Makefile" "sig2dot/Makefile"
|
||||||
"springgraph/Makefile")
|
"springgraph/Makefile")
|
||||||
(("/usr") out)))))
|
(("/usr") out))
|
||||||
|
(setenv "CONFIG_SHELL" (which "sh")))))
|
||||||
(replace 'install
|
(replace 'install
|
||||||
(lambda* (#:key outputs #:allow-other-keys #:rest args)
|
(lambda* (#:key outputs #:allow-other-keys #:rest args)
|
||||||
(let ((out (assoc-ref outputs "out"))
|
(let ((out (assoc-ref outputs "out"))
|
||||||
|
|
@ -674,7 +686,13 @@ PGP keysigning parties.")
|
||||||
'("caff.1" "pgp-clean.1" "pgp-fixkey.1" "gpgdir.1"
|
'("caff.1" "pgp-clean.1" "pgp-fixkey.1" "gpgdir.1"
|
||||||
"gpg-key2ps.1" "gpglist.1" "gpg-mailkeys.1"
|
"gpg-key2ps.1" "gpglist.1" "gpg-mailkeys.1"
|
||||||
"gpgparticipants.1" "gpgsigs.1" "gpgwrap.1"
|
"gpgparticipants.1" "gpgsigs.1" "gpgwrap.1"
|
||||||
"process_keys.1" "pgpring.1" "keyanalyze.1"))))))))
|
"process_keys.1" "pgpring.1" "keyanalyze.1")))))
|
||||||
|
(add-after 'install 'wrap-programs
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
(let* ((out (assoc-ref outputs "out")))
|
||||||
|
(wrap-program
|
||||||
|
(string-append out "/bin/caff")
|
||||||
|
`("PERL5LIB" ":" prefix (,(getenv "PERL5LIB"))))))))))
|
||||||
(synopsis "Collection of scripts for simplifying gnupg key signing")
|
(synopsis "Collection of scripts for simplifying gnupg key signing")
|
||||||
(description
|
(description
|
||||||
"Signing-party is a collection for all kinds of PGP/GnuPG related things,
|
"Signing-party is a collection for all kinds of PGP/GnuPG related things,
|
||||||
|
|
|
||||||
Reference in a new issue