diff options
-rw-r--r-- | meta-networking/recipes-support/dovecot/dovecot_2.3.20.bb (renamed from meta-networking/recipes-support/dovecot/dovecot_2.3.14.bb) | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/meta-networking/recipes-support/dovecot/dovecot_2.3.14.bb b/meta-networking/recipes-support/dovecot/dovecot_2.3.20.bb index d8c483191f..7729bb4a8b 100644 --- a/meta-networking/recipes-support/dovecot/dovecot_2.3.14.bb +++ b/meta-networking/recipes-support/dovecot/dovecot_2.3.20.bb | |||
@@ -12,9 +12,7 @@ SRC_URI = "http://dovecot.org/releases/2.3/dovecot-${PV}.tar.gz \ | |||
12 | file://0001-not-check-pandoc.patch \ | 12 | file://0001-not-check-pandoc.patch \ |
13 | file://0001-m4-Check-for-libunwind-instead-of-libunwind-generic.patch \ | 13 | file://0001-m4-Check-for-libunwind-instead-of-libunwind-generic.patch \ |
14 | " | 14 | " |
15 | 15 | SRC_URI[sha256sum] = "caa832eb968148abdf35ee9d0f534b779fa732c0ce4a913d9ab8c3469b218552" | |
16 | SRC_URI[md5sum] = "2f03532cec3280ae45a101a7a55ccef5" | ||
17 | SRC_URI[sha256sum] = "c8b3d7f3af1e558a3ff0f970309d4013a4d3ce136f8c02a53a3b05f345b9a34a" | ||
18 | 16 | ||
19 | DEPENDS = "openssl xz zlib bzip2 libcap icu libtirpc bison-native" | 17 | DEPENDS = "openssl xz zlib bzip2 libcap icu libtirpc bison-native" |
20 | CFLAGS += "-I${STAGING_INCDIR}/tirpc" | 18 | CFLAGS += "-I${STAGING_INCDIR}/tirpc" |
@@ -22,9 +20,10 @@ LDFLAGS += "-ltirpc" | |||
22 | 20 | ||
23 | inherit autotools pkgconfig systemd useradd gettext | 21 | inherit autotools pkgconfig systemd useradd gettext |
24 | 22 | ||
25 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ldap pam', d)}" | 23 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ldap pam systemd', d)}" |
26 | 24 | ||
27 | PACKAGECONFIG[pam] = "--with-pam,--without-pam,libpam," | 25 | PACKAGECONFIG[pam] = "--with-pam,--without-pam,libpam," |
26 | PACKAGECONFIG[systemd] = "--with-systemd,--without-systemd,systemd," | ||
28 | PACKAGECONFIG[ldap] = "--with-ldap=plugin,--without-ldap,openldap," | 27 | PACKAGECONFIG[ldap] = "--with-ldap=plugin,--without-ldap,openldap," |
29 | PACKAGECONFIG[lz4] = "--with-lz4,--without-lz4,lz4," | 28 | PACKAGECONFIG[lz4] = "--with-lz4,--without-lz4,lz4," |
30 | 29 | ||
@@ -42,12 +41,7 @@ CACHED_CONFIGUREVARS += "i_cv_signed_size_t=no \ | |||
42 | 41 | ||
43 | # hardcode epoll() to avoid running unsafe tests | 42 | # hardcode epoll() to avoid running unsafe tests |
44 | # BSD needs kqueue and uclibc poll() | 43 | # BSD needs kqueue and uclibc poll() |
45 | EXTRA_OECONF = " --with-ioloop=epoll \ | 44 | EXTRA_OECONF = " --with-ioloop=epoll" |
46 | --with-systemdsystemunitdir=${systemd_unitdir}/system" | ||
47 | |||
48 | # Uses hidden symbols | ||
49 | # libssl_iostream_openssl.so: undefined reference to `ssl_iostream_handshake' | ||
50 | LTO = "" | ||
51 | 45 | ||
52 | SYSTEMD_PACKAGES = "${PN}" | 46 | SYSTEMD_PACKAGES = "${PN}" |
53 | SYSTEMD_SERVICE:${PN} = "dovecot.service dovecot.socket" | 47 | SYSTEMD_SERVICE:${PN} = "dovecot.service dovecot.socket" |
@@ -56,9 +50,11 @@ SYSTEMD_AUTO_ENABLE = "disable" | |||
56 | do_install:append () { | 50 | do_install:append () { |
57 | install -d 755 ${D}/etc/dovecot | 51 | install -d 755 ${D}/etc/dovecot |
58 | touch 644 ${D}/etc/dovecot/dovecot.conf | 52 | touch 644 ${D}/etc/dovecot/dovecot.conf |
59 | install -m 0644 ${WORKDIR}/dovecot.service ${D}${systemd_unitdir}/system | 53 | if [ "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" ]; then |
60 | sed -i -e 's#@SYSCONFDIR@#${sysconfdir}#g' ${D}${systemd_unitdir}/system/dovecot.service | 54 | install -m 0644 ${WORKDIR}/dovecot.service ${D}${systemd_unitdir}/system |
61 | sed -i -e 's#@SBINDIR@#${sbindir}#g' ${D}${systemd_unitdir}/system/dovecot.service | 55 | sed -i -e 's#@SYSCONFDIR@#${sysconfdir}#g' ${D}${systemd_unitdir}/system/dovecot.service |
56 | sed -i -e 's#@SBINDIR@#${sbindir}#g' ${D}${systemd_unitdir}/system/dovecot.service | ||
57 | fi | ||
62 | } | 58 | } |
63 | 59 | ||
64 | USERADD_PACKAGES = "${PN}" | 60 | USERADD_PACKAGES = "${PN}" |