1 |
commit: 444f087022095af599ca2f9f8e4a8947b7daa3c5 |
2 |
Author: orbea <orbea <AT> riseup <DOT> net> |
3 |
AuthorDate: Tue Jul 5 01:34:36 2022 +0000 |
4 |
Commit: Quentin Retornaz <gentoo <AT> retornaz <DOT> com> |
5 |
CommitDate: Tue Jul 5 21:18:27 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=444f0870 |
7 |
|
8 |
app-crypt/trousers: Merge changes from ::gentoo |
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/files/tcsd.initd | 31 ++++++------------------------- |
14 |
app-crypt/trousers/metadata.xml | 8 ++++---- |
15 |
app-crypt/trousers/trousers-0.3.15.ebuild | 16 ++++++++++++---- |
16 |
3 files changed, 22 insertions(+), 33 deletions(-) |
17 |
|
18 |
diff --git a/app-crypt/trousers/files/tcsd.initd b/app-crypt/trousers/files/tcsd.initd |
19 |
index 3740403..9b18c48 100644 |
20 |
--- a/app-crypt/trousers/files/tcsd.initd |
21 |
+++ b/app-crypt/trousers/files/tcsd.initd |
22 |
@@ -1,38 +1,19 @@ |
23 |
#!/sbin/openrc-run |
24 |
-# Copyright 1999-2021 Gentoo Authors |
25 |
+# Copyright 1999-2022 Gentoo Authors |
26 |
# Distributed under the terms of the GNU General Public License v2 |
27 |
|
28 |
+command=/usr/sbin/tcsd |
29 |
+description="TrouSerS' TCS daemon (tcsd)" |
30 |
+command_user="tss:tss" |
31 |
+ |
32 |
depend() { |
33 |
use logger |
34 |
need net |
35 |
} |
36 |
|
37 |
-checkconfig() { |
38 |
- local mod |
39 |
- if [ -n "${TPM_MODULES}" ] ; then |
40 |
- for mod in ${TPM_MODULES} ; do |
41 |
- lsmod | grep -q "^${mod}\b" \ |
42 |
- || modprobe ${mod} &>/dev/null \ |
43 |
- || ewarn "Failed to load module ${mod}" |
44 |
- done |
45 |
- # Should we sleep or something to wait for device creation? |
46 |
- fi |
47 |
+start_pre() { |
48 |
if [ ! -c /dev/tpm ] && [ ! -c /dev/tpm0 ] ; then |
49 |
eerror "No TPM device found!" |
50 |
return 1 |
51 |
fi |
52 |
- return 0 |
53 |
-} |
54 |
- |
55 |
-start() { |
56 |
- ebegin "Starting TrouSerS' TCS daemon (tcsd)" |
57 |
- checkconfig || eend $? |
58 |
- start-stop-daemon --start --user tss --exec /usr/sbin/tcsd |
59 |
- eend $? |
60 |
-} |
61 |
- |
62 |
-stop() { |
63 |
- ebegin "Stopping TrouSerS' TCS daemon (tcsd)" |
64 |
- start-stop-daemon --stop --quiet --exec /usr/sbin/tcsd --user tss |
65 |
- eend $? |
66 |
} |
67 |
|
68 |
diff --git a/app-crypt/trousers/metadata.xml b/app-crypt/trousers/metadata.xml |
69 |
index 643c6bf..2eceffb 100644 |
70 |
--- a/app-crypt/trousers/metadata.xml |
71 |
+++ b/app-crypt/trousers/metadata.xml |
72 |
@@ -1,11 +1,11 @@ |
73 |
<?xml version="1.0" encoding="UTF-8"?> |
74 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
75 |
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> |
76 |
<pkgmetadata> |
77 |
- <maintainer type="person"> |
78 |
+ <maintainer type="person" proxied="yes"> |
79 |
<email>salah.coronya@×××××.com</email> |
80 |
- <name>Salah Coronya</name> |
81 |
+ <name>Christopher Byrne</name> |
82 |
</maintainer> |
83 |
- <maintainer type="project"> |
84 |
+ <maintainer type="project" proxied="proxy"> |
85 |
<email>proxy-maint@g.o</email> |
86 |
<name>Proxy Maintainers</name> |
87 |
</maintainer> |
88 |
|
89 |
diff --git a/app-crypt/trousers/trousers-0.3.15.ebuild b/app-crypt/trousers/trousers-0.3.15.ebuild |
90 |
index 3a31ad3..6c046bc 100644 |
91 |
--- a/app-crypt/trousers/trousers-0.3.15.ebuild |
92 |
+++ b/app-crypt/trousers/trousers-0.3.15.ebuild |
93 |
@@ -1,4 +1,4 @@ |
94 |
-# Copyright 1999-2021 Gentoo Authors |
95 |
+# Copyright 1999-2022 Gentoo Authors |
96 |
# Distributed under the terms of the GNU General Public License v2 |
97 |
|
98 |
EAPI=7 |
99 |
@@ -11,7 +11,7 @@ SRC_URI="mirror://sourceforge/trousers/${PN}/${P}.tar.gz" |
100 |
|
101 |
LICENSE="CPL-1.0 GPL-2" |
102 |
SLOT="0" |
103 |
-KEYWORDS="~amd64 ~arm ~arm64 ~m68k ~ppc ~ppc64 ~s390 ~x86" |
104 |
+KEYWORDS="amd64 arm arm64 ~m68k ~ppc ppc64 ~riscv ~s390 x86" |
105 |
IUSE="doc selinux" # gtk |
106 |
|
107 |
# gtk support presently does NOT compile. |
108 |
@@ -20,7 +20,8 @@ IUSE="doc selinux" # gtk |
109 |
DEPEND="acct-group/tss |
110 |
acct-user/tss |
111 |
>=dev-libs/glib-2 |
112 |
- >=dev-libs/openssl-0.9.7:0=" |
113 |
+ >=dev-libs/openssl-0.9.7:0= |
114 |
+ " |
115 |
RDEPEND="${DEPEND} |
116 |
selinux? ( sec-policy/selinux-tcsd )" |
117 |
BDEPEND="virtual/pkgconfig" |
118 |
@@ -57,9 +58,16 @@ src_install() { |
119 |
keepdir /var/lib/tpm |
120 |
use doc && dodoc doc/* |
121 |
newinitd "${FILESDIR}"/tcsd.initd tcsd |
122 |
- newconfd "${FILESDIR}"/tcsd.confd tcsd |
123 |
systemd_dounit "${FILESDIR}"/tcsd.service |
124 |
udev_dorules "${FILESDIR}"/61-trousers.rules |
125 |
fowners tss:tss /var/lib/tpm |
126 |
readme.gentoo_create_doc |
127 |
} |
128 |
+ |
129 |
+pkg_postinst() { |
130 |
+ udev_reload |
131 |
+} |
132 |
+ |
133 |
+pkg_postrm() { |
134 |
+ udev_reload |
135 |
+} |