Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 675298 | Differences between
and this patch

Collapse All | Expand All

(-)a/app-crypt/swtpm/files/swtpm-disable-test-dependencies.patch (+43 lines)
Line 0 Link Here
1
diff --git a/Makefile.am b/Makefile.am
2
index 47b091a..8380e7c 100644
3
--- a/Makefile.am
4
+++ b/Makefile.am
5
@@ -9,8 +9,7 @@ SUBDIRS   = \
6
 	include \
7
 	man \
8
 	samples \
9
-	src \
10
-	tests
11
+	src
12
 
13
 ACLOCAL_AMFLAGS = -I m4
14
 
15
diff --git a/configure.ac b/configure.ac
16
index 1f6d7df..2324f21 100644
17
--- a/configure.ac
18
+++ b/configure.ac
19
@@ -322,15 +322,15 @@ if test "x$GAWK" = "x"; then
20
 	AC_MSG_ERROR([gawk is required: gawk package])
21
 fi
22
 
23
-AC_PATH_PROG([SOCAT], socat)
24
-if test "x$SOCAT" = "x"; then
25
-	AC_MSG_ERROR([socat is required: socat package])
26
-fi
27
-
28
-AC_PATH_PROG([PYTHON], python3)
29
-if test "x$PYTHON" = "x"; then
30
-	AC_MSG_ERROR([python3 is required])
31
-fi
32
+dnl AC_PATH_PROG([SOCAT], socat)
33
+dnl if test "x$SOCAT" = "x"; then
34
+dnl 	AC_MSG_ERROR([socat is required: socat package])
35
+dnl fi
36
+
37
+dnl AC_PATH_PROG([PYTHON], python3)
38
+dnl if test "x$PYTHON" = "x"; then
39
+dnl	AC_MSG_ERROR([python3 is required])
40
+dnl fi
41
 
42
 AC_ARG_ENABLE([hardening],
43
   AS_HELP_STRING([--disable-hardening], [Disable hardening flags]))
(-)a/app-crypt/swtpm/files/swtpm-fix-localca-path.patch (+16 lines)
Line 0 Link Here
1
diff --git a/samples/Makefile.am b/samples/Makefile.am
2
index 4558d66..6fc6d77 100644
3
--- a/samples/Makefile.am
4
+++ b/samples/Makefile.am
5
@@ -16,9 +16,9 @@ samplessysconf_DATA = \
6
 	swtpm-localca.options
7
 
8
 install-data-local:
9
-	$(MKDIR_P) $(DESTDIR)$(localstatedir)/lib/swtpm-localca
10
+	$(MKDIR_P) $(DESTDIR)$(localstatedir)/swtpm-localca
11
 	if test -z $(DESTDIR); then \
12
-		chown @TSS_USER@:@TSS_GROUP@ $(DESTDIR)$(localstatedir)/lib/swtpm-localca || true; \
13
+		chown @TSS_USER@:@TSS_GROUP@ $(DESTDIR)$(localstatedir)/swtpm-localca || true; \
14
 	fi
15
 
16
 EXTRA_DIST= \
(-)a/app-crypt/swtpm/swtpm-0.1.0_p20181212.ebuild (+52 lines)
Line 0 Link Here
1
# Copyright 1999-2019 Gentoo Authors
2
# Distributed under the terms of the GNU General Public License v2
3
4
EAPI=7
5
6
PYTHON_COMPAT=( python3_{4,5,6} )
7
8
inherit git-r3 autotools python-any-r1
9
10
DESCRIPTION="Libtpms-based TPM emulator"
11
HOMEPAGE="https://github.com/stefanberger/swtpm"
12
EGIT_REPO_URI="https://github.com/stefanberger/swtpm.git"
13
EGIT_COMMIT="8b9484a35063a9a07c93051b2dae0b69d9d9676e"
14
LICENSE="BSD"
15
SLOT="0"
16
KEYWORDS="~amd64"
17
IUSE="gnutls fuse test"
18
19
DEPEND="dev-libs/libtpms
20
	dev-libs/openssl:0
21
	dev-libs/libtasn1
22
	fuse? ( sys-fs/fuse:0
23
		 >=dev-libs/glib-2.0.0 )
24
	gnutls? ( >=net-libs/gnutls-3.1.0[tools] )
25
	test? ( net-misc/socat
26
		${PYTHON_DEPS} )"
27
28
RDEPEND="dev-tcltk/expect
29
	app-crypt/trousers
30
	app-crypt/tpm-tools
31
	sys-apps/gawk
32
	${DEPEND}"
33
34
src_prepare() {
35
	use !test && eapply "${FILESDIR}/${PN}-disable-test-dependencies.patch"
36
	eapply "${FILESDIR}/${PN}-fix-localca-path.patch"
37
	eapply_user
38
	eautoreconf
39
}
40
41
src_configure() {
42
	econf \
43
	  --with-openssl \
44
	  --without-selinux \
45
	  $(use_with gnutls) \
46
	  $(use_with fuse cuse)
47
}
48
49
src_install() {
50
	emake DESTDIR="${D}" install
51
	keepdir /var/lib/swtpm-localca
52
}
(-)a/app-crypt/swtpm/swtpm-9999.ebuild (-1 / +51 lines)
Line 0 Link Here
0
- 
1
# Copyright 1999-2019 Gentoo Authors
2
# Distributed under the terms of the GNU General Public License v2
3
4
EAPI=7
5
6
PYTHON_COMPAT=( python3_{4,5,6} )
7
8
inherit git-r3 autotools python-any-r1
9
10
DESCRIPTION="Libtpms-based TPM emulator"
11
HOMEPAGE="https://github.com/stefanberger/swtpm"
12
EGIT_REPO_URI="https://github.com/stefanberger/swtpm.git"
13
LICENSE="BSD"
14
SLOT="0"
15
KEYWORDS="~amd64"
16
IUSE="gnutls fuse test"
17
18
DEPEND="dev-libs/libtpms
19
	dev-libs/openssl:0
20
	dev-libs/libtasn1
21
	fuse? ( sys-fs/fuse:0
22
		 >=dev-libs/glib-2.0.0 )
23
	gnutls? ( >=net-libs/gnutls-3.1.0[tools] )
24
	test? ( net-misc/socat
25
		${PYTHON_DEPS} )"
26
27
RDEPEND="dev-tcltk/expect
28
	app-crypt/trousers
29
	app-crypt/tpm-tools
30
	sys-apps/gawk
31
	${DEPEND}"
32
33
src_prepare() {
34
	use !test && eapply "${FILESDIR}/${PN}-disable-test-dependencies.patch"
35
	eapply "${FILESDIR}/${PN}-fix-localca-path.patch"
36
	eapply_user
37
	eautoreconf
38
}
39
40
src_configure() {
41
	econf \
42
	  --with-openssl \
43
	  --without-selinux \
44
	  $(use_with gnutls) \
45
	  $(use_with fuse cuse)
46
}
47
48
src_install() {
49
	emake DESTDIR="${D}" install
50
	keepdir /var/lib/swtpm-localca
51
}

Return to bug 675298