diff options
author | Pierre Chifflier <pollux@debian.org> | 2012-07-05 20:56:13 +0200 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2012-11-25 14:36:22 +0000 |
commit | 0069ef22ba877f2a5dddfb8722757f5c3577b661 (patch) | |
tree | 58fc42bd7267686730ce267fcf71142255b9e9bc /debian/patches/01-tss-user.patch | |
parent | c3649a2def02c41d837ae1f79dda729ccb91e677 (diff) | |
download | trousers-4ccfdbedf9ec8815b83ab70804acdb7ab20c7e8e.tar.gz |
Imported Debian patch 0.3.9-3debian/0.3.9-3
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 |