# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit linux-mod MY_P=${P/tpm/TPM} S=${WORKDIR} DESCRIPTION="Driver and utilities for TPM chips" HOMEPAGE="http://www.research.ibm.com/gsal/tcpa/" SRC_URI="http://www.research.ibm.com/gsal/tcpa/${MY_P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" RDEPEND="dev-libs/openssl" BUILD_PARAMS="KDIR=${KV_DIR}" BUILD_TARGETS="default" MODULE_NAMES="tpm(crypto:${S}/${P})" src_unpack() { unpack ${A} convert_to_m ${S}/${P}/Makefile } src_compile() { linux-mod_src_compile cd ${S}/lib${P} econf || die "econf failed" emake || die "emake failed" } src_install() { linux-mod_src_install cd ${S}/lib${P} emake DESTDIR=${D} install || die "emake install failed" dodoc AUTHORS ChangeLog NEWS README }