diff options
author | Alon Bar-Lev <alonbl@gentoo.org> | 2007-06-23 20:00:20 +0000 |
---|---|---|
committer | Alon Bar-Lev <alonbl@gentoo.org> | 2007-06-23 20:00:20 +0000 |
commit | 35a4f4e34ade24c936b9c48e9f26f6946e2f27b4 (patch) | |
tree | 43be54481bf275004769064d91fcfe487263ac64 /app-crypt | |
parent | q8/q32: Improve descriptions. (diff) | |
download | historical-35a4f4e34ade24c936b9c48e9f26f6946e2f27b4.tar.gz historical-35a4f4e34ade24c936b9c48e9f26f6946e2f27b4.tar.bz2 historical-35a4f4e34ade24c936b9c48e9f26f6946e2f27b4.zip |
Version bump, bug#171561
Package-Manager: portage-2.1.3_rc4
Diffstat (limited to 'app-crypt')
-rw-r--r-- | app-crypt/tpm-emulator/ChangeLog | 8 | ||||
-rw-r--r-- | app-crypt/tpm-emulator/Manifest | 24 | ||||
-rw-r--r-- | app-crypt/tpm-emulator/files/digest-tpm-emulator-0.5 | 3 | ||||
-rw-r--r-- | app-crypt/tpm-emulator/files/tpm-emulator.initd | 54 | ||||
-rw-r--r-- | app-crypt/tpm-emulator/files/tpm-emulator.udev | 1 | ||||
-rw-r--r-- | app-crypt/tpm-emulator/tpm-emulator-0.5.ebuild | 59 |
6 files changed, 144 insertions, 5 deletions
diff --git a/app-crypt/tpm-emulator/ChangeLog b/app-crypt/tpm-emulator/ChangeLog index 44c05b39ae95..12d75a038a26 100644 --- a/app-crypt/tpm-emulator/ChangeLog +++ b/app-crypt/tpm-emulator/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-crypt/tpm-emulator # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-crypt/tpm-emulator/ChangeLog,v 1.6 2007/02/23 15:25:35 alonbl Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-crypt/tpm-emulator/ChangeLog,v 1.7 2007/06/23 20:00:20 alonbl Exp $ + +*tpm-emulator-0.5 (23 Jun 2007) + + 23 Jun 2007; Alon Bar-Lev <alonbl@gentoo.org> +files/tpm-emulator.initd, + +files/tpm-emulator.udev, +tpm-emulator-0.5.ebuild: + Version bump, bug#171561 23 Feb 2007; Alon Bar-Lev <alonbl@gentoo.org> -files/tpm-emulator-0.2a-inline.patch, -tpm-emulator-0.2a.ebuild, diff --git a/app-crypt/tpm-emulator/Manifest b/app-crypt/tpm-emulator/Manifest index 97588e1f29f5..91296fb12e1f 100644 --- a/app-crypt/tpm-emulator/Manifest +++ b/app-crypt/tpm-emulator/Manifest @@ -1,12 +1,25 @@ +AUX tpm-emulator.initd 1098 RMD160 fce139ea424d354493388337953f83307177e662 SHA1 931cfcb246f965fc5d0bea36986c26e2e662fa06 SHA256 006cbc727471aa46e6b39783a32456c3a43cb1adf25a54ddf0e9b9c9ab92c10c +MD5 8abd739e8566504aaa0884cb830bcb92 files/tpm-emulator.initd 1098 +RMD160 fce139ea424d354493388337953f83307177e662 files/tpm-emulator.initd 1098 +SHA256 006cbc727471aa46e6b39783a32456c3a43cb1adf25a54ddf0e9b9c9ab92c10c files/tpm-emulator.initd 1098 +AUX tpm-emulator.udev 67 RMD160 d6edf7ece9deef9d26e5adcb881996a9e9266d42 SHA1 8a7e98d62f5bebd4b11167ebc5b170f5ecf38299 SHA256 155c16901e87673317fec00be3e9a9ebee9eef6fe53eda9cf6e03fcfd60a72e2 +MD5 039fb3d51fdf4102e908882b5145bcdd files/tpm-emulator.udev 67 +RMD160 d6edf7ece9deef9d26e5adcb881996a9e9266d42 files/tpm-emulator.udev 67 +SHA256 155c16901e87673317fec00be3e9a9ebee9eef6fe53eda9cf6e03fcfd60a72e2 files/tpm-emulator.udev 67 DIST tpm_emulator-0.3.tar.gz 122014 RMD160 3a7d89e7d466b7509878966a879c0bed798fa748 SHA1 4584b344c8f36cec0eaadafd3325f6691ee96537 SHA256 3f0c49c4f71a67e795b2e3e52e329999338b9e40db128b580a852f2a8e7ea9b2 +DIST tpm_emulator-0.5.tar.gz 267193 RMD160 a4b8d3524fef16993afa291a724d27c798f90733 SHA1 f8d1da3d5305b0d69e106d58708c643ec890f426 SHA256 b6d88a601d47cfb98d00f5fc8abe3aeadd8e205781d5fd745cf7cd47d158fade EBUILD tpm-emulator-0.3.ebuild 1233 RMD160 2547ff9a083a36227afa52ae55e564b3f4687838 SHA1 a6b46c78ef348bc1bbacfbd14d6652b3d26aec4b SHA256 a13680b27af806a4f957cdb90e16d4b5ed2bcc22b6ee08086cdf36a7f9776aee MD5 e37eeb8b22673cd46df74c3e1a4d7eb0 tpm-emulator-0.3.ebuild 1233 RMD160 2547ff9a083a36227afa52ae55e564b3f4687838 tpm-emulator-0.3.ebuild 1233 SHA256 a13680b27af806a4f957cdb90e16d4b5ed2bcc22b6ee08086cdf36a7f9776aee tpm-emulator-0.3.ebuild 1233 -MISC ChangeLog 1182 RMD160 5a391d3ef807401cafbe6f6272fa7071f2cae9a6 SHA1 d8a9a78c657c3f68729f23638a9b1f0741c4918c SHA256 a5785020ce84ec504e41507a55de8344b78d28dc902d710d51dc04564832fffd -MD5 713a1f85bb277a4c1dd7c8192467f769 ChangeLog 1182 -RMD160 5a391d3ef807401cafbe6f6272fa7071f2cae9a6 ChangeLog 1182 -SHA256 a5785020ce84ec504e41507a55de8344b78d28dc902d710d51dc04564832fffd ChangeLog 1182 +EBUILD tpm-emulator-0.5.ebuild 1601 RMD160 41e5d2a7943064c87e3c4622d3b5402c7af6b188 SHA1 8e2d5b87fe58d649700b3b8ec4e4e83bc4748873 SHA256 9c15d011f05b07b599fe1a58aa9455346717d8959885a57c4860003227a963c7 +MD5 7da6908580babfa1fba9478f5bc4c466 tpm-emulator-0.5.ebuild 1601 +RMD160 41e5d2a7943064c87e3c4622d3b5402c7af6b188 tpm-emulator-0.5.ebuild 1601 +SHA256 9c15d011f05b07b599fe1a58aa9455346717d8959885a57c4860003227a963c7 tpm-emulator-0.5.ebuild 1601 +MISC ChangeLog 1372 RMD160 12c9904ad63eb3f503c77e225aa3a5c6e12f3ea0 SHA1 d183e4d3829d4bfb422982dc5dbccfdcf8c17034 SHA256 051ee20e569a23ebef3c4a0dc90472f95109cce0b27182188654c312a6fa9dfe +MD5 0bb46b79c2eb34369d229a52e81a9ffb ChangeLog 1372 +RMD160 12c9904ad63eb3f503c77e225aa3a5c6e12f3ea0 ChangeLog 1372 +SHA256 051ee20e569a23ebef3c4a0dc90472f95109cce0b27182188654c312a6fa9dfe ChangeLog 1372 MISC metadata.xml 251 RMD160 9c13ff790c7419d4e0d2d370036b7f4e4594ea4f SHA1 563aa19984b291a6cade6d6487dbf4a2a17e6874 SHA256 1739a4e8833a2a5b9501182eb830cbd3e26014ccef5e9ae1b4d7a0686c665c1b MD5 2603eeeb20b24caddac3e9ce6996f357 metadata.xml 251 RMD160 9c13ff790c7419d4e0d2d370036b7f4e4594ea4f metadata.xml 251 @@ -14,3 +27,6 @@ SHA256 1739a4e8833a2a5b9501182eb830cbd3e26014ccef5e9ae1b4d7a0686c665c1b metadata MD5 1e94d4fb278ad304699351bc8cead00e files/digest-tpm-emulator-0.3 250 RMD160 8c4b3f420baa4083d4c76633001a1e21db79f0e6 files/digest-tpm-emulator-0.3 250 SHA256 f33b604e655da6407666dcde34cbbde28eea08ccebdd368a187b39a3109831cb files/digest-tpm-emulator-0.3 250 +MD5 923814fc8ab5b910e8d79e59d9eb82f7 files/digest-tpm-emulator-0.5 250 +RMD160 a428da8e4a00214ff7cc8cca5ad12359c4b4ae9b files/digest-tpm-emulator-0.5 250 +SHA256 b2a7419fdad9c6d7af8219e1e4c3f91473c0d7096fac4aa27dc99cda98c091cc files/digest-tpm-emulator-0.5 250 diff --git a/app-crypt/tpm-emulator/files/digest-tpm-emulator-0.5 b/app-crypt/tpm-emulator/files/digest-tpm-emulator-0.5 new file mode 100644 index 000000000000..a901d917201c --- /dev/null +++ b/app-crypt/tpm-emulator/files/digest-tpm-emulator-0.5 @@ -0,0 +1,3 @@ +MD5 c8b13bb190df4e8a9cdef6b4a32aa591 tpm_emulator-0.5.tar.gz 267193 +RMD160 a4b8d3524fef16993afa291a724d27c798f90733 tpm_emulator-0.5.tar.gz 267193 +SHA256 b6d88a601d47cfb98d00f5fc8abe3aeadd8e205781d5fd745cf7cd47d158fade tpm_emulator-0.5.tar.gz 267193 diff --git a/app-crypt/tpm-emulator/files/tpm-emulator.initd b/app-crypt/tpm-emulator/files/tpm-emulator.initd new file mode 100644 index 000000000000..32a7577746d1 --- /dev/null +++ b/app-crypt/tpm-emulator/files/tpm-emulator.initd @@ -0,0 +1,54 @@ +#!/sbin/runscript +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/tpm-emulator/files/tpm-emulator.initd,v 1.1 2007/06/23 20:00:20 alonbl Exp $ + +opts="save clear deactivated" + +STARTUP_MODE='save'; + + +depend() { + use logger + after coldplug +} + +checkconfig() { + lsmod | grep -q "^tpmd_dev\b" \ + || modprobe tpmd_dev &>/dev/null \ + || eerror "Failed to load module tpmd_dev"; + + if [ ! -c /dev/tpm ] && [ ! -c /dev/tpm0 ] ; then + eerror "No TPM device found!" + return 1 + fi + return 0 +} + +start() { + ebegin "Starting tpm-emulator daemon with mode '$STARTUP_MODE' (tpmd)" + checkconfig || eend $? + start-stop-daemon --start --chuid tss --exec /usr/sbin/tpmd $STARTUP_MODE > /dev/null + eend $? +} + +save() { + STARTUP_MODE='save'; + svc_restart +} + +clear() { + STARTUP_MODE='clear'; + svc_restart +} + +deactivated() { + STARTUP_MODE='deactivated'; + svc_restart +} + +stop() { + ebegin "Stopping tpm-emulator daemon (tpmd)" + start-stop-daemon --stop --exec /usr/sbin/tpmd --user tss > /dev/null + eend $? +} diff --git a/app-crypt/tpm-emulator/files/tpm-emulator.udev b/app-crypt/tpm-emulator/files/tpm-emulator.udev new file mode 100644 index 000000000000..01a481f45cba --- /dev/null +++ b/app-crypt/tpm-emulator/files/tpm-emulator.udev @@ -0,0 +1 @@ +KERNEL=="tpm", NAME="%k", SYMLINK="tpm0", GROUP="tss", MODE="0660" diff --git a/app-crypt/tpm-emulator/tpm-emulator-0.5.ebuild b/app-crypt/tpm-emulator/tpm-emulator-0.5.ebuild new file mode 100644 index 000000000000..daaad636e88a --- /dev/null +++ b/app-crypt/tpm-emulator/tpm-emulator-0.5.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-crypt/tpm-emulator/tpm-emulator-0.5.ebuild,v 1.1 2007/06/23 20:00:20 alonbl Exp $ + +inherit toolchain-funcs linux-mod eutils + +MY_P=${P/-/_} +DESCRIPTION="Emulator driver for tpm" +HOMEPAGE="https://developer.berlios.de/projects/tpm-emulator" + +SRC_URI="http://download.berlios.de/tpm-emulator/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" +DEPEND="dev-libs/gmp" +RDEPEND="" +S=${WORKDIR}/${P/-/_} + +#fixups at: +#https://developer.berlios.de/feature/index.php?func=detailfeature&feature_id=3304&group_id=2491 + +pkg_setup() { + linux-mod_pkg_setup + MODULE_NAMES="tpmd_dev(crypt::${S}/tpmd_dev)" + BUILD_TARGETS="all" + BUILD_PARAMS="CC=$(tc-getCC)" + enewuser tss +} + +src_unpack() { + unpack ${A} + cd "${S}" + sed -i 's/LDFLAGS :=/override LDFLAGS +=/g' tpmd/Makefile + sed -i 's#/var/tpm#/var/run/tpm#g' tpmd/tpmd.c tddl/tddl.c tpm_dev/linux_module.c +} + +src_install() { + if [ -x /usr/bin/scanelf ]; then + [ -z "$(/usr/bin/scanelf -qs __guard tpm_emulator.ko)" ] || \ + die 'cannot have gmp compiled with hardened flags' + [ -z "$(/usr/bin/scanelf -qs __stack_smash_handler tpm_emulator.ko)" ] || \ + die 'cannot have gmp compiled with hardened flags' + fi + + linux-mod_src_install + dodoc README + dosbin tpmd/tpmd + dolib.so tddl/libtddl.so + insinto /usr/include + doins tddl/tddl.h + newinitd "${FILESDIR}/${PN}.initd" "${PN}" + insinto /etc/udev/rules.d + newins "${FILESDIR}/${PN}.udev" "60-${PN}.rules" + keepdir /var/run/tpm + fowners tss /var/run/tpm +} + |