gnu: signing-party: Update to commit d6f2296.

* gnu/packages/gnupg.scm (signing-party): Update to commit d6f2296.
[home-page]: Change to salsa.debian.org.
[source]: Use git-fetch.
[arguments]: Remove 'change-directory' phase.  In 'configure' phase,
modify 'gpgwrap/Makefile' instead of 'gpgwrap/src/Makefile'.
This commit is contained in:
Ludovic Courtès 2018-06-04 10:35:41 +02:00
parent 32da38d572
commit 831f07a009
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5

View File

@ -625,84 +625,87 @@ PGP keysigning parties.")
(home-page "https://www.phildev.net/pius/index.shtml"))) (home-page "https://www.phildev.net/pius/index.shtml")))
(define-public signing-party (define-public signing-party
(package ;; Upstream moved from alioth.debian.org to salsa.debian.org but the
(name "signing-party") ;; automatic svn import did not preserve tags apparently, so there's no real
(version "2.6") ;; version number.
(source (origin (let ((commit "d6f2296325605ee96ddf9f5b156e5e3f667a6df3")
(method url-fetch) (revision "0"))
(uri (string-append "mirror://debian/pool/main/s/signing-party/" (package
"signing-party_" version ".orig.tar.gz")) (name "signing-party")
(sha256 (base32 (version (git-version "2.6" revision commit))
"1n5bpcfpl9vg1xp6r1jhbyahrgdyxp05b5pria1rh4m0qnv8sifr")))) (home-page "https://salsa.debian.org/stappers/pgp-tools")
(build-system gnu-build-system) (source (origin
(native-inputs (method git-fetch)
`(("autoconf" ,autoconf-wrapper) (uri (git-reference
("automake" ,automake))) (url home-page)
(inputs `(("perl" ,perl) (commit commit)))
("perl-text-template" ,perl-text-template) (sha256
("perl-mime-tools" ,perl-mime-tools) (base32
("perl-gnupg-interface" ,perl-gnupg-interface) "00f7zasbwcbjzd92br2j10pyjxv0aw1qb4540qfz2dxzxgmdscrz"))))
("perl-net-idn-encode" ,perl-net-idn-encode) (build-system gnu-build-system)
("libmd" ,libmd))) (native-inputs
(arguments `(("autoconf" ,autoconf-wrapper)
`(#:tests? #f ("automake" ,automake)))
#:phases (inputs `(("perl" ,perl)
(modify-phases %standard-phases ("perl-text-template" ,perl-text-template)
(add-before 'configure 'change-directory ("perl-mime-tools" ,perl-mime-tools)
(lambda _ ("perl-gnupg-interface" ,perl-gnupg-interface)
;; The build system in the unpack phase changes to a less useful ("perl-net-idn-encode" ,perl-net-idn-encode)
;; subdirectory, so move up one level ("libmd" ,libmd)))
(chdir (dirname (getcwd))))) (arguments
(replace 'configure `(#:tests? #f
(lambda* (#:key outputs #:allow-other-keys) #:phases
(let ((out (assoc-ref outputs "out"))) (modify-phases %standard-phases
(substitute* "keyanalyze/Makefile" (replace 'configure
(("LDLIBS") (string-append "CC=" (which "gcc") "\nLDLIBS"))) (lambda* (#:key outputs #:allow-other-keys)
(substitute* "keyanalyze/Makefile" (let ((out (assoc-ref outputs "out")))
(("\\./configure") (string-append "./configure --prefix=" out))) (substitute* "keyanalyze/Makefile"
(substitute* "gpgwrap/src/Makefile" (("LDLIBS") (string-append "CC=" (which "gcc") "\nLDLIBS")))
(("\\} clean") (substitute* "keyanalyze/Makefile"
(string-append "} clean\ninstall:\n\tinstall -D bin/gpgwrap " (("\\./configure") (string-append "./configure --prefix=" out)))
out "/bin/gpgwrap\n"))) (substitute* "gpgwrap/Makefile"
(substitute* '("gpgsigs/Makefile" "keyanalyze/Makefile" (("\\} clean")
"keylookup/Makefile" "sig2dot/Makefile" (string-append "} clean\ninstall:\n\tinstall -D bin/gpgwrap "
"springgraph/Makefile") out "/bin/gpgwrap\n")))
(("/usr") out)) (substitute* '("gpgsigs/Makefile" "keyanalyze/Makefile"
(setenv "CONFIG_SHELL" (which "sh"))))) "keylookup/Makefile" "sig2dot/Makefile"
(replace 'install "springgraph/Makefile")
(lambda* (#:key outputs #:allow-other-keys #:rest args) (("/usr") out))
(let ((out (assoc-ref outputs "out")) (setenv "CONFIG_SHELL" (which "sh")))))
(install (assoc-ref %standard-phases 'install))) (replace 'install
(apply install args) (lambda* (#:key outputs #:allow-other-keys #:rest args)
(for-each (let ((out (assoc-ref outputs "out"))
(lambda (dir file) (install (assoc-ref %standard-phases 'install)))
(copy-file (string-append dir "/" file) (apply install args)
(string-append out "/bin/" file))) (for-each
'("caff" "caff" "caff" "gpgdir" "gpg-key2ps" (lambda (dir file)
"gpglist" "gpg-mailkeys" "gpgparticipants") (copy-file (string-append dir "/" file)
'("caff" "pgp-clean" "pgp-fixkey" "gpgdir" "gpg-key2ps" (string-append out "/bin/" file)))
"gpglist" "gpg-mailkeys" "gpgparticipants")) '("caff" "caff" "caff" "gpgdir" "gpg-key2ps"
(for-each "gpglist" "gpg-mailkeys" "gpgparticipants")
(lambda (dir file) '("caff" "pgp-clean" "pgp-fixkey" "gpgdir" "gpg-key2ps"
(copy-file (string-append dir "/" file) "gpglist" "gpg-mailkeys" "gpgparticipants"))
(string-append out "/share/man/man1/" file))) (for-each
'("caff" "caff" "caff" "gpgdir" (lambda (dir file)
"gpg-key2ps" "gpglist" "gpg-mailkeys" (copy-file (string-append dir "/" file)
"gpgparticipants" "gpgsigs" "gpgwrap/doc" (string-append out "/share/man/man1/" file)))
"keyanalyze" "keyanalyze/pgpring" "keyanalyze") '("caff" "caff" "caff" "gpgdir"
'("caff.1" "pgp-clean.1" "pgp-fixkey.1" "gpgdir.1" "gpg-key2ps" "gpglist" "gpg-mailkeys"
"gpg-key2ps.1" "gpglist.1" "gpg-mailkeys.1" "gpgparticipants" "gpgsigs" "gpgwrap/doc"
"gpgparticipants.1" "gpgsigs.1" "gpgwrap.1" "keyanalyze" "keyanalyze/pgpring" "keyanalyze")
"process_keys.1" "pgpring.1" "keyanalyze.1"))))) '("caff.1" "pgp-clean.1" "pgp-fixkey.1" "gpgdir.1"
(add-after 'install 'wrap-programs "gpg-key2ps.1" "gpglist.1" "gpg-mailkeys.1"
(lambda* (#:key outputs #:allow-other-keys) "gpgparticipants.1" "gpgsigs.1" "gpgwrap.1"
(let* ((out (assoc-ref outputs "out"))) "process_keys.1" "pgpring.1" "keyanalyze.1")))))
(wrap-program (add-after 'install 'wrap-programs
(string-append out "/bin/caff") (lambda* (#:key outputs #:allow-other-keys)
`("PERL5LIB" ":" prefix (,(getenv "PERL5LIB")))))))))) (let* ((out (assoc-ref outputs "out")))
(synopsis "Collection of scripts for simplifying gnupg key signing") (wrap-program
(description (string-append out "/bin/caff")
"Signing-party is a collection for all kinds of PGP/GnuPG related things, `("PERL5LIB" ":" prefix (,(getenv "PERL5LIB"))))))))))
(synopsis "Collection of scripts for simplifying gnupg key signing")
(description
"Signing-party is a collection for all kinds of PGP/GnuPG related things,
including tools for signing keys, keyring analysis, and party preparation. including tools for signing keys, keyring analysis, and party preparation.
@enumerate @enumerate
@item caff: CA - Fire and Forget signs and mails a key @item caff: CA - Fire and Forget signs and mails a key
@ -720,11 +723,10 @@ including tools for signing keys, keyring analysis, and party preparation.
@item sig2dot: converts a list of GnuPG signatures to a .dot file @item sig2dot: converts a list of GnuPG signatures to a .dot file
@item springgraph: creates a graph from a .dot file @item springgraph: creates a graph from a .dot file
@end enumerate") @end enumerate")
;; gpl2+ for almost all programs, except for keyanalyze: gpl2 ;; gpl2+ for almost all programs, except for keyanalyze: gpl2
;; and caff and gpgsigs: bsd-3, see ;; and caff and gpgsigs: bsd-3, see
;; http://packages.debian.org/changelogs/pool/main/s/signing-party/current/copyright ;; http://packages.debian.org/changelogs/pool/main/s/signing-party/current/copyright
(license license:gpl2) (license license:gpl2))))
(home-page "https://pgp-tools.alioth.debian.org/")))
(define-public pinentry-tty (define-public pinentry-tty
(package (package