diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-08-02 19:14:55 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-08-02 19:14:55 +0100 |
commit | b24bd25253fe093f722ab576d29fdc41d04cb1ee (patch) | |
tree | 0fcf2afd9f852c4d4c291cf8afaa2c244d598105 /app-crypt/swtpm | |
parent | 121ed4eec41fbf03e1998d09eede1bf449da63b9 (diff) |
gentoo resync : 02.08.2019
Diffstat (limited to 'app-crypt/swtpm')
-rw-r--r-- | app-crypt/swtpm/Manifest | 5 | ||||
-rw-r--r-- | app-crypt/swtpm/files/swtpm-disable-test-dependencies.patch | 36 | ||||
-rw-r--r-- | app-crypt/swtpm/files/swtpm-fix-localca-path.patch | 29 | ||||
-rw-r--r-- | app-crypt/swtpm/metadata.xml | 16 | ||||
-rw-r--r-- | app-crypt/swtpm/swtpm-0.2.0.ebuild | 63 |
5 files changed, 149 insertions, 0 deletions
diff --git a/app-crypt/swtpm/Manifest b/app-crypt/swtpm/Manifest new file mode 100644 index 000000000000..e69c3734d01f --- /dev/null +++ b/app-crypt/swtpm/Manifest @@ -0,0 +1,5 @@ +AUX swtpm-disable-test-dependencies.patch 774 BLAKE2B 8089885d5b21cea09fb5ec59d69640754671ba27763d57bdb45345768722166d4cd5fa0d890542aa79a90c2b8e609f611ac4ccd58be71ec13128d81daccb50bd SHA512 d803222c8fb04a7909f8a60563dfd23327c842f12138309f3b901309651857d6c545ca8e46c68c9b60b97f0e03ab79575784e242409d41b3d69e6ad8516428e5 +AUX swtpm-fix-localca-path.patch 1197 BLAKE2B fb94a734303e1c71158ffda2958275a377d9c75b98262061b06bb22d2dce6efd3b5d126758b65cbab8141a78549c4ab99d3aa2c241c4870de67f871706840b5d SHA512 c9a0e6ee27f0b38b65f2cad65a48622c3b9e9e8913bba002f0c82168f22162dbc62ed2b104942ed8141889625f225f29516ecbd20ba6ffb5091eb2201df0f107 +DIST swtpm-0.2.0.tar.gz 297419 BLAKE2B 9045cfd127d2f7e8e2e202818a375b4f6398806a097ed0df73abb76426db3af65a0d27f5e7212ce099d796862d3a9b3d421e987cf159bdce8879fc764eb5e923 SHA512 bda54690c0438138ff7adcc212fb125d2bb62618b10305eeced776e014bb135ea1a1dd1271a99fb2c60bf7e418644ded029c3c09ec2c6c1258e5062122cacf19 +EBUILD swtpm-0.2.0.ebuild 1224 BLAKE2B f19ffd5b4e918974c89a03e3ba7274f1264f913103a54c98e1fdff55359c0ae0daa6d077bbfc6d3a1ae2a944bcfd33d54494e352621933f677d7a7d29dcc18db SHA512 e7db96d26f01ae0ac36e6f889ff2dc30bee375240ac18815660f7e5e6acd4a786ecb555e8b7861431561b18a04783b35e5c57f3839bd2fe703a07f0934678daf +MISC metadata.xml 457 BLAKE2B defc06c2642823aa760cafc22e90f891f9337358bfaa446778e1f4107f6e295ec21b5987f49bdcee3fd7b68084be1b864d7569e74bd729345e4886b08c617a06 SHA512 c80e24dc4ec41e5aae1e7fe67208c945e62c02f469164d0a76445269e3e0204674cd593956f99fa1539505e1a70a15bbf6c02afcf6b38592f04f3c4d3f275e08 diff --git a/app-crypt/swtpm/files/swtpm-disable-test-dependencies.patch b/app-crypt/swtpm/files/swtpm-disable-test-dependencies.patch new file mode 100644 index 000000000000..ff2536676637 --- /dev/null +++ b/app-crypt/swtpm/files/swtpm-disable-test-dependencies.patch @@ -0,0 +1,36 @@ +diff --git a/Makefile.am b/Makefile.am +index 47b091a..61192bf 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -9,9 +9,7 @@ SUBDIRS = \ + include \ + man \ + samples \ +- src \ +- tests +- ++ src + ACLOCAL_AMFLAGS = -I m4 + + EXTRA_DIST = \ +diff --git a/configure.ac b/configure.ac +index c7b4e98..8e6445b 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -330,16 +330,6 @@ if test "x$GAWK" = "x"; then + AC_MSG_ERROR([gawk is required: gawk package]) + fi + +-AC_PATH_PROG([SOCAT], socat) +-if test "x$SOCAT" = "x"; then +- AC_MSG_ERROR([socat is required: socat package]) +-fi +- +-AC_PATH_PROG([PYTHON], python3) +-if test "x$PYTHON" = "x"; then +- AC_MSG_ERROR([python3 is required]) +-fi +- + AC_ARG_ENABLE([hardening], + AS_HELP_STRING([--disable-hardening], [Disable hardening flags])) + diff --git a/app-crypt/swtpm/files/swtpm-fix-localca-path.patch b/app-crypt/swtpm/files/swtpm-fix-localca-path.patch new file mode 100644 index 000000000000..c83758da5636 --- /dev/null +++ b/app-crypt/swtpm/files/swtpm-fix-localca-path.patch @@ -0,0 +1,29 @@ +diff --git a/samples/Makefile.am b/samples/Makefile.am +index 4558d66..6fc6d77 100644 +--- a/samples/Makefile.am ++++ b/samples/Makefile.am +@@ -16,9 +16,9 @@ samplessysconf_DATA = \ + swtpm-localca.options + + install-data-local: +- $(MKDIR_P) $(DESTDIR)$(localstatedir)/lib/swtpm-localca ++ $(MKDIR_P) $(DESTDIR)$(localstatedir)/swtpm-localca + if test -z $(DESTDIR); then \ +- chown @TSS_USER@:@TSS_GROUP@ $(DESTDIR)$(localstatedir)/lib/swtpm-localca || true; \ ++ chown @TSS_USER@:@TSS_GROUP@ $(DESTDIR)$(localstatedir)/swtpm-localca || true; \ + fi + + EXTRA_DIST= \ +diff --git a/samples/swtpm-localca.conf.in b/samples/swtpm-localca.conf.in +index 1f0b48d..63f1fed 100644 +--- a/samples/swtpm-localca.conf.in ++++ b/samples/swtpm-localca.conf.in +@@ -1,4 +1,4 @@ +-statedir = @LOCALSTATEDIR@/lib/swtpm-localca +-signingkey = @LOCALSTATEDIR@/lib/swtpm-localca/signkey.pem +-issuercert = @LOCALSTATEDIR@/lib/swtpm-localca/issuercert.pem +-certserial = @LOCALSTATEDIR@/lib/swtpm-localca/certserial ++statedir = @LOCALSTATEDIR@/swtpm-localca ++signingkey = @LOCALSTATEDIR@/swtpm-localca/signkey.pem ++issuercert = @LOCALSTATEDIR@/swtpm-localca/issuercert.pem ++certserial = @LOCALSTATEDIR@/swtpm-localca/certserial diff --git a/app-crypt/swtpm/metadata.xml b/app-crypt/swtpm/metadata.xml new file mode 100644 index 000000000000..261b73cab058 --- /dev/null +++ b/app-crypt/swtpm/metadata.xml @@ -0,0 +1,16 @@ +<?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> + <use> + <flag name="fuse">Support sys-fs/fuse based /dev/tpm interface</flag> + </use> +</pkgmetadata> + diff --git a/app-crypt/swtpm/swtpm-0.2.0.ebuild b/app-crypt/swtpm/swtpm-0.2.0.ebuild new file mode 100644 index 000000000000..0ee3facecabc --- /dev/null +++ b/app-crypt/swtpm/swtpm-0.2.0.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{5,6,7} ) + +inherit autotools python-any-r1 + +DESCRIPTION="Libtpms-based TPM emulator" +HOMEPAGE="https://github.com/stefanberger/swtpm" +SRC_URI="https://github.com/stefanberger/swtpm/archive/v${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" +IUSE="fuse gnutls seccomp test" + +COMMON_DEPEND="dev-libs/libtpms + dev-libs/openssl:0 + fuse? ( + dev-libs/glib:2 + sys-fs/fuse:0 + ) + gnutls? ( + dev-libs/libtasn1:= + >=net-libs/gnutls-3.1.0[tools] + ) + seccomp? ( sys-libs/libseccomp ) +" + +DEPEND="${COMMON_DEPEND} + test? ( + net-misc/socat + ${PYTHON_DEPS} + ) +" + +RDEPEND="${COMMON_DEPEND} + app-crypt/tpm-tools + app-crypt/trousers + dev-tcltk/expect" + +src_prepare() { + use test || eapply "${FILESDIR}/${PN}-disable-test-dependencies.patch" + eapply "${FILESDIR}/${PN}-fix-localca-path.patch" + default + eautoreconf +} + +src_configure() { + econf \ + --with-openssl \ + --without-selinux \ + $(use_with fuse cuse) \ + $(use_with gnutls) \ + $(use_with seccomp) +} + +src_install() { + default + fowners tss:tss /var/lib/swtpm-localca + keepdir /var/lib/swtpm-localca +} |