From: Marcin Krol Date: Sun, 27 Apr 2025 18:25:34 +0000 (+0200) Subject: - updated to 3.10.2, replaced sed with proper patch X-Git-Url: https://git.tld-linux.org/?a=commitdiff_plain;h=21f6c82d7f1fd2dc507822e63cf0803cc0684f18;p=packages%2Fpostfix.git - updated to 3.10.2, replaced sed with proper patch --- diff --git a/postfix-scache_clnt.patch b/postfix-scache_clnt.patch index f09ca02..ddb9db9 100644 --- a/postfix-scache_clnt.patch +++ b/postfix-scache_clnt.patch @@ -1,5 +1,14 @@ ---- 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; diff --git a/postfix.spec b/postfix.spec index 8f472fa..bcfa762 100644 --- a/postfix.spec +++ b/postfix.spec @@ -18,13 +18,13 @@ Summary(pl.UTF-8): Serwer SMTP Postfix 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 @@ -269,13 +269,12 @@ Plik monitrc do monitorowania serwera Postfix. %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'