swtpm/samples/Makefile.am
Stefan Berger c4ac0a11e9 build: remove hardcoded tss user and group
Remove the hardcodes tss user and group and to configure with
--with-tss-user=tss --with-tss-group=tss to set the tss user
and group to be used.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
2015-11-02 20:47:37 -05:00

30 lines
615 B
Makefile

#
# samples/Makefile.am
#
# For the license, see the LICENSE file in the root directory.
#
samplesconfdir = $(datadir)/@PACKAGE@
samplessysconfdir = $(sysconfdir)
samplesconf_SCRIPTS = \
swtpm-localca
samplessysconf_DATA = \
swtpm-localca.conf \
swtpm-localca.options
install-data-local:
$(MKDIR_P) $(DESTDIR)/$(localstatedir)/lib/swtpm-localca
if test -z $(DESTDIR); then \
chown @TSS_USER@:@TSS_GROUP@ $(DESTDIR)/$(localstatedir)/lib/swtpm-localca; \
fi
install-exec:
chmod 755 $(DESTDIR)/$(samplesconfdir)/swtpm-localca
EXTRA_DIST= \
swtpm-localca \
swtpm-localca.conf \
swtpm-localca.options