summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-support/dovecot/dovecot_2.4.3.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-support/dovecot/dovecot_2.4.3.bb')
-rw-r--r--meta-networking/recipes-support/dovecot/dovecot_2.4.3.bb83
1 files changed, 83 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/dovecot/dovecot_2.4.3.bb b/meta-networking/recipes-support/dovecot/dovecot_2.4.3.bb
new file mode 100644
index 0000000000..a8930979ea
--- /dev/null
+++ b/meta-networking/recipes-support/dovecot/dovecot_2.4.3.bb
@@ -0,0 +1,83 @@
1SUMMARY = "Dovecot is an open source IMAP and POP3 email server"
2HOMEPAGE = "https://www.dovecot.org/"
3DESCRIPTION = "Dovecot is an open source IMAP and POP3 email \
4server for Linux/UNIX-like systems, written with security primarily \
5in mind. Dovecot is an excellent choice for both small and large \
6installations. It's fast, simple to set up, requires no special \
7administration and it uses very little memory."
8SECTION = "mail"
9LICENSE = "LGPL-2.1-only & MIT & Unicode-3.0 & BSD-3-Clause & PD"
10LIC_FILES_CHKSUM = "file://COPYING;md5=cb805cc6bdb95ba8fc2398a55fd50877"
11
12SRC_URI = "https://dovecot.org/releases/2.4/dovecot-${PV}.tar.gz \
13 file://0001-configure.ac-convert-AC_TRY_RUN-to-AC_TRY_LINK-state.patch \
14 file://dovecot.service \
15 file://dovecot.socket \
16 file://0001-m4-Check-for-libunwind-instead-of-libunwind-generic.patch \
17 file://0001-adapt-lua_newstate-to-new-api.patch \
18 "
19SRC_URI[sha256sum] = "e0b30330fe51e47ecfcf641bc16041184d91bdd0ac3db789b7cef54e3a75ac9b"
20
21DEPENDS = "openssl xz zlib bzip2 libcap icu libtirpc bison-native"
22CFLAGS += "-I${STAGING_INCDIR}/tirpc"
23LDFLAGS += "-ltirpc"
24
25inherit autotools pkgconfig systemd useradd gettext multilib_header
26
27PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ldap pam systemd', d)}"
28
29PACKAGECONFIG[pam] = "--with-pam,--without-pam,libpam,"
30PACKAGECONFIG[systemd] = "--with-systemd,--without-systemd,systemd,"
31PACKAGECONFIG[ldap] = "--with-ldap=plugin,--without-ldap,openldap,"
32PACKAGECONFIG[lua] = "--with-lua=yes, --without-lua, lua"
33PACKAGECONFIG[lz4] = "--with-lz4,--without-lz4,lz4,"
34
35# From native build in armv7a-hf/eglibc
36CACHED_CONFIGUREVARS += "i_cv_signed_size_t=no \
37 i_cv_gmtime_max_time_t=32 \
38 i_cv_signed_time_t=yes \
39 i_cv_mmap_plays_with_write=yes \
40 i_cv_fd_passing=yes \
41 i_cv_c99_vsnprintf=yes \
42 lib_cv___va_copy=yes \
43 lib_cv_va_copy=yes \
44 lib_cv_va_val_copy=yes \
45 "
46
47# hardcode epoll() to avoid running unsafe tests
48# BSD needs kqueue and uclibc poll()
49EXTRA_OECONF = " --with-ioloop=epoll"
50
51SYSTEMD_PACKAGES = "${PN}"
52SYSTEMD_SERVICE:${PN} = "dovecot.service dovecot.socket"
53SYSTEMD_AUTO_ENABLE = "disable"
54
55do_install:append () {
56 rm -rf ${D}${libdir}/dovecot/dovecot-config
57 install -d 755 ${D}/etc/dovecot
58 chmod 644 ${D}/etc/dovecot/dovecot.conf
59 touch ${D}/etc/dovecot/ssl-key.pem
60 touch ${D}/etc/dovecot/ssl-cert.pem
61 chmod 600 ${D}/etc/dovecot/ssl-key.pem
62 chmod 600 ${D}/etc/dovecot/ssl-cert.pem
63 if [ "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" ]; then
64 install -m 0644 ${UNPACKDIR}/dovecot.service ${D}${systemd_unitdir}/system
65 sed -i -e 's#@SYSCONFDIR@#${sysconfdir}#g' ${D}${systemd_unitdir}/system/dovecot.service
66 sed -i -e 's#@SBINDIR@#${sbindir}#g' ${D}${systemd_unitdir}/system/dovecot.service
67 fi
68 oe_multilib_header dovecot/config.h
69}
70
71USERADD_PACKAGES = "${PN}"
72USERADD_PARAM:${PN} = "-r -d ${libexecdir} -M -s ${base_sbindir}/nologin -g dovecot dovecot; \
73 -r -d ${libexecdir} -M -s ${base_sbindir}/nologin -g dovenull dovenull"
74GROUPADD_PARAM:${PN} = "-f -r dovecot;-f -r dovenull"
75
76FILES:${PN} += "${libdir}/dovecot/*plugin.so \
77 ${libdir}/dovecot/libfs_compress.so \
78 ${libdir}/dovecot/libssl_iostream_openssl.so"
79FILES:${PN}-staticdev += "${libdir}/dovecot/*/*.a"
80FILES:${PN}-dev += "${libdir}/dovecot/libdovecot*.so"
81FILES:${PN}-dbg += "${libdir}/dovecot/*/.debug"
82
83CVE_STATUS[CVE-2016-4983] = "not-applicable-platform: Affects only postinstall script on specific distribution."