Use sbsigntool instead of pesign.

Imported from Ubuntu shim-0.4 package sources. Original patch
by Steve Langasek <vorlon@debian.org>.

Signed-off-by: Ville Korhonen <ville@xd.fi>
Include missing prototypes and disable use of BIO_new_file.

Original patch by Steve Langasek <vorlon@debian.org>.

Signed-off-by: Ville Korhonen <ville@xd.fi>
Chainload grubx64.efi, not grub.efi

Original patch by Steve Langasek <vorlon@debian.org>.

Signed-off-by: Ville Korhonen <ville@xd.fi>
Fixed chainloading patch (grubx64.efi instead of grub.efi).

Original second-stage-path patch modified shim.c, but path definitions
have moved to Makefile.

Signed-off-by: Ville Korhonen <ville@xd.fi>
Refreshed patch sbsigntool-not-pesign.

Signed-off-by: Ville Korhonen <ville@xd.fi>
Use /usr/lib as path for gnu-efi files.

Upstream shim expects to find gnu-efi files from /usr/lib64/gnu-efi.
Debian ships these files in /usr/lib. This patch fixes paths in Makefile.

Signed-off-by: Ville Korhonen <ville@xd.fi>