diff options
Diffstat (limited to 'sys-boot/tboot/tboot-1.8.3.ebuild')
-rw-r--r-- | sys-boot/tboot/tboot-1.8.3.ebuild | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/sys-boot/tboot/tboot-1.8.3.ebuild b/sys-boot/tboot/tboot-1.8.3.ebuild deleted file mode 100644 index 7a23f650119d..000000000000 --- a/sys-boot/tboot/tboot-1.8.3.ebuild +++ /dev/null @@ -1,73 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 - -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" - -RESTRICT="test" # test is restricted because it requires patching the kernel src - -DEPEND="app-crypt/trousers -app-crypt/tpm-tools" - -RDEPEND="${DEPEND} -sys-boot/grub:2 -selinux? ( sec-policy/selinux-tboot )" - -DOCS=(README COPYING CHANGELOG) - -src_prepare() { - epatch "${FILESDIR}/tboot-1.8.2-genkernel_arch.patch" - epatch "${FILESDIR}/tboot-1.8.2-stack-check-no.patch" # breaks with ssp - epatch "${FILESDIR}/tboot-1.8.2-disable-pcid.patch" # PaX enables pcid - - sed -i 's/ -Werror//g' Config.mk || die - sed -i 's/^INSTALL_STRIP = -s$//' Config.mk || die # QA Errors - - epatch_user -} - -src_compile() { - use custom-cflags && export TBOOT_CFLAGS=${CFLAGS} || unset CCASFLAGS CFLAGS CPPFLAGS LDFLAGS - - if use amd64; then - MAKEARGS="TARGET_ARCH=x86_64" - else - MAKEARGS="TARGET_ARCH=i686" - fi - - emake debug=y ${MAKEARGS} build -} - -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/" -} |