mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 13:58:15 -05:00
gnu: packages: Add pesign.
* gnu/packages/efi.scm (pesign): New variable. Change-Id: I00fcc679d9514c85d508183b9ec7e121e0a814db
This commit is contained in:
parent
e1be617efe
commit
da153431f1
1 changed files with 52 additions and 0 deletions
|
@ -24,8 +24,10 @@ (define-module (gnu packages efi)
|
|||
#:use-module (gnu packages bash)
|
||||
#:use-module (gnu packages linux)
|
||||
#:use-module (gnu packages man)
|
||||
#:use-module (gnu packages nss)
|
||||
#:use-module (gnu packages perl)
|
||||
#:use-module (gnu packages pkg-config)
|
||||
#:use-module (gnu packages popt)
|
||||
#:use-module (gnu packages tls)
|
||||
#:use-module ((guix licenses) #:prefix license:)
|
||||
#:use-module (guix build-system gnu)
|
||||
|
@ -153,6 +155,56 @@ (define-public sbsigntools
|
|||
(home-page "https://git.kernel.org/pub/scm/linux/kernel/git/jejb/sbsigntools.git/")
|
||||
(license license:gpl3+)))
|
||||
|
||||
(define-public pesign
|
||||
(package
|
||||
(name "pesign")
|
||||
(version "116")
|
||||
(source
|
||||
(origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url (string-append "https://github.com/rhboot/" name))
|
||||
(commit version)))
|
||||
(modules '((guix build utils)))
|
||||
(snippet
|
||||
#~(substitute* "Make.defaults"
|
||||
(("RANLIB\t\\?= \\$\\(CROSS_COMPILE\\)") "RANLIB\t?=")
|
||||
(("pkg-config-ccldflags") "pkg-config-ldflags")))
|
||||
(sha256
|
||||
(base32
|
||||
"0fnqfiivj46bha4hsnwiqy8vq8b4i3w2dig0h9h2k4j7yq7r5qvj"))))
|
||||
(build-system gnu-build-system)
|
||||
(arguments
|
||||
(list #:tests? #f ; The Makefile has no check target.
|
||||
#:modules '((guix build gnu-build-system)
|
||||
(guix build utils)
|
||||
(ice-9 match))
|
||||
#:phases #~(modify-phases %standard-phases (delete 'configure))
|
||||
#:make-flags
|
||||
(let ((system (%current-system))
|
||||
(target (%current-target-system)))
|
||||
(define (arch s)
|
||||
(if (target-x86-32? s)
|
||||
"ia32"
|
||||
(match (string-split s #\-)
|
||||
((x _ ...) x))))
|
||||
#~(list "prefix=/" "libdir=/lib/"
|
||||
(string-append "DESTDIR=" #$output)
|
||||
(string-append "HOSTARCH=" #$(arch system))
|
||||
(string-append "ARCH=" #$(arch (or target system)))
|
||||
(if #$target
|
||||
(string-append "CROSS_COMPILE=" #$target "-")
|
||||
"")))))
|
||||
(inputs (list efivar nspr nss popt `(,util-linux "lib")))
|
||||
(native-inputs (list mandoc pkg-config))
|
||||
(synopsis "PE-COFF binary signing tools")
|
||||
(description
|
||||
"This package supports EFI keygen and subsequent signing of
|
||||
PE-COFF binaries. It contains the tools authvar, efikeygen, pesigcheck,
|
||||
pesign, pesign-client, and pesum.")
|
||||
(home-page "https://github.com/rhboot/pesign")
|
||||
(license license:gpl2+)))
|
||||
|
||||
(define-public efitools
|
||||
(package
|
||||
(name "efitools")
|
||||
|
|
Loading…
Reference in a new issue