1 |
commit: 34b34c746c155b45ccec41754cff57c7850bfa19 |
2 |
Author: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 2 16:11:57 2017 +0000 |
4 |
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 2 16:22:33 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=34b34c74 |
7 |
|
8 |
sys-boot/tboot: bump to 1.9.6 |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.1 |
11 |
|
12 |
sys-boot/tboot/Manifest | 1 + |
13 |
sys-boot/tboot/tboot-1.9.6.ebuild | 71 +++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 72 insertions(+) |
15 |
|
16 |
diff --git a/sys-boot/tboot/Manifest b/sys-boot/tboot/Manifest |
17 |
index 5e633ae5929..1248c973803 100644 |
18 |
--- a/sys-boot/tboot/Manifest |
19 |
+++ b/sys-boot/tboot/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST tboot-1.9.5.tar.gz 685460 SHA256 c7032e367ac0129493c9bb1fcd1437f400ff5533c970119ddce281ff4d58a13f SHA512 d806b692d3d57d0aaf4095ef514a2859b2b054ec695cb5589b3a6133eec7f7a9a0e76544e4b557df02add5ed67c3c15fb3ee5f17d6438252b659d6e5c7d17fe9 WHIRLPOOL 04843854b1a646d6126079a3b46bacf0c8191d5b5c322f8bc04ea39c0d5470bba2f7f2499761d42aa258552c1dfbeb626275e7473628b21719a6fe59bc05029c |
22 |
+DIST tboot-1.9.6.tar.gz 693564 SHA256 1b55eed6ca8196b2a003936594248a242888ac34ff970eda651e7660c4772a39 SHA512 f53f5535f7ab031439514b43811cd2ec93efcb7614cb7bc7d1f3051d808d942e8a4942fd1d0ab6fe0c245740c2a10ba7adbcd44f2c42b2a577d9a20c0c5df90e WHIRLPOOL 889af09491c599d73976a0a4b456e9d01f44c47bffd047cb0f84ca786953b02c952a2d8c1fe873ac0390f6faffe7f41c0871e07f8c9466c9bc719f683dfc4a36 |
23 |
|
24 |
diff --git a/sys-boot/tboot/tboot-1.9.6.ebuild b/sys-boot/tboot/tboot-1.9.6.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..9e6d141c268 |
27 |
--- /dev/null |
28 |
+++ b/sys-boot/tboot/tboot-1.9.6.ebuild |
29 |
@@ -0,0 +1,71 @@ |
30 |
+# Copyright 1999-2017 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=6 |
34 |
+ |
35 |
+inherit flag-o-matic mount-boot |
36 |
+ |
37 |
+DESCRIPTION="Performs a measured and verified boot using Intel Trusted Execution Technology" |
38 |
+HOMEPAGE="https://sourceforge.net/projects/tboot/" |
39 |
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
40 |
+ |
41 |
+LICENSE="BSD" |
42 |
+SLOT="0" |
43 |
+KEYWORDS="~amd64 ~x86 -*" |
44 |
+IUSE="custom-cflags selinux" |
45 |
+ |
46 |
+# requires patching the kernel src |
47 |
+RESTRICT="test" |
48 |
+ |
49 |
+DEPEND="app-crypt/trousers |
50 |
+app-crypt/tpm-tools |
51 |
+dev-libs/openssl:0=[-bindist]" |
52 |
+ |
53 |
+RDEPEND="${DEPEND} |
54 |
+sys-boot/grub:2 |
55 |
+selinux? ( sec-policy/selinux-tboot )" |
56 |
+ |
57 |
+DOCS=(README COPYING CHANGELOG) |
58 |
+PATCHES=( "${FILESDIR}/${PN}-1.9.5-genkernel-path.patch" ) |
59 |
+ |
60 |
+src_prepare() { |
61 |
+ sed -i 's/ -Werror//g' Config.mk || die |
62 |
+ sed -i 's/^INSTALL_STRIP = -s$//' Config.mk || die # QA Errors |
63 |
+ |
64 |
+ default |
65 |
+} |
66 |
+ |
67 |
+src_compile() { |
68 |
+ use custom-cflags && export TBOOT_CFLAGS=${CFLAGS} || unset CCASFLAGS CFLAGS CPPFLAGS LDFLAGS |
69 |
+ |
70 |
+ if use amd64; then |
71 |
+ export MAKEARGS="TARGET_ARCH=x86_64" |
72 |
+ else |
73 |
+ export MAKEARGS="TARGET_ARCH=i686" |
74 |
+ fi |
75 |
+ |
76 |
+ default |
77 |
+} |
78 |
+ |
79 |
+src_install() { |
80 |
+ emake DISTDIR="${D}" install |
81 |
+ |
82 |
+ dodoc "${DOCS[@]}" |
83 |
+ dodoc docs/*.txt lcptools/*.{txt,pdf} || die "docs failed" |
84 |
+ |
85 |
+ cd "${D}" |
86 |
+ mkdir -p usr/lib/tboot/ || die |
87 |
+ mv boot usr/lib/tboot/ || die |
88 |
+} |
89 |
+ |
90 |
+pkg_postinst() { |
91 |
+ mount-boot_mount_boot_partition |
92 |
+ |
93 |
+ cp ${ROOT%/}/usr/lib/tboot/boot/* ${ROOT%/}/boot/ |
94 |
+ |
95 |
+ mount-boot_pkg_postinst |
96 |
+ |
97 |
+ ewarn "Please remember to download the SINIT AC Module relevant" |
98 |
+ ewarn "for your platform from:" |
99 |
+ ewarn "http://software.intel.com/en-us/articles/intel-trusted-execution-technology/" |
100 |
+} |