]> git.pld-linux.org Git - packages/dovecot.git/commitdiff
- up to 2.2.36; allow alternative config path in sysconfig/dovecot auto/th/dovecot-2.2.36-1
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 11 Jun 2018 07:43:30 +0000 (09:43 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 11 Jun 2018 07:43:30 +0000 (09:43 +0200)
dovecot-local_name.patch [deleted file]
dovecot.init
dovecot.spec

diff --git a/dovecot-local_name.patch b/dovecot-local_name.patch
deleted file mode 100644 (file)
index d6e34ee..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
---- dovecot-2.2.35/src/lib-master/master-service-settings-cache.c      2018-03-21 10:15:09.097480691 +0100
-+++ dovecot-2.2.35/src/lib-master/master-service-settings-cache.c~     2018-03-19 10:30:01.000000000 +0100
-@@ -131,7 +131,7 @@ match_local_name(const char *local_name,
-                       return TRUE;
-               local_name = ptr+1;
-       }
--      return dns_match_wildcard(filter_local_name, local_name) == 0;
-+      return dns_match_wildcard(local_name, filter_local_name) == 0;
- }
- /* Remove any elements which there is no filter for */
index 6a76990e9c823c30a602764d16f0bbf78c8892ae..4b1c3be9c857918065ec3ad3e956af5dfa2d3cc4 100644 (file)
@@ -23,11 +23,20 @@ else
        exit 0
 fi
 
+if [ -n "${DOVECOT_CONF}" ]; then
+       if [ -f "${DOVECOT_CONF}" ]; then
+         DOVECOT_CFG="-c ${DOVECOT_CONF}"
+       else
+         echo "error: DOVECOT_CONF='$DOVECOT_CONF': not a file"
+         exit 1
+       fi
+fi
+
 start() {
        # Check if the service is already running?
        if [ ! -f /var/lock/subsys/dovecot ]; then
                msg_starting "Dovecot"
-               daemon /usr/sbin/dovecot
+               daemon /usr/sbin/dovecot $DOVECOT_CFG
                RETVAL=$?
                [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dovecot
        else
index 50235ffe3e7773c653fd038f6fa5b7c3e3dc2bbd..05233d5a03004bb51e24101bc7410a14b895ffab 100644 (file)
 Summary:       IMAP and POP3 server written with security primarily in mind
 Summary(pl.UTF-8):     Serwer IMAP i POP3 pisany głównie z myślą o bezpieczeństwie
 Name:          dovecot
-Version:       2.2.35
-Release:       2
+Version:       2.2.36
+Release:       1
 Epoch:         1
 License:       MIT (libraries), LGPL v2.1 (the rest)
 Group:         Networking/Daemons
 Source0:       http://dovecot.org/releases/2.2/%{name}-%{version}.tar.gz
-# Source0-md5: 6998a3b16c42a8b3c7086b03fa781fba
+# Source0-md5: a8d6492584025b2413e82ea48de3cd5f
 Source1:       %{name}.pamd
 Source2:       %{name}.init
 Source3:       %{name}.sysconfig
 Source4:       %{name}.tmpfiles
 Patch0:                %{name}-config.patch
 Patch1:                %{name}-rpath.patch
-Patch2:                %{name}-local_name.patch
+
 Patch3:                %{name}-disableSSLv3.patch
 URL:           http://dovecot.org/
 BuildRequires: autoconf
@@ -162,7 +162,7 @@ Pakiet programistyczny do tworzenia wtyczek dla Dovecota.
 %setup -q
 %patch0 -p1
 %patch1 -p1
-%patch2 -p1
+
 %patch3 -p1
 
 %{__sed} -i 's,/usr/lib/dovecot,%{_libdir}/dovecot,g' doc/example-config/*.conf doc/example-config/conf.d/*.conf
This page took 0.115925 seconds and 4 git commands to generate.