view src/imap-urlauth/Makefile.am @ 22715:20415dd0b85a

dsync: Add per-mailbox sync lock that is always used. Both importing and exporting gets the lock before they even sync the mailbox. The lock is kept until the import/export finishes. This guarantees that no matter how dsync is run, two dsyncs can't be working on the same mailbox at the same time. This lock is in addition to the optional per-user lock enabled by the -l parameter. If the -l parameter is used, the same lock timeout is used for the per-mailbox lock. Otherwise 30s timeout is used. This should help to avoid email duplication when replication is enabled for public namespaces, and maybe in some other rare situations as well.
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Thu, 28 Dec 2017 14:10:23 +0200
parents 217fb4ca9b5a
children
line wrap: on
line source

pkglibexecdir = $(libexecdir)/dovecot

# Refer to comment in imap-urlauth.c for info on what these binaries are for.
pkglibexec_PROGRAMS = imap-urlauth-login imap-urlauth imap-urlauth-worker

# imap-urlauth-login

imap_urlauth_login_CPPFLAGS = \
	-I$(top_srcdir)/src/lib \
	-I$(top_srcdir)/src/lib-settings \
	-I$(top_srcdir)/src/lib-auth \
	-I$(top_srcdir)/src/lib-master \
	-I$(top_srcdir)/src/login-common

imap_urlauth_login_LDADD = \
	$(LIBDOVECOT_LOGIN) \
	$(LIBDOVECOT) \
	$(SSL_LIBS)
imap_urlauth_login_DEPENDENCIES = \
	$(LIBDOVECOT_LOGIN_DEPS) \
	$(LIBDOVECOT_DEPS)

imap_urlauth_login_SOURCES = \
	imap-urlauth-login.c \
	imap-urlauth-login-settings.c

# imap-urlauth

imap_urlauth_CPPFLAGS = \
	-I$(top_srcdir)/src/lib \
	-I$(top_srcdir)/src/lib-settings \
	-I$(top_srcdir)/src/lib-auth \
	-I$(top_srcdir)/src/lib-master \
	-I$(top_srcdir)/src/lib-dict \
	-DPKG_RUNDIR=\""$(rundir)"\"

imap_urlauth_LDFLAGS = -export-dynamic

imap_urlauth_LDADD = $(LIBDOVECOT)
imap_urlauth_DEPENDENCIES = $(LIBDOVECOT_DEPS)

imap_urlauth_SOURCES = \
	imap-urlauth.c \
	imap-urlauth-client.c \
	imap-urlauth-settings.c

# imap-urlauth-worker

imap_urlauth_worker_CPPFLAGS = \
	-I$(top_srcdir)/src/lib \
	-I$(top_srcdir)/src/lib-auth \
	-I$(top_srcdir)/src/lib-settings \
	-I$(top_srcdir)/src/lib-master \
	-I$(top_srcdir)/src/lib-dict \
	-I$(top_srcdir)/src/imap \
	-I$(top_srcdir)/src/lib-imap \
	-I$(top_srcdir)/src/lib-imap-storage \
	-I$(top_srcdir)/src/lib-imap-urlauth \
	-I$(top_srcdir)/src/lib-mail \
	-I$(top_srcdir)/src/lib-storage \
	-I$(top_srcdir)/src/login-common

imap_urlauth_worker_LDFLAGS = -export-dynamic

urlauth_libs = \
	$(top_builddir)/src/lib-imap-urlauth/libimap-urlauth.la

imap_urlauth_worker_LDADD = $(urlauth_libs) $(LIBDOVECOT_STORAGE) $(LIBDOVECOT)
imap_urlauth_worker_DEPENDENCIES = $(urlauth_libs) $(LIBDOVECOT_STORAGE_DEPS) $(LIBDOVECOT_DEPS)

imap_urlauth_worker_SOURCES = \
	imap-urlauth-worker.c \
	imap-urlauth-worker-settings.c

noinst_HEADERS = \
	imap-urlauth-client.h \
	imap-urlauth-common.h \
	imap-urlauth-settings.h \
	imap-urlauth-login-settings.h \
	imap-urlauth-worker-settings.h