From 05fe4e2bfc5a1b278e367b355e601c81183eecf2 Mon Sep 17 00:00:00 2001 From: Wang Mingyu Date: Tue, 19 May 2026 19:38:47 +0800 Subject: dovecot: upgrade 2.4.3 -> 2.4.4 Signed-off-by: Wang Mingyu Signed-off-by: Khem Raj --- .../recipes-support/dovecot/dovecot_2.4.3.bb | 88 ---------------------- .../recipes-support/dovecot/dovecot_2.4.4.bb | 88 ++++++++++++++++++++++ 2 files changed, 88 insertions(+), 88 deletions(-) delete mode 100644 meta-networking/recipes-support/dovecot/dovecot_2.4.3.bb create mode 100644 meta-networking/recipes-support/dovecot/dovecot_2.4.4.bb diff --git a/meta-networking/recipes-support/dovecot/dovecot_2.4.3.bb b/meta-networking/recipes-support/dovecot/dovecot_2.4.3.bb deleted file mode 100644 index a6b78ea781..0000000000 --- a/meta-networking/recipes-support/dovecot/dovecot_2.4.3.bb +++ /dev/null @@ -1,88 +0,0 @@ -SUMMARY = "Dovecot is an open source IMAP and POP3 email server" -HOMEPAGE = "https://www.dovecot.org/" -DESCRIPTION = "Dovecot is an open source IMAP and POP3 email \ -server for Linux/UNIX-like systems, written with security primarily \ -in mind. Dovecot is an excellent choice for both small and large \ -installations. It's fast, simple to set up, requires no special \ -administration and it uses very little memory." -SECTION = "mail" -LICENSE = "LGPL-2.1-only & MIT & Unicode-3.0 & BSD-3-Clause & PD" -LIC_FILES_CHKSUM = "file://COPYING;md5=cb805cc6bdb95ba8fc2398a55fd50877" - -SRC_URI = "https://dovecot.org/releases/2.4/dovecot-${PV}.tar.gz \ - file://0001-configure.ac-convert-AC_TRY_RUN-to-AC_TRY_LINK-state.patch \ - file://dovecot.service \ - file://dovecot.socket \ - file://0001-m4-Check-for-libunwind-instead-of-libunwind-generic.patch \ - file://0001-adapt-lua_newstate-to-new-api.patch \ - " -SRC_URI[sha256sum] = "ff0be85228122f250627b19e67505fdb7fb2f72a702ef6bf35f27fce54c072e5" - -DEPENDS = "openssl xz zlib bzip2 libcap icu libtirpc bison-native" -CFLAGS += "-I${STAGING_INCDIR}/tirpc" -LDFLAGS += "-ltirpc" - -inherit autotools pkgconfig systemd useradd gettext multilib_header - -PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ldap pam systemd', d)}" - -PACKAGECONFIG[pam] = "--with-pam,--without-pam,libpam," -PACKAGECONFIG[systemd] = "--with-systemd,--without-systemd,systemd," -PACKAGECONFIG[ldap] = "--with-ldap=plugin,--without-ldap,openldap," -PACKAGECONFIG[lua] = "--with-lua=yes, --without-lua, lua" -PACKAGECONFIG[lz4] = "--with-lz4,--without-lz4,lz4," - -# From native build in armv7a-hf/eglibc -CACHED_CONFIGUREVARS += "i_cv_signed_size_t=no \ - i_cv_gmtime_max_time_t=32 \ - i_cv_signed_time_t=yes \ - i_cv_mmap_plays_with_write=yes \ - i_cv_fd_passing=yes \ - i_cv_c99_vsnprintf=yes \ - lib_cv___va_copy=yes \ - lib_cv_va_copy=yes \ - lib_cv_va_val_copy=yes \ - " - -# hardcode epoll() to avoid running unsafe tests -# BSD needs kqueue and uclibc poll() -EXTRA_OECONF = " --with-ioloop=epoll" - -SYSTEMD_PACKAGES = "${PN}" -SYSTEMD_SERVICE:${PN} = "dovecot.service dovecot.socket" -SYSTEMD_AUTO_ENABLE = "disable" - -do_install:append () { - rm -rf ${D}${libdir}/dovecot/dovecot-config - install -d 755 ${D}/etc/dovecot - chmod 644 ${D}/etc/dovecot/dovecot.conf - touch ${D}/etc/dovecot/ssl-key.pem - touch ${D}/etc/dovecot/ssl-cert.pem - chmod 600 ${D}/etc/dovecot/ssl-key.pem - chmod 600 ${D}/etc/dovecot/ssl-cert.pem - if [ "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" ]; then - install -m 0644 ${UNPACKDIR}/dovecot.service ${D}${systemd_unitdir}/system - sed -i -e 's#@SYSCONFDIR@#${sysconfdir}#g' ${D}${systemd_unitdir}/system/dovecot.service - sed -i -e 's#@SBINDIR@#${sbindir}#g' ${D}${systemd_unitdir}/system/dovecot.service - fi - oe_multilib_header dovecot/config.h -} - -USERADD_PACKAGES = "${PN}" -USERADD_PARAM:${PN} = "-r -d ${libexecdir} -M -s ${base_sbindir}/nologin -g dovecot dovecot; \ - -r -d ${libexecdir} -M -s ${base_sbindir}/nologin -g dovenull dovenull" -GROUPADD_PARAM:${PN} = "-f -r dovecot;-f -r dovenull" - -FILES:${PN} += "${libdir}/dovecot/*plugin.so \ - ${libdir}/dovecot/libfs_compress.so \ - ${libdir}/dovecot/libssl_iostream_openssl.so" -FILES:${PN}-staticdev += "${libdir}/dovecot/*/*.a" -FILES:${PN}-dev += "${libdir}/dovecot/libdovecot*.so" -FILES:${PN}-dbg += "${libdir}/dovecot/*/.debug" - -CVE_STATUS[CVE-2016-4983] = "not-applicable-platform: Affects only postinstall script on specific distribution." -CVE_STATUS[CVE-2025-59031] = "fixed-version: fixed since v2.4.2" -CVE_STATUS[CVE-2026-0394] = "fixed-version: fixed since v2.4.1" -CVE_STATUS[CVE-2026-24031] = "fixed-version: fixed since v2.4.3" -CVE_STATUS[CVE-2026-27855] = "fixed-version: fixed since v2.4.3" -CVE_STATUS[CVE-2026-27860] = "fixed-version: fixed since v2.4.3" diff --git a/meta-networking/recipes-support/dovecot/dovecot_2.4.4.bb b/meta-networking/recipes-support/dovecot/dovecot_2.4.4.bb new file mode 100644 index 0000000000..6cac8de964 --- /dev/null +++ b/meta-networking/recipes-support/dovecot/dovecot_2.4.4.bb @@ -0,0 +1,88 @@ +SUMMARY = "Dovecot is an open source IMAP and POP3 email server" +HOMEPAGE = "https://www.dovecot.org/" +DESCRIPTION = "Dovecot is an open source IMAP and POP3 email \ +server for Linux/UNIX-like systems, written with security primarily \ +in mind. Dovecot is an excellent choice for both small and large \ +installations. It's fast, simple to set up, requires no special \ +administration and it uses very little memory." +SECTION = "mail" +LICENSE = "LGPL-2.1-only & MIT & Unicode-3.0 & BSD-3-Clause & PD" +LIC_FILES_CHKSUM = "file://COPYING;md5=cb805cc6bdb95ba8fc2398a55fd50877" + +SRC_URI = "https://dovecot.org/releases/2.4/dovecot-${PV}.tar.gz \ + file://0001-configure.ac-convert-AC_TRY_RUN-to-AC_TRY_LINK-state.patch \ + file://dovecot.service \ + file://dovecot.socket \ + file://0001-m4-Check-for-libunwind-instead-of-libunwind-generic.patch \ + file://0001-adapt-lua_newstate-to-new-api.patch \ + " +SRC_URI[sha256sum] = "670f98d55a29b02ae6a97281e51374e553b94496480ab0a07439571ab30ca8c3" + +DEPENDS = "openssl xz zlib bzip2 libcap icu libtirpc bison-native" +CFLAGS += "-I${STAGING_INCDIR}/tirpc" +LDFLAGS += "-ltirpc" + +inherit autotools pkgconfig systemd useradd gettext multilib_header + +PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ldap pam systemd', d)}" + +PACKAGECONFIG[pam] = "--with-pam,--without-pam,libpam," +PACKAGECONFIG[systemd] = "--with-systemd,--without-systemd,systemd," +PACKAGECONFIG[ldap] = "--with-ldap=plugin,--without-ldap,openldap," +PACKAGECONFIG[lua] = "--with-lua=yes, --without-lua, lua" +PACKAGECONFIG[lz4] = "--with-lz4,--without-lz4,lz4," + +# From native build in armv7a-hf/eglibc +CACHED_CONFIGUREVARS += "i_cv_signed_size_t=no \ + i_cv_gmtime_max_time_t=32 \ + i_cv_signed_time_t=yes \ + i_cv_mmap_plays_with_write=yes \ + i_cv_fd_passing=yes \ + i_cv_c99_vsnprintf=yes \ + lib_cv___va_copy=yes \ + lib_cv_va_copy=yes \ + lib_cv_va_val_copy=yes \ + " + +# hardcode epoll() to avoid running unsafe tests +# BSD needs kqueue and uclibc poll() +EXTRA_OECONF = " --with-ioloop=epoll" + +SYSTEMD_PACKAGES = "${PN}" +SYSTEMD_SERVICE:${PN} = "dovecot.service dovecot.socket" +SYSTEMD_AUTO_ENABLE = "disable" + +do_install:append () { + rm -rf ${D}${libdir}/dovecot/dovecot-config + install -d 755 ${D}/etc/dovecot + chmod 644 ${D}/etc/dovecot/dovecot.conf + touch ${D}/etc/dovecot/ssl-key.pem + touch ${D}/etc/dovecot/ssl-cert.pem + chmod 600 ${D}/etc/dovecot/ssl-key.pem + chmod 600 ${D}/etc/dovecot/ssl-cert.pem + if [ "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" ]; then + install -m 0644 ${UNPACKDIR}/dovecot.service ${D}${systemd_unitdir}/system + sed -i -e 's#@SYSCONFDIR@#${sysconfdir}#g' ${D}${systemd_unitdir}/system/dovecot.service + sed -i -e 's#@SBINDIR@#${sbindir}#g' ${D}${systemd_unitdir}/system/dovecot.service + fi + oe_multilib_header dovecot/config.h +} + +USERADD_PACKAGES = "${PN}" +USERADD_PARAM:${PN} = "-r -d ${libexecdir} -M -s ${base_sbindir}/nologin -g dovecot dovecot; \ + -r -d ${libexecdir} -M -s ${base_sbindir}/nologin -g dovenull dovenull" +GROUPADD_PARAM:${PN} = "-f -r dovecot;-f -r dovenull" + +FILES:${PN} += "${libdir}/dovecot/*plugin.so \ + ${libdir}/dovecot/libfs_compress.so \ + ${libdir}/dovecot/libssl_iostream_openssl.so" +FILES:${PN}-staticdev += "${libdir}/dovecot/*/*.a" +FILES:${PN}-dev += "${libdir}/dovecot/libdovecot*.so" +FILES:${PN}-dbg += "${libdir}/dovecot/*/.debug" + +CVE_STATUS[CVE-2016-4983] = "not-applicable-platform: Affects only postinstall script on specific distribution." +CVE_STATUS[CVE-2025-59031] = "fixed-version: fixed since v2.4.2" +CVE_STATUS[CVE-2026-0394] = "fixed-version: fixed since v2.4.1" +CVE_STATUS[CVE-2026-24031] = "fixed-version: fixed since v2.4.3" +CVE_STATUS[CVE-2026-27855] = "fixed-version: fixed since v2.4.3" +CVE_STATUS[CVE-2026-27860] = "fixed-version: fixed since v2.4.3" -- cgit v1.2.3-54-g00ecf