From 957235cf19a691360c720f7913672adda4258ed0 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 7 Oct 2018 11:03:14 +0100 Subject: gentoo resync : 07.10.2018 --- net-mail/dovecot/files/dovecot-glibc228.patch | 44 +++++++++++++++++++++ net-mail/dovecot/files/dovecot.init-r5 | 57 +++++++++++++++++++++++++++ 2 files changed, 101 insertions(+) create mode 100644 net-mail/dovecot/files/dovecot-glibc228.patch create mode 100644 net-mail/dovecot/files/dovecot.init-r5 (limited to 'net-mail/dovecot/files') 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 +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 ++#ifdef HAVE_CRYPT_H ++# include ++#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 $? +} -- cgit v1.2.3