1 |
commit: 4f7b2b7290b8275eec8e84bf9b50a122c5169e9a |
2 |
Author: Michael Mair-Keimberger (asterix) <m.mairkeimberger <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Jul 3 17:22:59 2016 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jul 7 07:18:50 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f7b2b72 |
7 |
|
8 |
app-crypt/tpm-emulator: remove unused patches |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/1826 |
11 |
|
12 |
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org> |
13 |
|
14 |
app-crypt/tpm-emulator/files/tpm-emulator.initd | 54 ------------------------- |
15 |
app-crypt/tpm-emulator/files/tpm-emulator.udev | 1 - |
16 |
2 files changed, 55 deletions(-) |
17 |
|
18 |
diff --git a/app-crypt/tpm-emulator/files/tpm-emulator.initd b/app-crypt/tpm-emulator/files/tpm-emulator.initd |
19 |
deleted file mode 100644 |
20 |
index 6b2a648..0000000 |
21 |
--- a/app-crypt/tpm-emulator/files/tpm-emulator.initd |
22 |
+++ /dev/null |
23 |
@@ -1,54 +0,0 @@ |
24 |
-#!/sbin/openrc-run |
25 |
-# Copyright 1999-2005 Gentoo Foundation |
26 |
-# Distributed under the terms of the GNU General Public License v2 |
27 |
-# $Id$ |
28 |
- |
29 |
-opts="save clear deactivated" |
30 |
- |
31 |
-STARTUP_MODE='save'; |
32 |
- |
33 |
- |
34 |
-depend() { |
35 |
- use logger |
36 |
- after coldplug |
37 |
-} |
38 |
- |
39 |
-checkconfig() { |
40 |
- lsmod | grep -q "^tpmd_dev\b" \ |
41 |
- || modprobe tpmd_dev &>/dev/null \ |
42 |
- || eerror "Failed to load module tpmd_dev"; |
43 |
- |
44 |
- if [ ! -c /dev/tpm ] && [ ! -c /dev/tpm0 ] ; then |
45 |
- eerror "No TPM device found!" |
46 |
- return 1 |
47 |
- fi |
48 |
- return 0 |
49 |
-} |
50 |
- |
51 |
-start() { |
52 |
- ebegin "Starting tpm-emulator daemon with mode '$STARTUP_MODE' (tpmd)" |
53 |
- checkconfig || eend $? |
54 |
- start-stop-daemon --start --chuid tss --exec /usr/sbin/tpmd $STARTUP_MODE > /dev/null |
55 |
- eend $? |
56 |
-} |
57 |
- |
58 |
-save() { |
59 |
- STARTUP_MODE='save'; |
60 |
- svc_restart |
61 |
-} |
62 |
- |
63 |
-clear() { |
64 |
- STARTUP_MODE='clear'; |
65 |
- svc_restart |
66 |
-} |
67 |
- |
68 |
-deactivated() { |
69 |
- STARTUP_MODE='deactivated'; |
70 |
- svc_restart |
71 |
-} |
72 |
- |
73 |
-stop() { |
74 |
- ebegin "Stopping tpm-emulator daemon (tpmd)" |
75 |
- start-stop-daemon --stop --exec /usr/sbin/tpmd --user tss > /dev/null |
76 |
- eend $? |
77 |
-} |
78 |
|
79 |
diff --git a/app-crypt/tpm-emulator/files/tpm-emulator.udev b/app-crypt/tpm-emulator/files/tpm-emulator.udev |
80 |
deleted file mode 100644 |
81 |
index ca053b9..0000000 |
82 |
--- a/app-crypt/tpm-emulator/files/tpm-emulator.udev |
83 |
+++ /dev/null |
84 |
@@ -1 +0,0 @@ |
85 |
-KERNEL=="tpm", NAME="%k", SYMLINK+="tpm0", GROUP="tss", MODE="0660" |