---- postfix-3.6.2/src/global/scache_clnt.c.orig 2021-08-27 14:41:51.981598457 +0200
-+++ postfix-3.6.2/src/global/scache_clnt.c 2021-08-27 14:44:13.138605407 +0200
+--- postfix-3.10.2/src/global/scache_clnt.c 2025-04-27 20:17:20.375607859 +0200
++++ postfix-3.10.2/src/global/scache_clnt.c 2025-04-27 20:18:13.907769758 +0200
+@@ -415,7 +415,7 @@
+
+ /* scache_clnt_create - initialize */
+
+-SCACHE *scache_clnt_create(const char *server, int timeout,
++SCACHE *scache_clnt_create(const char *var_scache_service, int timeout,
+ int idle_limit, int ttl_limit)
+ {
+ SCACHE_CLNT *sp = (SCACHE_CLNT *) mymalloc(sizeof(*sp));
@@ -428,7 +428,7 @@
sp->scache->size = scache_clnt_size;
sp->scache->free = scache_clnt_free;
Summary(pt_BR.UTF-8): Postfix - Um MTA (Mail Transport Agent) de alto desempenho
Summary(sk.UTF-8): Agent prenosu pošty Postfix
Name: postfix
-Version: 3.10.1
+Version: 3.10.2
Release: 1
Epoch: 2
License: distributable
Group: Networking/Daemons/SMTP
Source0: ftp://ftp.porcupine.org/mirrors/postfix-release/official/%{name}-%{version}.tar.gz
-# Source0-md5: 9ba37162bba6128cb94704888bf77fac
+# Source0-md5: c0b89a5aff286148194e9e2bb5529405
Source1: %{name}.aliases
Source2: %{name}.cron
Source3: %{name}.init
%prep
%setup -q
-%patch0 -p1
-%patch1 -p1
-%patch2 -p1
-sed -i '/scache_clnt_create/s/server/var_scache_service/' src/global/scache_clnt.c
-%patch3 -p1
-%patch4 -p1
-%patch5 -p1
+%patch -P0 -p1
+%patch -P1 -p1
+%patch -P2 -p1
+%patch -P3 -p1
+%patch -P4 -p1
+%patch -P5 -p1
%build
# export, as the same variables must be passed both to 'make makefiles' and 'make'