Gentoo Archives: gentoo-commits

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