diff options
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.bb | 83 |
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 @@ | |||
| 1 | SUMMARY = "Dovecot is an open source IMAP and POP3 email server" | ||
| 2 | HOMEPAGE = "https://www.dovecot.org/" | ||
| 3 | DESCRIPTION = "Dovecot is an open source IMAP and POP3 email \ | ||
| 4 | server for Linux/UNIX-like systems, written with security primarily \ | ||
| 5 | in mind. Dovecot is an excellent choice for both small and large \ | ||
| 6 | installations. It's fast, simple to set up, requires no special \ | ||
| 7 | administration and it uses very little memory." | ||
| 8 | SECTION = "mail" | ||
| 9 | LICENSE = "LGPL-2.1-only & MIT & Unicode-3.0 & BSD-3-Clause & PD" | ||
| 10 | LIC_FILES_CHKSUM = "file://COPYING;md5=cb805cc6bdb95ba8fc2398a55fd50877" | ||
| 11 | |||
| 12 | SRC_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 | " | ||
| 19 | SRC_URI[sha256sum] = "e0b30330fe51e47ecfcf641bc16041184d91bdd0ac3db789b7cef54e3a75ac9b" | ||
| 20 | |||
| 21 | DEPENDS = "openssl xz zlib bzip2 libcap icu libtirpc bison-native" | ||
| 22 | CFLAGS += "-I${STAGING_INCDIR}/tirpc" | ||
| 23 | LDFLAGS += "-ltirpc" | ||
| 24 | |||
| 25 | inherit autotools pkgconfig systemd useradd gettext multilib_header | ||
| 26 | |||
| 27 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ldap pam systemd', d)}" | ||
| 28 | |||
| 29 | PACKAGECONFIG[pam] = "--with-pam,--without-pam,libpam," | ||
| 30 | PACKAGECONFIG[systemd] = "--with-systemd,--without-systemd,systemd," | ||
| 31 | PACKAGECONFIG[ldap] = "--with-ldap=plugin,--without-ldap,openldap," | ||
| 32 | PACKAGECONFIG[lua] = "--with-lua=yes, --without-lua, lua" | ||
| 33 | PACKAGECONFIG[lz4] = "--with-lz4,--without-lz4,lz4," | ||
| 34 | |||
| 35 | # From native build in armv7a-hf/eglibc | ||
| 36 | CACHED_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() | ||
| 49 | EXTRA_OECONF = " --with-ioloop=epoll" | ||
| 50 | |||
| 51 | SYSTEMD_PACKAGES = "${PN}" | ||
| 52 | SYSTEMD_SERVICE:${PN} = "dovecot.service dovecot.socket" | ||
| 53 | SYSTEMD_AUTO_ENABLE = "disable" | ||
| 54 | |||
| 55 | do_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 | |||
| 71 | USERADD_PACKAGES = "${PN}" | ||
| 72 | USERADD_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" | ||
| 74 | GROUPADD_PARAM:${PN} = "-f -r dovecot;-f -r dovenull" | ||
| 75 | |||
| 76 | FILES:${PN} += "${libdir}/dovecot/*plugin.so \ | ||
| 77 | ${libdir}/dovecot/libfs_compress.so \ | ||
| 78 | ${libdir}/dovecot/libssl_iostream_openssl.so" | ||
| 79 | FILES:${PN}-staticdev += "${libdir}/dovecot/*/*.a" | ||
| 80 | FILES:${PN}-dev += "${libdir}/dovecot/libdovecot*.so" | ||
| 81 | FILES:${PN}-dbg += "${libdir}/dovecot/*/.debug" | ||
| 82 | |||
| 83 | CVE_STATUS[CVE-2016-4983] = "not-applicable-platform: Affects only postinstall script on specific distribution." | ||
