]> TLD Linux GIT Repositories - packages/postfix.git/commitdiff
- updated to 3.10.2, replaced sed with proper patch
authorMarcin Krol <hawk@tld-linux.org>
Sun, 27 Apr 2025 18:25:34 +0000 (20:25 +0200)
committerMarcin Krol <hawk@tld-linux.org>
Sun, 27 Apr 2025 18:25:34 +0000 (20:25 +0200)
postfix-scache_clnt.patch
postfix.spec

index f09ca02fb47b59d485e4412dfebcf79b29984e57..ddb9db9406f9933a316ad07884d250de5d1fc6bf 100644 (file)
@@ -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;
index 8f472fac084c9504b3efeb115390d37555d8ed3f..bcfa7627b7e0e710d0d46d881e14b340f361f359 100644 (file)
@@ -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'