dev-libs/libtpms: New ebuild
authorSalah Coronya <salah.coronya@gmail.com>
Fri, 2 Aug 2019 01:55:12 +0000 (20:55 -0500)
committerJoonas Niilola <juippis@gentoo.org>
Fri, 2 Aug 2019 11:24:59 +0000 (14:24 +0300)
libtpms is a library providing software emultion of a TPM. It is used by
swtpm.

Closes: https://bugs.gentoo.org/675296
Signed-off-by: Salah Coronya <salah.coronya@gmail.com>
Package-Manager: Portage-2.3.66, Repoman-2.3.11
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
dev-libs/libtpms/Manifest [new file with mode: 0644]
dev-libs/libtpms/libtpms-0.7.0.ebuild [new file with mode: 0644]
dev-libs/libtpms/metadata.xml [new file with mode: 0644]

diff --git a/dev-libs/libtpms/Manifest b/dev-libs/libtpms/Manifest
new file mode 100644 (file)
index 0000000..84d03d4
--- /dev/null
@@ -0,0 +1 @@
+DIST libtpms-0.7.0.tar.gz 1203837 BLAKE2B ca5a3b78dc63c09c4ff084124838fedeb5be0580f709ad6165680159ba7ba4b1f751b9fbc67f6b5a8f39b82bdd420afb47087412a47b72cbe5b418a97a4860fe SHA512 92d1eb5d1a1cae08e97cceaca56fc9bc6d43c54a93edae2accf19807a4e93e19d88064a0b11db796c79d32c821e6b320ebbacb65cd20da3e5b1205f3b861cef2
diff --git a/dev-libs/libtpms/libtpms-0.7.0.ebuild b/dev-libs/libtpms/libtpms-0.7.0.ebuild
new file mode 100644 (file)
index 0000000..ea28c3d
--- /dev/null
@@ -0,0 +1,27 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools
+
+DESCRIPTION="Library providing software emultion of a TPM"
+HOMEPAGE="https://github.com/stefanberger/libtpms"
+SRC_URI="https://github.com/stefanberger/libtpms/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="dev-libs/openssl:0="
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+       default
+       eautoreconf
+}
+
+src_configure() {
+       econf \
+         --with-openssl \
+         --with-tpm2
+}
diff --git a/dev-libs/libtpms/metadata.xml b/dev-libs/libtpms/metadata.xml
new file mode 100644 (file)
index 0000000..6ddd104
--- /dev/null
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <maintainer type="person">
+               <email>salah.coronya@gmail.com</email>
+               <name>Salah Coronya</name>
+       </maintainer>
+       <maintainer type="project">
+               <email>proxy-maint@gentoo.org</email>
+               <name>Proxy Maintainers</name>
+       </maintainer>
+</pkgmetadata>
+