diff options
Diffstat (limited to 'meta-openembedded/meta-networking/recipes-support/dovecot/dovecot')
4 files changed, 132 insertions, 0 deletions
diff --git a/meta-openembedded/meta-networking/recipes-support/dovecot/dovecot/0001-configure.ac-convert-AC_TRY_RUN-to-AC_TRY_LINK-state.patch b/meta-openembedded/meta-networking/recipes-support/dovecot/dovecot/0001-configure.ac-convert-AC_TRY_RUN-to-AC_TRY_LINK-state.patch new file mode 100644 index 000000000..f86235076 --- /dev/null +++ b/meta-openembedded/meta-networking/recipes-support/dovecot/dovecot/0001-configure.ac-convert-AC_TRY_RUN-to-AC_TRY_LINK-state.patch @@ -0,0 +1,66 @@ +From 07150f3a27681e034f18ab2ed2b68914c1e10af6 Mon Sep 17 00:00:00 2001 +From: Li xin <lixin.fnst@cn.fujitsu.com> +Date: Sat, 18 Jul 2015 05:03:57 +0900 +Subject: [PATCH] configure.ac: convert AC_TRY_RUN to AC_TRY_LINK statements + +This is not completely safe, but it's the least invasive fix. + +Upstream-Status: pending + +Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> +Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com> +--- + configure.ac | 15 +++++---------- + 1 file changed, 5 insertions(+), 10 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 3b32614..94ec002 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -519,13 +519,10 @@ have_ioloop=no + + if test "$ioloop" = "best" || test "$ioloop" = "epoll"; then + AC_CACHE_CHECK([whether we can use epoll],i_cv_epoll_works,[ +- AC_TRY_RUN([ ++ AC_TRY_LINK([ + #include <sys/epoll.h> +- +- int main() +- { +- return epoll_create(5) < 1; +- } ++ ], [ ++ epoll_create(5) < 1; + ], [ + i_cv_epoll_works=yes + ], [ +@@ -653,7 +650,7 @@ fi + dnl * Old glibcs have broken posix_fallocate(). Make sure not to use it. + dnl * It may also be broken in AIX. + AC_CACHE_CHECK([whether posix_fallocate() works],i_cv_posix_fallocate_works,[ +- AC_TRY_RUN([ ++ AC_TRY_LINK([ + #define _XOPEN_SOURCE 600 + #include <stdio.h> + #include <stdlib.h> +@@ -662,7 +659,7 @@ AC_CACHE_CHECK([whether posix_fallocate() works],i_cv_posix_fallocate_works,[ + #if defined(__GLIBC__) && (__GLIBC__ < 2 || __GLIBC_MINOR__ < 7) + possibly broken posix_fallocate + #endif +- int main() { ++ ], [ + int fd = creat("conftest.temp", 0600); + int ret; + if (fd == -1) { +@@ -671,8 +668,6 @@ AC_CACHE_CHECK([whether posix_fallocate() works],i_cv_posix_fallocate_works,[ + } + ret = posix_fallocate(fd, 1024, 1024) < 0 ? 1 : 0; + unlink("conftest.temp"); +- return ret; +- } + ], [ + i_cv_posix_fallocate_works=yes + ], [ +-- +1.8.4.2 + diff --git a/meta-openembedded/meta-networking/recipes-support/dovecot/dovecot/0001-doveadm-Fix-parallel-build.patch b/meta-openembedded/meta-networking/recipes-support/dovecot/dovecot/0001-doveadm-Fix-parallel-build.patch new file mode 100644 index 000000000..65ae9bf91 --- /dev/null +++ b/meta-openembedded/meta-networking/recipes-support/dovecot/dovecot/0001-doveadm-Fix-parallel-build.patch @@ -0,0 +1,38 @@ +From be9b3809b86fe593dbb16f0b981b3d315a27b799 Mon Sep 17 00:00:00 2001 +From: Khem Raj <raj.khem@gmail.com> +Date: Sun, 22 Oct 2017 22:10:41 -0700 +Subject: [PATCH] doveadm: Fix parallel build + +Sometimes dovetail build fails with errors like + +doveadm-util.o: file not recognized: File truncated +collect2: error: ld returned 1 exit status +make[4]: *** [Makefile:812: test-doveadm-util] Error 1 + +This is partial backport from + +https://github.com/dovecot/core/commit/b200bc3875fa06d42c8619865cc306c3297fcacc + +Signed-off-by: Khem Raj <raj.khem@gmail.com> +--- + src/doveadm/Makefile.am | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/doveadm/Makefile.am b/src/doveadm/Makefile.am +index c644646..6ae9144 100644 +--- a/src/doveadm/Makefile.am ++++ b/src/doveadm/Makefile.am +@@ -180,8 +180,8 @@ test_libs = \ + ../lib/liblib.la + test_deps = $(noinst_LTLIBRARIES) $(test_libs) + +-test_doveadm_util_SOURCES = test-doveadm-util.c +-test_doveadm_util_LDADD = doveadm-util.o $(test_libs) $(MODULE_LIBS) ++test_doveadm_util_SOURCES = doveadm-util.c test-doveadm-util.c ++test_doveadm_util_LDADD = $(test_libs) $(MODULE_LIBS) + test_doveadm_util_DEPENDENCIES = $(test_deps) + + check: check-am check-test +-- +2.14.2 + diff --git a/meta-openembedded/meta-networking/recipes-support/dovecot/dovecot/dovecot.service b/meta-openembedded/meta-networking/recipes-support/dovecot/dovecot/dovecot.service new file mode 100644 index 000000000..ca250ea5d --- /dev/null +++ b/meta-openembedded/meta-networking/recipes-support/dovecot/dovecot/dovecot.service @@ -0,0 +1,14 @@ +[Unit] +Description=Dovecot IMAP/POP3 email server +After=local-fs.target network.target + +[Service] +Type=simple +EnvironmentFile=-@SYSCONFDIR@/sysconfig/dovecot +ExecStart=@SBINDIR@/dovecot -F +ExecReload=/bin/kill -HUP $MAINPID +NonBlocking=yes + +[Install] +WantedBy=multi-user.target + diff --git a/meta-openembedded/meta-networking/recipes-support/dovecot/dovecot/dovecot.socket b/meta-openembedded/meta-networking/recipes-support/dovecot/dovecot/dovecot.socket new file mode 100644 index 000000000..556e1a850 --- /dev/null +++ b/meta-openembedded/meta-networking/recipes-support/dovecot/dovecot/dovecot.socket @@ -0,0 +1,14 @@ +[Unit] +Description=Dovecot IMAP/POP3 email server activation socket + +[Socket] +#dovecot expects separate IPv4 and IPv6 sockets +BindIPv6Only=ipv6-only +ListenStream=0.0.0.0:143 +ListenStream=[::]:143 +ListenStream=0.0.0.0:993 +ListenStream=[::]:993 +KeepAlive=true + +[Install] +WantedBy=sockets.target |