svn commit: r377140 - in head/sysutils: . sbsigntool sbsigntool/files
Edward Tomasz Napierala
trasz at FreeBSD.org
Thu Jan 15 19:54:19 UTC 2015
Author: trasz
Date: Thu Jan 15 19:54:16 2015
New Revision: 377140
URL: https://svnweb.freebsd.org/changeset/ports/377140
QAT: https://qat.redports.org/buildarchive/r377140/
Log:
New port: sysutils/sbsigntool
Set of utilities for managing UEFI Secure Boot signatures.
Sponsored by: The FreeBSD Foundation
Added:
head/sysutils/sbsigntool/
head/sysutils/sbsigntool/Makefile (contents, props changed)
head/sysutils/sbsigntool/distinfo (contents, props changed)
head/sysutils/sbsigntool/files/
head/sysutils/sbsigntool/files/patch-configure (contents, props changed)
head/sysutils/sbsigntool/files/patch-src-coff-external.h (contents, props changed)
head/sysutils/sbsigntool/files/patch-src-image.h (contents, props changed)
head/sysutils/sbsigntool/files/patch-src-sbkeysync.c (contents, props changed)
head/sysutils/sbsigntool/pkg-descr (contents, props changed)
head/sysutils/sbsigntool/pkg-plist (contents, props changed)
Modified:
head/sysutils/Makefile
Modified: head/sysutils/Makefile
==============================================================================
--- head/sysutils/Makefile Thu Jan 15 19:10:54 2015 (r377139)
+++ head/sysutils/Makefile Thu Jan 15 19:54:16 2015 (r377140)
@@ -854,6 +854,7 @@
SUBDIR += sas2ircu
SUBDIR += savelogs
SUBDIR += sb16config
+ SUBDIR += sbsigntool
SUBDIR += scalpel
SUBDIR += scan_ffs
SUBDIR += scanbuttond
Added: head/sysutils/sbsigntool/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/sbsigntool/Makefile Thu Jan 15 19:54:16 2015 (r377140)
@@ -0,0 +1,34 @@
+# Created by: Edward Tomasz Napierala <trasz at brick>
+# $FreeBSD$
+
+PORTNAME= sbsigntool
+PORTVERSION= 0.6
+CATEGORIES= sysutils
+MASTER_SITES= https://launchpad.net/ubuntu/+archive/primary/+files/
+DISTNAME= ${PORTNAME}_${PORTVERSION}.orig
+
+MAINTAINER= trasz at FreeBSD.org
+COMMENT= Signing utility for UEFI secure boot
+
+LICENSE= GPLv3
+
+BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/devel/gnu-efi \
+ help2man:${PORTSDIR}/misc/help2man
+LIB_DEPENDS= libuuid.so:${PORTSDIR}/misc/e2fsprogs-libuuid
+
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+CFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= libcrypto_CFLAGS=-lcrypto libcrypto_LIBS=-lcrypto LOCALBASE=${LOCALBASE} ac_cv_header_bfd_h=yes
+USES= gmake pkgconfig
+
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000000
+BROKEN= This port works only on FreeBSD 10 and newer
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|<endian.h>|<sys/endian.h>|' ${WRKSRC}/configure ${WRKSRC}/lib/ccan/ccan/hash/hash.c
+
+.include <bsd.port.post.mk>
Added: head/sysutils/sbsigntool/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/sbsigntool/distinfo Thu Jan 15 19:54:16 2015 (r377140)
@@ -0,0 +1,2 @@
+SHA256 (sbsigntool_0.6.orig.tar.gz) = 84fb0c8f6fb1e79aa418a4f70a3139b38d5630043b28291c875f383e9b4294b8
+SIZE (sbsigntool_0.6.orig.tar.gz) = 212375
Added: head/sysutils/sbsigntool/files/patch-configure
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/sbsigntool/files/patch-configure Thu Jan 15 19:54:16 2015 (r377140)
@@ -0,0 +1,15 @@
+--- configure.orig 2012-10-12 02:16:35.000000000 +0200
++++ configure 2014-11-30 19:14:24.000000000 +0100
+@@ -5496,7 +5496,11 @@ $as_echo "yes" >&6; }
+ fi
+
+ EFI_ARCH=$(uname -m)
+-EFI_CPPFLAGS="-I/usr/include/efi -I/usr/include/efi/$EFI_ARCH \
++if [ "$EFI_ARCH" = "amd64" ]; then
++ EFI_ARCH="x86_64"
++fi
++
++EFI_CPPFLAGS="-I$LOCALBASE/include/efi -I$LOCALBASE/include/efi/$EFI_ARCH \
+ -DEFI_FUNCTION_WRAPPER"
+ CPPFLAGS_save="$CPPFLAGS"
+ CPPFLAGS="$CPPFLAGS $EFI_CPPFLAGS"
Added: head/sysutils/sbsigntool/files/patch-src-coff-external.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/sbsigntool/files/patch-src-coff-external.h Thu Jan 15 19:54:16 2015 (r377140)
@@ -0,0 +1,29 @@
+--- src/coff/external.h.orig 2014-11-30 17:11:35.000000000 +0100
++++ src/coff/external.h 2014-11-30 17:12:19.000000000 +0100
+@@ -51,7 +51,7 @@ typedef struct external_aouthdr
+ char entry[4]; /* entry pt. */
+ char text_start[4]; /* base of text used for this file */
+ char data_start[4]; /* base of data used for this file */
+- } ATTRIBUTE_PACKED
++ } __attribute__((packed))
+ AOUTHDR;
+
+ #define AOUTHDRSZ 28
+@@ -165,7 +165,7 @@ struct external_syment
+ char e_type[2];
+ char e_sclass[1];
+ char e_numaux[1];
+-} ATTRIBUTE_PACKED ;
++} __attribute__((packed));
+
+ #define SYMENT struct external_syment
+ #define SYMESZ 18
+@@ -257,7 +257,7 @@ union external_auxent
+ char x_tvlen[2]; /* length of .tv */
+ char x_tvran[2][2]; /* tv range */
+ } x_tv; /* info about .tv section (in auxent of symbol .tv)) */
+-} ATTRIBUTE_PACKED ;
++} __attribute__((packed));
+
+ #define AUXENT union external_auxent
+ #define AUXESZ 18
Added: head/sysutils/sbsigntool/files/patch-src-image.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/sbsigntool/files/patch-src-image.h Thu Jan 15 19:54:16 2015 (r377140)
@@ -0,0 +1,12 @@
+--- src/image.h.orig 2015-01-15 19:43:49.000000000 +0100
++++ src/image.h 2015-01-15 19:49:04.000000000 +0100
+@@ -34,6 +34,9 @@
+
+ #include <stdint.h>
+
++#define ATTRIBUTE_UNUSED __unused
++#define ENUM_BITFIELD(X) enum X
++
+ #include <bfd.h>
+ #define DO_NOT_DEFINE_LINENO
+
Added: head/sysutils/sbsigntool/files/patch-src-sbkeysync.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/sbsigntool/files/patch-src-sbkeysync.c Thu Jan 15 19:54:16 2015 (r377140)
@@ -0,0 +1,12 @@
+--- src/sbkeysync.c.orig 2014-11-30 19:18:11.000000000 +0100
++++ src/sbkeysync.c 2014-11-30 19:18:32.000000000 +0100
+@@ -38,7 +38,8 @@
+ #include <fcntl.h>
+ #include <unistd.h>
+ #include <sys/stat.h>
+-#include <sys/statfs.h>
++#include <sys/param.h>
++#include <sys/mount.h>
+ #include <sys/types.h>
+
+ #include <getopt.h>
Added: head/sysutils/sbsigntool/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/sbsigntool/pkg-descr Thu Jan 15 19:54:16 2015 (r377140)
@@ -0,0 +1 @@
+Set of utilities for managing UEFI Secure Boot signatures.
Added: head/sysutils/sbsigntool/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/sysutils/sbsigntool/pkg-plist Thu Jan 15 19:54:16 2015 (r377140)
@@ -0,0 +1,11 @@
+bin/sbattach
+bin/sbkeysync
+bin/sbsiglist
+bin/sbsign
+bin/sbvarsign
+bin/sbverify
+man/man1/sbattach.1.gz
+man/man1/sbsiglist.1.gz
+man/man1/sbsign.1.gz
+man/man1/sbvarsign.1.gz
+man/man1/sbverify.1.gz
More information about the svn-ports-head
mailing list