diff options
author | Eray Aslan <eras@gentoo.org> | 2018-10-05 14:03:52 +0300 |
---|---|---|
committer | Eray Aslan <eras@gentoo.org> | 2018-10-05 14:03:52 +0300 |
commit | 38b1b5ecb1cc03000e3e9db61cb6537a7b252106 (patch) | |
tree | 733fb0e64b8e09115ddf73f5700d2cebb42aa5f1 /net-mail/dovecot/files | |
parent | dev-db/pgadmin4: Bump to 3.3. (diff) | |
download | gentoo-38b1b5ecb1cc03000e3e9db61cb6537a7b252106.tar.gz gentoo-38b1b5ecb1cc03000e3e9db61cb6537a7b252106.tar.bz2 gentoo-38b1b5ecb1cc03000e3e9db61cb6537a7b252106.zip |
net-mail/dovecot: bump to 2.3.3
Closes: https://bugs.gentoo.org/666202
Closes: https://bugs.gentoo.org/667118
Closes: https://bugs.gentoo.org/664988
Signed-off-by: Eray Aslan <eras@gentoo.org>
Package-Manager: Portage-2.3.50, Repoman-2.3.11
Diffstat (limited to 'net-mail/dovecot/files')
-rw-r--r-- | net-mail/dovecot/files/dovecot-glibc228.patch | 44 | ||||
-rw-r--r-- | net-mail/dovecot/files/dovecot.init-r5 | 57 |
2 files changed, 101 insertions, 0 deletions
diff --git a/net-mail/dovecot/files/dovecot-glibc228.patch b/net-mail/dovecot/files/dovecot-glibc228.patch new file mode 100644 index 000000000000..9549c12f6e8f --- /dev/null +++ b/net-mail/dovecot/files/dovecot-glibc228.patch @@ -0,0 +1,44 @@ +From 63a74b9e8e0604486a15a879e7f1a27257322400 Mon Sep 17 00:00:00 2001 +From: Aki Tuomi <aki.tuomi@dovecot.fi> +Date: Wed, 8 Aug 2018 12:33:20 +0300 +Subject: [PATCH] auth: mycrypt - include crypt.h +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Fixes crypt usage on glibc-2.28 + +Reported by Reuben Farrelly +Patch provided by Thore Bödecker +--- + configure.ac | 2 +- + src/auth/mycrypt.c | 3 +++ + 2 files changed, 4 insertions(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index dd545ebfdc..c5d8fae666 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -315,7 +315,7 @@ AC_CHECK_HEADERS(strings.h stdint.h unistd.h dirent.h malloc.h \ + quota.h sys/fs/quota_common.h \ + mntent.h sys/mnttab.h sys/event.h sys/time.h sys/mkdev.h linux/dqblk_xfs.h \ + xfs/xqm.h execinfo.h ucontext.h malloc_np.h sys/utsname.h sys/vmount.h \ +- sys/utsname.h glob.h linux/falloc.h ucred.h sys/ucred.h) ++ sys/utsname.h glob.h linux/falloc.h ucred.h sys/ucred.h crypt.h) + + CC_CLANG + AC_CC_PIE +diff --git a/src/auth/mycrypt.c b/src/auth/mycrypt.c +index c49fcf842e..0bd00bc238 100644 +--- a/src/auth/mycrypt.c ++++ b/src/auth/mycrypt.c +@@ -14,6 +14,9 @@ + # define _XPG6 /* Some Solaris versions require this, some break with this */ + #endif + #include <unistd.h> ++#ifdef HAVE_CRYPT_H ++# include <crypt.h> ++#endif + + #include "mycrypt.h" + diff --git a/net-mail/dovecot/files/dovecot.init-r5 b/net-mail/dovecot/files/dovecot.init-r5 new file mode 100644 index 000000000000..8a98603d4b42 --- /dev/null +++ b/net-mail/dovecot/files/dovecot.init-r5 @@ -0,0 +1,57 @@ +#!/sbin/openrc-run +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License, v2 or later + +extra_started_commands="reload" + +depend() { + need localmount + before postfix + after bootmisc ldap mysql ntp-client ntpd postgresql saslauthd slapd + use logger net +} + +checkconfig() { + DOVECOT_INSTANCE=${SVCNAME##*.} + if [ -n "${DOVECOT_INSTANCE}" -a "${SVCNAME}" != "dovecot" ]; then + DOVECOT_CONF=/etc/dovecot/dovecot.${DOVECOT_INSTANCE}.conf + else + DOVECOT_CONF=/etc/dovecot/dovecot.conf + fi + if [ ! -e ${DOVECOT_CONF} ]; then + eerror "You will need an ${DOVECOT_CONF} first" + return 1 + fi + if [ -x /usr/sbin/dovecot ]; then + DOVECOT_BASEDIR=$(/usr/sbin/dovecot -c ${DOVECOT_CONF} config -h base_dir) + else + eerror "dovecot not executable" + return 1 + fi + DOVECOT_BASEDIR=${DOVECOT_BASEDIR:-/run/dovecot} + DOVECOT_PIDFILE=${DOVECOT_BASEDIR}/master.pid +} + +start() { + checkconfig || return 1 + ebegin "Starting ${SVCNAME}" + start-stop-daemon --start --exec /usr/sbin/dovecot \ + --pidfile "${DOVECOT_PIDFILE}" -- -c "${DOVECOT_CONF}" + eend $? +} + +stop() { + checkconfig || return 1 + ebegin "Stopping ${SVCNAME}" + start-stop-daemon --stop --exec /usr/sbin/dovecot \ + --pidfile "${DOVECOT_PIDFILE}" + eend $? +} + +reload() { + checkconfig || return 1 + ebegin "Reloading ${SVCNAME} configs and restarting auth/login processes" + start-stop-daemon --signal HUP --exec /usr/sbin/dovecot \ + --pidfile "${DOVECOT_PIDFILE}" + eend $? +} |