diff options
Diffstat (limited to 'debian/patches/01-tss-user.patch')
-rw-r--r-- | debian/patches/01-tss-user.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/debian/patches/01-tss-user.patch b/debian/patches/01-tss-user.patch new file mode 100644 index 0000000..9b22ec0 --- /dev/null +++ b/debian/patches/01-tss-user.patch @@ -0,0 +1,25 @@ +Author: Daniel Baumann <daniel@debian.org> +Description: Avoiding chown/chmod for tss user at build-time. + +--- a/dist/Makefile.am ++++ b/dist/Makefile.am +@@ -2,15 +2,15 @@ + 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 ++# /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 ++# /bin/chown tss:tss ${DESTDIR}/@localstatedir@/lib/tpm || true ++# /bin/chmod 0700 ${DESTDIR}/@localstatedir@/lib/tpm + + uninstall-hook: + /usr/sbin/userdel tss || true |