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 (+29 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= \
17
diff --git a/samples/swtpm-localca.conf.in b/samples/swtpm-localca.conf.in
18
index 1f0b48d..63f1fed 100644
19
--- a/samples/swtpm-localca.conf.in
20
+++ b/samples/swtpm-localca.conf.in
21
@@ -1,4 +1,4 @@
22
-statedir = @LOCALSTATEDIR@/lib/swtpm-localca
23
-signingkey = @LOCALSTATEDIR@/lib/swtpm-localca/signkey.pem
24
-issuercert = @LOCALSTATEDIR@/lib/swtpm-localca/issuercert.pem
25
-certserial = @LOCALSTATEDIR@/lib/swtpm-localca/certserial
26
+statedir = @LOCALSTATEDIR@/swtpm-localca
27
+signingkey = @LOCALSTATEDIR@/swtpm-localca/signkey.pem
28
+issuercert = @LOCALSTATEDIR@/swtpm-localca/issuercert.pem
29
+certserial = @LOCALSTATEDIR@/swtpm-localca/certserial
(-)a/app-crypt/swtpm/swtpm-0.1.0.ebuild (+54 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 autotools python-any-r1
9
10
DESCRIPTION="Libtpms-based TPM emulator"
11
HOMEPAGE="https://github.com/stefanberger/swtpm"
12
SRC_URI="https://github.com/stefanberger/swtpm/archive/v${PV}.tar.gz"
13
LICENSE="BSD"
14
SLOT="0"
15
KEYWORDS="~amd64"
16
IUSE="gnutls fuse test"
17
18
COMMON_DEPEND="dev-libs/libtpms
19
	dev-libs/openssl:0
20
	fuse? ( sys-fs/fuse:0
21
		 >=dev-libs/glib-2.0.0 )
22
	gnutls? ( >=net-libs/gnutls-3.1.0[tools]
23
		  dev-libs/libtasn1 )"
24
25
DEPEND="${COMMON_DEPEND}
26
	test? ( net-misc/socat
27
		${PYTHON_DEPS} )"
28
29
RDEPEND="${COMMON_DEPEND}
30
	dev-tcltk/expect
31
	app-crypt/trousers
32
	app-crypt/tpm-tools
33
	sys-apps/gawk"
34
35
src_prepare() {
36
	use !test && eapply "${FILESDIR}/${PN}-disable-test-dependencies.patch"
37
	eapply "${FILESDIR}/${PN}-fix-localca-path.patch"
38
	eapply_user
39
	eautoreconf
40
}
41
42
src_configure() {
43
	econf \
44
	  --with-openssl \
45
	  --without-selinux \
46
	  $(use_with gnutls) \
47
	  $(use_with fuse cuse)
48
}
49
50
src_install() {
51
	emake DESTDIR="${D}" install
52
	fowners tss: /var/lib/swtpm-localca
53
	keepdir /var/lib/swtpm-localca
54
}
(-)a/app-crypt/swtpm/swtpm-9999.ebuild (-1 / +54 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=""
16
IUSE="gnutls fuse test"
17
18
COMMON_DEPEND="dev-libs/libtpms
19
	dev-libs/openssl:0
20
	fuse? ( sys-fs/fuse:0
21
		>=dev-libs/glib-2.0.0 )
22
	gnutls? ( >=net-libs/gnutls-3.1.0[tools]
23
		  dev-libs/libtasn1 )"
24
25
DEPEND="${COMMON_DEPEND}
26
	test? ( net-misc/socat
27
		${PYTHON_DEPS} )"
28
29
RDEPEND="${COMMON_DEPEND}
30
	dev-tcltk/expect
31
	app-crypt/trousers
32
	app-crypt/tpm-tools
33
	sys-apps/gawk"
34
35
src_prepare() {
36
	use !test && eapply "${FILESDIR}/${PN}-disable-test-dependencies.patch"
37
	eapply "${FILESDIR}/${P}-fix-localca-path.patch"
38
	eapply_user
39
	eautoreconf
40
}
41
42
src_configure() {
43
	econf \
44
	  --with-openssl \
45
	  --without-selinux \
46
	  $(use_with gnutls) \
47
	  $(use_with fuse cuse)
48
}
49
50
src_install() {
51
	emake DESTDIR="${D}" install
52
	fowners tss: /var/lib/swtpm-localca
53
	keepdir /var/lib/swtpm-localca
54
}

Return to bug 675298