File: swtpm-install-sysusers.d-and-tmpfiles.d-configs.patch

package info (click to toggle)
swtpm 0.10.1%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,008 kB
  • sloc: ansic: 20,787; sh: 14,667; makefile: 760; python: 173
file content (57 lines) | stat: -rw-r--r-- 1,527 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
Author: Luca Boccassi <luca.boccassi@gmail.com>
Forwarded: https://github.com/stefanberger/swtpm/pull/1056
Description: install sysusers.d and tmpfiles.d configs
--- a/.gitignore
+++ b/.gitignore
@@ -63,6 +63,8 @@
 /src/swtpm_ioctl/swtpm_ioctl
 /src/swtpm_localca/swtpm_localca
 /src/swtpm_setup/swtpm_setup
+/src/swtpm-sysusers.conf
+/src/swtpm-tmpfiles.conf
 /src/utils/swtpm_conf.h
 /test-driver
 tests/*.log
--- a/configure.ac
+++ b/configure.ac
@@ -616,7 +616,6 @@
 AC_SUBST([MY_LDFLAGS])
 
 AC_CONFIG_FILES([Makefile                   \
-		debian/swtpm-tools.postinst \
 		swtpm.spec                  \
 		samples/Makefile            \
 		samples/swtpm-localca.conf  \
@@ -635,6 +634,8 @@
 		src/swtpm_ioctl/Makefile    \
 		src/swtpm_localca/Makefile  \
 		src/swtpm_setup/Makefile    \
+		src/swtpm-sysusers.conf     \
+		src/swtpm-tmpfiles.conf     \
 		src/utils/Makefile          \
 		src/utils/swtpm_conf.h      \
 		man/Makefile                \
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -17,3 +17,13 @@
 SUBDIRS += \
 	selinux
 endif
+
+sysusersdir = $(prefix)/lib/sysusers.d
+sysusers_DATA = swtpm-sysusers.conf
+
+tmpfilesdir = $(prefix)/lib/tmpfiles.d
+tmpfiles_DATA = swtpm-tmpfiles.conf
+
+EXTRA_DIST = \
+	swtpm-sysusers.conf \
+	swtpm-tmpfiles.conf
--- /dev/null
+++ b/src/swtpm-sysusers.conf.in
@@ -0,0 +1 @@
+u! @TSS_USER@ - "TPM software stack" @LOCALSTATEDIR@/lib/swtpm-localca
--- /dev/null
+++ b/src/swtpm-tmpfiles.conf.in
@@ -0,0 +1 @@
+d @LOCALSTATEDIR@/lib/swtpm-localca 0750 @TSS_USER@ root