mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-29 00:55:22 +00:00
93c13f0d93
While not terribly useful in general, tweaking each daemon's timeout (or disabling it off altogether) is a valid use case which we can very easily support while being consistent with what already happens for libvirtd. This is a first step in that direction. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
111 lines
2.9 KiB
Makefile
111 lines
2.9 KiB
Makefile
# vim: filetype=automake
|
|
|
|
SECRET_DRIVER_SOURCES = \
|
|
secret/secret_driver.h \
|
|
secret/secret_driver.c \
|
|
$(NULL)
|
|
|
|
|
|
DRIVER_SOURCE_FILES += $(addprefix $(srcdir)/,$(SECRET_DRIVER_SOURCES))
|
|
STATEFUL_DRIVER_SOURCE_FILES += \
|
|
$(addprefix $(srcdir)/,$(SECRET_DRIVER_SOURCES))
|
|
|
|
EXTRA_DIST += \
|
|
$(SECRET_DRIVER_SOURCES) \
|
|
$(NULL)
|
|
|
|
|
|
if WITH_SECRETS
|
|
mod_LTLIBRARIES += libvirt_driver_secret.la
|
|
libvirt_driver_secret_la_CFLAGS = \
|
|
-I$(srcdir)/access \
|
|
-I$(builddir)/access \
|
|
-I$(srcdir)/conf \
|
|
$(AM_CFLAGS) \
|
|
$(NULL)
|
|
libvirt_driver_secret_la_LIBADD = \
|
|
libvirt.la \
|
|
$(GLIB_LIBS) \
|
|
$(NULL)
|
|
libvirt_driver_secret_la_LDFLAGS = $(AM_LDFLAGS_MOD_NOUNDEF)
|
|
libvirt_driver_secret_la_SOURCES = $(SECRET_DRIVER_SOURCES)
|
|
|
|
sbin_PROGRAMS += virtsecretd
|
|
|
|
nodist_conf_DATA += secret/virtsecretd.conf
|
|
augeas_DATA += secret/virtsecretd.aug
|
|
augeastest_DATA += secret/test_virtsecretd.aug
|
|
CLEANFILES += secret/virtsecretd.aug
|
|
|
|
virtsecretd_SOURCES = $(REMOTE_DAEMON_SOURCES)
|
|
nodist_virtsecretd_SOURCES = $(REMOTE_DAEMON_GENERATED)
|
|
virtsecretd_CFLAGS = \
|
|
$(REMOTE_DAEMON_CFLAGS) \
|
|
-DDAEMON_NAME="\"virtsecretd\"" \
|
|
-DMODULE_NAME="\"secret\"" \
|
|
$(NULL)
|
|
virtsecretd_LDFLAGS = $(REMOTE_DAEMON_LD_FLAGS)
|
|
virtsecretd_LDADD = $(REMOTE_DAEMON_LD_ADD)
|
|
|
|
SYSCONF_FILES += secret/virtsecretd.sysconf
|
|
|
|
SYSTEMD_UNIT_FILES += \
|
|
virtsecretd.service \
|
|
virtsecretd.socket \
|
|
virtsecretd-ro.socket \
|
|
virtsecretd-admin.socket \
|
|
$(NULL)
|
|
SYSTEMD_UNIT_FILES_IN += \
|
|
secret/virtsecretd.service.in \
|
|
$(NULL)
|
|
|
|
OPENRC_INIT_FILES += \
|
|
virtsecretd.init \
|
|
$(NULL)
|
|
OPENRC_INIT_FILES_IN += \
|
|
secret/virtsecretd.init.in \
|
|
$(NULL)
|
|
|
|
VIRTSECRETD_UNIT_VARS = \
|
|
$(VIRTD_UNIT_VARS) \
|
|
-e 's|[@]name[@]|Libvirt secret|g' \
|
|
-e 's|[@]service[@]|virtsecretd|g' \
|
|
-e 's|[@]sockprefix[@]|virtsecretd|g' \
|
|
$(NULL)
|
|
|
|
virtsecretd.init: secret/virtsecretd.init.in $(top_builddir)/config.status
|
|
$(AM_V_GEN)$(SED) $(LIBVIRTD_INIT_VARS) $< > $@-t && mv $@-t $@
|
|
|
|
virtsecretd.service: secret/virtsecretd.service.in \
|
|
$(top_builddir)/config.status
|
|
$(AM_V_GEN)$(SED) $(VIRTSECRETD_UNIT_VARS) $< > $@-t && mv $@-t $@
|
|
|
|
virtsecret%.socket: remote/libvirt%.socket.in \
|
|
$(top_builddir)/config.status
|
|
$(AM_V_GEN)$(SED) $(VIRTSECRETD_UNIT_VARS) $< > $@-t && mv $@-t $@
|
|
|
|
secret/virtsecretd.conf: remote/libvirtd.conf.in
|
|
$(AM_V_GEN)$(SED) \
|
|
-e '/[@]CUT_ENABLE_IP[@]/,/[@]END[@]/d' \
|
|
-e 's/[@]DAEMON_NAME[@]/virtsecretd/' \
|
|
$< > $@
|
|
|
|
secret/virtsecretd.aug: remote/libvirtd.aug.in
|
|
$(AM_V_GEN)$(SED) \
|
|
-e '/[@]CUT_ENABLE_IP[@]/,/[@]END[@]/d' \
|
|
-e 's/[@]DAEMON_NAME[@]/virtsecretd/' \
|
|
-e 's/[@]DAEMON_NAME_UC[@]/Virtsecretd/' \
|
|
$< > $@
|
|
|
|
secret/test_virtsecretd.aug: remote/test_libvirtd.aug.in \
|
|
secret/virtsecretd.conf $(AUG_GENTEST_SCRIPT)
|
|
$(AM_V_GEN)$(AUG_GENTEST) secret/virtsecretd.conf \
|
|
$(srcdir)/remote/test_libvirtd.aug.in | \
|
|
$(SED) \
|
|
-e '/[@]CUT_ENABLE_IP[@]/,/[@]END[@]/d' \
|
|
-e 's/[@]DAEMON_NAME[@]/virtsecretd/' \
|
|
-e 's/[@]DAEMON_NAME_UC[@]/Virtsecretd/' \
|
|
> $@ || rm -f $@
|
|
|
|
endif WITH_SECRETS
|