1 |
commit: 5960523f36abf7dce001d7eda4f6599d8779310b |
2 |
Author: orbea <orbea <AT> riseup <DOT> net> |
3 |
AuthorDate: Tue Jul 5 01:37:50 2022 +0000 |
4 |
Commit: Quentin Retornaz <gentoo <AT> retornaz <DOT> com> |
5 |
CommitDate: Tue Jul 5 21:18:31 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=5960523f |
7 |
|
8 |
app-crypt/trousers: Remove old version |
9 |
|
10 |
Signed-off-by: orbea <orbea <AT> riseup.net> |
11 |
Signed-off-by: Quentin Retornaz <gentoo <AT> retornaz.com> |
12 |
|
13 |
app-crypt/trousers/Manifest | 1 - |
14 |
app-crypt/trousers/files/tcsd.confd | 9 --- |
15 |
.../files/trousers-0.3.14-fno-common.patch | 15 ----- |
16 |
.../trousers/files/trousers-0.3.14-libressl.patch | 28 --------- |
17 |
.../files/trousers-0.3.14-tcsd-fixes.patch | 58 ------------------ |
18 |
app-crypt/trousers/trousers-0.3.14-r3.ebuild | 68 ---------------------- |
19 |
6 files changed, 179 deletions(-) |
20 |
|
21 |
diff --git a/app-crypt/trousers/Manifest b/app-crypt/trousers/Manifest |
22 |
index 84891c9..4556d86 100644 |
23 |
--- a/app-crypt/trousers/Manifest |
24 |
+++ b/app-crypt/trousers/Manifest |
25 |
@@ -1,2 +1 @@ |
26 |
-DIST trousers-0.3.14.tar.gz 1378438 BLAKE2B 3dc2824fa2ca1b1f1181f98d59e85276e7d38af4bfc07ee8246431d9ccb300a8e0820b318643d4cf5d757d2a49492c8686e2fe9de03484263d2189d4bbaa32d0 SHA512 bf87f00329cf1d76a12cf6b6181fa22f90e76af3c5786e6e2db98438d2d3f0c0e05364374664173f45e3a2f6c0e2364948d0b958a7845cb23fcb340150cd9b21 |
27 |
DIST trousers-0.3.15.tar.gz 4699936 BLAKE2B 53c60498ed6a9d3d87295b00676e5d0d82452918c35af6b98c7979ffa2dc04dd817e7cd3f4a33ca17c30b90eab53d80b2bb25306fe9db7bda2125019edfed280 SHA512 769c7d891c6306c1b3252448f86e3043ee837e566c9431f5b4353512113e2907f6ce29c91e8044c420025b79c5f3ff2396ddce93f73b1eb2a15ea1de89ac0fdb |
28 |
|
29 |
diff --git a/app-crypt/trousers/files/tcsd.confd b/app-crypt/trousers/files/tcsd.confd |
30 |
deleted file mode 100644 |
31 |
index 78bedb9..0000000 |
32 |
--- a/app-crypt/trousers/files/tcsd.confd |
33 |
+++ /dev/null |
34 |
@@ -1,9 +0,0 @@ |
35 |
-# /etc/conf.d/tscd |
36 |
- |
37 |
-# Configuration file for the TrouSerS' TCS daemon (tcsd) init script |
38 |
-# Have a look on /etc/tcsd.conf too, there is more to configure there. |
39 |
- |
40 |
-# TPM_MODULES: name of the module(s) that should be loaded. You only need to |
41 |
-# set this if your driver is not compiled in kernel and is not already loaded |
42 |
-# on boot. (default: unset) |
43 |
-#TPM_MODULES="tpm_atmel" |
44 |
|
45 |
diff --git a/app-crypt/trousers/files/trousers-0.3.14-fno-common.patch b/app-crypt/trousers/files/trousers-0.3.14-fno-common.patch |
46 |
deleted file mode 100644 |
47 |
index 5046bc7..0000000 |
48 |
--- a/app-crypt/trousers/files/trousers-0.3.14-fno-common.patch |
49 |
+++ /dev/null |
50 |
@@ -1,15 +0,0 @@ |
51 |
-diff --git a/src/include/tcsd.h b/src/include/tcsd.h |
52 |
-index 5b9462b..05bae97 100644 |
53 |
---- a/src/include/tcsd.h |
54 |
-+++ b/src/include/tcsd.h |
55 |
-@@ -166,8 +166,8 @@ void thread_signal_init(); |
56 |
- |
57 |
- /* signal handling */ |
58 |
- #ifndef __APPLE__ |
59 |
--struct sigaction tcsd_sa_int; |
60 |
--struct sigaction tcsd_sa_chld; |
61 |
-+extern struct sigaction tcsd_sa_int; |
62 |
-+extern struct sigaction tcsd_sa_chld; |
63 |
- #endif |
64 |
- |
65 |
- #endif |
66 |
|
67 |
diff --git a/app-crypt/trousers/files/trousers-0.3.14-libressl.patch b/app-crypt/trousers/files/trousers-0.3.14-libressl.patch |
68 |
deleted file mode 100644 |
69 |
index 9ee7c16..0000000 |
70 |
--- a/app-crypt/trousers/files/trousers-0.3.14-libressl.patch |
71 |
+++ /dev/null |
72 |
@@ -1,28 +0,0 @@ |
73 |
-From b8b1cda430270f03dc556cf9cf7d2fd478101525 Mon Sep 17 00:00:00 2001 |
74 |
-From: Alon Bar-Lev <alon.barlev@×××××.com> |
75 |
-Date: Wed, 7 Dec 2016 09:36:34 +0200 |
76 |
-Subject: [PATCH] tspi: support libressl |
77 |
- |
78 |
-Bug: https://sourceforge.net/p/trousers/bugs/222/ |
79 |
- |
80 |
-Signed-off-by: Alon Bar-Lev <alon.barlev@×××××.com> |
81 |
---- |
82 |
- src/trspi/crypto/openssl/rsa.c | 2 +- |
83 |
- 1 file changed, 1 insertion(+), 1 deletion(-) |
84 |
- |
85 |
-diff --git a/src/trspi/crypto/openssl/rsa.c b/src/trspi/crypto/openssl/rsa.c |
86 |
-index 2b1205f..3e56015 100644 |
87 |
---- a/src/trspi/crypto/openssl/rsa.c |
88 |
-+++ b/src/trspi/crypto/openssl/rsa.c |
89 |
-@@ -38,7 +38,7 @@ |
90 |
- #define DEBUG_print_openssl_errors() |
91 |
- #endif |
92 |
- |
93 |
--#if OPENSSL_VERSION_NUMBER < 0x10100001L |
94 |
-+#if OPENSSL_VERSION_NUMBER < 0x10100001L || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20700000L) |
95 |
- static int |
96 |
- RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d) |
97 |
- { |
98 |
--- |
99 |
-2.7.3 |
100 |
- |
101 |
|
102 |
diff --git a/app-crypt/trousers/files/trousers-0.3.14-tcsd-fixes.patch b/app-crypt/trousers/files/trousers-0.3.14-tcsd-fixes.patch |
103 |
deleted file mode 100644 |
104 |
index 10031e0..0000000 |
105 |
--- a/app-crypt/trousers/files/trousers-0.3.14-tcsd-fixes.patch |
106 |
+++ /dev/null |
107 |
@@ -1,58 +0,0 @@ |
108 |
-Index: trousers-0.3.14/src/tcs/ps/tcsps.c |
109 |
-=================================================================== |
110 |
---- trousers-0.3.14.orig/src/tcs/ps/tcsps.c |
111 |
-+++ trousers-0.3.14/src/tcs/ps/tcsps.c |
112 |
-@@ -72,7 +72,7 @@ get_file() |
113 |
- } |
114 |
- |
115 |
- /* open and lock the file */ |
116 |
-- system_ps_fd = open(tcsd_options.system_ps_file, O_CREAT|O_RDWR, 0600); |
117 |
-+ system_ps_fd = open(tcsd_options.system_ps_file, O_CREAT|O_RDWR|O_NOFOLLOW, 0600); |
118 |
- if (system_ps_fd < 0) { |
119 |
- LogError("system PS: open() of %s failed: %s", |
120 |
- tcsd_options.system_ps_file, strerror(errno)); |
121 |
-Index: trousers-0.3.14/src/tcsd/svrside.c |
122 |
-=================================================================== |
123 |
---- trousers-0.3.14.orig/src/tcsd/svrside.c |
124 |
-+++ trousers-0.3.14/src/tcsd/svrside.c |
125 |
-@@ -473,6 +473,7 @@ main(int argc, char **argv) |
126 |
- } |
127 |
- return TCSERR(TSS_E_INTERNAL_ERROR); |
128 |
- } |
129 |
-+ setgid(pwd->pw_gid); |
130 |
- setuid(pwd->pw_uid); |
131 |
- #endif |
132 |
- #endif |
133 |
-Index: trousers-0.3.14/src/tcsd/tcsd_conf.c |
134 |
-=================================================================== |
135 |
---- trousers-0.3.14.orig/src/tcsd/tcsd_conf.c |
136 |
-+++ trousers-0.3.14/src/tcsd/tcsd_conf.c |
137 |
-@@ -743,7 +743,7 @@ conf_file_init(struct tcsd_config *conf) |
138 |
- #ifndef SOLARIS |
139 |
- struct group *grp; |
140 |
- struct passwd *pw; |
141 |
-- mode_t mode = (S_IRUSR|S_IWUSR); |
142 |
-+ mode_t mode = (S_IRUSR|S_IWUSR|S_IRGRP); |
143 |
- #endif /* SOLARIS */ |
144 |
- TSS_RESULT result; |
145 |
- |
146 |
-@@ -798,15 +798,15 @@ conf_file_init(struct tcsd_config *conf) |
147 |
- } |
148 |
- |
149 |
- /* make sure user/group TSS owns the conf file */ |
150 |
-- if (pw->pw_uid != stat_buf.st_uid || grp->gr_gid != stat_buf.st_gid) { |
151 |
-+ if (stat_buf.st_uid != 0 || grp->gr_gid != stat_buf.st_gid) { |
152 |
- LogError("TCSD config file (%s) must be user/group %s/%s", tcsd_config_file, |
153 |
-- TSS_USER_NAME, TSS_GROUP_NAME); |
154 |
-+ "root", TSS_GROUP_NAME); |
155 |
- return TCSERR(TSS_E_INTERNAL_ERROR); |
156 |
- } |
157 |
- |
158 |
-- /* make sure only the tss user can manipulate the config file */ |
159 |
-+ /* make sure only the tss user can read (but not manipulate) the config file */ |
160 |
- if (((stat_buf.st_mode & 0777) ^ mode) != 0) { |
161 |
-- LogError("TCSD config file (%s) must be mode 0600", tcsd_config_file); |
162 |
-+ LogError("TCSD config file (%s) must be mode 0640", tcsd_config_file); |
163 |
- return TCSERR(TSS_E_INTERNAL_ERROR); |
164 |
- } |
165 |
- #endif /* SOLARIS */ |
166 |
|
167 |
diff --git a/app-crypt/trousers/trousers-0.3.14-r3.ebuild b/app-crypt/trousers/trousers-0.3.14-r3.ebuild |
168 |
deleted file mode 100644 |
169 |
index d033079..0000000 |
170 |
--- a/app-crypt/trousers/trousers-0.3.14-r3.ebuild |
171 |
+++ /dev/null |
172 |
@@ -1,68 +0,0 @@ |
173 |
-# Copyright 1999-2021 Gentoo Authors |
174 |
-# Distributed under the terms of the GNU General Public License v2 |
175 |
- |
176 |
-EAPI=7 |
177 |
- |
178 |
-inherit autotools linux-info readme.gentoo-r1 systemd udev |
179 |
- |
180 |
-DESCRIPTION="An open-source TCG Software Stack (TSS) v1.1 implementation" |
181 |
-HOMEPAGE="http://trousers.sf.net" |
182 |
-SRC_URI="mirror://sourceforge/trousers/${PN}/${P}.tar.gz" |
183 |
- |
184 |
-LICENSE="CPL-1.0 GPL-2" |
185 |
-SLOT="0" |
186 |
-KEYWORDS="amd64 arm arm64 ~m68k ~ppc ppc64 ~s390 x86" |
187 |
-IUSE="doc selinux" # gtk |
188 |
- |
189 |
-# gtk support presently does NOT compile. |
190 |
-# gtk? ( >=x11-libs/gtk+-2 ) |
191 |
- |
192 |
-DEPEND="acct-group/tss |
193 |
- acct-user/tss |
194 |
- >=dev-libs/glib-2 |
195 |
- >=dev-libs/openssl-0.9.7:0=" |
196 |
-RDEPEND="${DEPEND} |
197 |
- selinux? ( sec-policy/selinux-tcsd )" |
198 |
-BDEPEND="virtual/pkgconfig" |
199 |
- |
200 |
-PATCHES=( |
201 |
- "${FILESDIR}/${PN}-0.3.13-nouseradd.patch" |
202 |
- "${FILESDIR}/${P}-libressl.patch" |
203 |
- "${FILESDIR}/${P}-fno-common.patch" |
204 |
- "${FILESDIR}/${P}-Makefile.am-Mark-tddl.a-nodist.patch" |
205 |
- "${FILESDIR}/${P}-tcsd-fixes.patch" |
206 |
-) |
207 |
- |
208 |
-DOCS="AUTHORS ChangeLog NICETOHAVES README TODO" |
209 |
- |
210 |
-DOC_CONTENTS=" |
211 |
- If you have problems starting tcsd, please check permissions and |
212 |
- ownership on /dev/tpm* and ~tss/system.data |
213 |
-" |
214 |
-S="${WORKDIR}" |
215 |
- |
216 |
-CONFIG_CHECK="~TCG_TPM" |
217 |
- |
218 |
-src_prepare() { |
219 |
- default |
220 |
- eautoreconf |
221 |
-} |
222 |
- |
223 |
-src_configure() { |
224 |
- # econf --with-gui=$(usex gtk gtk openssl) |
225 |
- econf --with-gui=openssl |
226 |
-} |
227 |
- |
228 |
-src_install() { |
229 |
- default |
230 |
- find "${D}" -name '*.la' -delete || die |
231 |
- |
232 |
- keepdir /var/lib/tpm |
233 |
- use doc && dodoc doc/* |
234 |
- newinitd "${FILESDIR}"/tcsd.initd tcsd |
235 |
- newconfd "${FILESDIR}"/tcsd.confd tcsd |
236 |
- systemd_dounit "${FILESDIR}"/tcsd.service |
237 |
- udev_dorules "${FILESDIR}"/61-trousers.rules |
238 |
- fowners tss:tss /var/lib/tpm |
239 |
- readme.gentoo_create_doc |
240 |
-} |