diff options
author | Jason Zaman <perfinion@gentoo.org> | 2016-12-30 17:52:08 +0800 |
---|---|---|
committer | Jason Zaman <perfinion@gentoo.org> | 2016-12-30 17:54:03 +0800 |
commit | b46b07e906bce2e6697c2c42ba2c446c2e7734b2 (patch) | |
tree | 52c7eb39b875d6759e9356c1b2888536ca646e1c /sys-boot/tboot/tboot-1.9.5.ebuild | |
parent | net-misc/dropbox: bump to 17.3.28 (diff) | |
download | gentoo-b46b07e906bce2e6697c2c42ba2c446c2e7734b2.tar.gz gentoo-b46b07e906bce2e6697c2c42ba2c446c2e7734b2.tar.bz2 gentoo-b46b07e906bce2e6697c2c42ba2c446c2e7734b2.zip |
sys-boot/tboot: bump to 1.9.5
Package-Manager: portage-2.3.0
Diffstat (limited to 'sys-boot/tboot/tboot-1.9.5.ebuild')
-rw-r--r-- | sys-boot/tboot/tboot-1.9.5.ebuild | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/sys-boot/tboot/tboot-1.9.5.ebuild b/sys-boot/tboot/tboot-1.9.5.ebuild new file mode 100644 index 000000000000..6e926b88e078 --- /dev/null +++ b/sys-boot/tboot/tboot-1.9.5.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit flag-o-matic mount-boot + +DESCRIPTION="Performs a measured and verified boot using Intel Trusted Execution Technology" +HOMEPAGE="https://sourceforge.net/projects/tboot/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86 -*" +IUSE="custom-cflags selinux" + +# requires patching the kernel src +RESTRICT="test" + +DEPEND="app-crypt/trousers +app-crypt/tpm-tools +dev-libs/openssl:0=[-bindist]" + +RDEPEND="${DEPEND} +sys-boot/grub:2 +selinux? ( sec-policy/selinux-tboot )" + +DOCS=(README COPYING CHANGELOG) +PATCHES=( "${FILESDIR}/${PN}-1.9.5-genkernel-path.patch" ) + +src_prepare() { + sed -i 's/ -Werror//g' Config.mk || die + sed -i 's/^INSTALL_STRIP = -s$//' Config.mk || die # QA Errors + + default +} + +src_compile() { + use custom-cflags && export TBOOT_CFLAGS=${CFLAGS} || unset CCASFLAGS CFLAGS CPPFLAGS LDFLAGS + + if use amd64; then + export MAKEARGS="TARGET_ARCH=x86_64" + else + export MAKEARGS="TARGET_ARCH=i686" + fi + + default +} + +src_install() { + emake DISTDIR="${D}" install + + dodoc "${DOCS[@]}" + dodoc docs/*.txt lcptools/*.{txt,pdf} || die "docs failed" + + cd "${D}" + mkdir -p usr/lib/tboot/ || die + mv boot usr/lib/tboot/ || die +} + +pkg_postinst() { + mount-boot_mount_boot_partition + + cp ${ROOT%/}/usr/lib/tboot/boot/* ${ROOT%/}/boot/ + + mount-boot_pkg_postinst + + ewarn "Please remember to download the SINIT AC Module relevant" + ewarn "for your platform from:" + ewarn "http://software.intel.com/en-us/articles/intel-trusted-execution-technology/" +} |