summarylogtreecommitdiffstats
path: root/tss-user.patch
diff options
context:
space:
mode:
Diffstat (limited to 'tss-user.patch')
-rw-r--r--tss-user.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/tss-user.patch b/tss-user.patch
new file mode 100644
index 000000000000..5cfdee6ae9bb
--- /dev/null
+++ b/tss-user.patch
@@ -0,0 +1,46 @@
+--- trousers-0.3.8_ORG/dist/Makefile.am 2012-01-06 12:32:25.855832307 +0100
++++ trousers-0.3.8/dist/Makefile.am 2012-01-06 12:46:18.958344853 +0100
+@@ -2,16 +2,9 @@
+ fedora/fedora.initrd.tcsd
+ install: install-exec-hook
+ if test ! -e ${DESTDIR}/@sysconfdir@/tcsd.conf; then mkdir -p ${DESTDIR}/@sysconfdir@ && cp tcsd.conf ${DESTDIR}/@sysconfdir@; fi
+- /bin/chown tss:tss ${DESTDIR}/@sysconfdir@/tcsd.conf || true
+- /bin/chmod 0600 ${DESTDIR}/@sysconfdir@/tcsd.conf
+
+ install-exec-hook:
+- /usr/sbin/groupadd tss || true
+- /usr/sbin/useradd -r tss -g tss || true
+- /bin/sh -c 'if [ ! -e ${DESTDIR}/@localstatedir@/lib/tpm ];then mkdir -p ${DESTDIR}/@localstatedir@/lib/tpm; fi'
+- /bin/chown tss:tss ${DESTDIR}/@localstatedir@/lib/tpm || true
+- /bin/chmod 0700 ${DESTDIR}/@localstatedir@/lib/tpm
++ @echo "rule install-exec-hook skipped"
+
+ uninstall-hook:
+- /usr/sbin/userdel tss || true
+- /usr/sbin/groupdel tss || true
++ @echo "rule uninstall-hook skipped"
+--- trousers-0.3.8_ORG/dist/Makefile.in 2012-01-06 12:32:25.855832307 +0100
++++ trousers-0.3.8/dist/Makefile.in 2012-01-06 12:42:47.328535153 +0100
+@@ -367,20 +367,11 @@
+
+ install: install-exec-hook
+ if test ! -e ${DESTDIR}/@sysconfdir@/tcsd.conf; then mkdir -p ${DESTDIR}/@sysconfdir@ && cp tcsd.conf ${DESTDIR}/@sysconfdir@; fi
+- /bin/chown tss:tss ${DESTDIR}/@sysconfdir@/tcsd.conf || true
+- /bin/chmod 0600 ${DESTDIR}/@sysconfdir@/tcsd.conf
+
+ install-exec-hook:
+- /usr/sbin/groupadd tss || true
+- /usr/sbin/useradd -r tss -g tss || true
+- /bin/sh -c 'if [ ! -e ${DESTDIR}/@localstatedir@/lib/tpm ];then mkdir -p ${DESTDIR}/@localstatedir@/lib/tpm; fi'
+- /bin/chown tss:tss ${DESTDIR}/@localstatedir@/lib/tpm || true
+- /bin/chmod 0700 ${DESTDIR}/@localstatedir@/lib/tpm
+-
++ @echo "rule install-exec-hook skipped"
+ uninstall-hook:
+- /usr/sbin/userdel tss || true
+- /usr/sbin/groupdel tss || true
+-
++ @echo "rule uninstall-hook skipped"
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.
+ .NOEXPORT: