postfix-lmdb: 3.7.1

This commit is contained in:
Steffen Nurpmeso 2022-04-20 00:22:03 +02:00
parent 92ab337449
commit f84839f71f
3 changed files with 5 additions and 48 deletions

View File

@ -1,11 +1,10 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF38rrseYPbhCN8cD92Tw7fGke1/WH4oAmNsnC8hrSZvwotu4lrW8OZA0OFow3hciSIRJlcTCidnBTJ6VXLUz2HAI=
SHA256 (Pkgfile) = a993203a02ece29839c26820e0c3e061be3b8171466f3b7a8cc55293c38e089c
RWSagIOpLGJF384azRoQDIIAt3mnxPMhSi7FJ6rXf2iQ8gGgMkKYER+o72UkrKiYGO1GUTa2GsgwB/eEZ1PUGfnscOJmOmG83wg=
SHA256 (Pkgfile) = ebde332bc985c59abe50c4be45d3dab6769fd94ab107625bb8aaa2855d5679ef
SHA256 (.footprint) = c4bef46624508b9105e8c5816c322560a560c09e9c5507509eb95c886d52a387
SHA256 (postfix-3.7.0.tar.gz) = 645c6a74959703f8dff5b696b2df2e8bc0c91ac530127a21c998e3defbb9528c
SHA256 (postfix-3.7.1.tar.gz) = 25c3e7ec09955af873407af3070fd259da8477b80e2f4663c5fdc00a2cc947ee
SHA256 (lmdb-default.patch) = 11f42333ae0640a3ca579463ed28007973693b93bc734b5d82225fcb516bf05e
SHA256 (postfix-install.patch) = 7185d2b2e4d7cc090b958c1d372c16e15f274465e2123686a0d97db20e2b5943
SHA256 (closefrom.patch) = e7b07aefa319c67b0b44a95a5701f3ef3d35d8e58c126de841ec2e4b16b29c8f
SHA256 (post-install) = 16dfda7fc118659d5ed83d4a0f683c730b0de723f9700806666532efa2502957
SHA256 (postfix.rc) = 5ac60205a95faf4633c64bc60d2689f654b997932e3bbc1204b66df7b5dce1d2
SHA256 (README) = a51f96a1f17cdc075d307c44f146e761e0c795812710b1db6e049b7bdee84210

View File

@ -6,13 +6,12 @@
rname=postfix
name=postfix-lmdb
version=3.7.0
release=2
version=3.7.1
release=1
source=(
https://de.${rname}.org/ftpmirror/official/${rname}-${version}.tar.gz
lmdb-default.patch
postfix-install.patch
closefrom.patch
post-install
${rname}.rc
README
@ -27,7 +26,6 @@ build() {
patch -p1 < "${SRC}"/lmdb-default.patch
patch -p1 < "${SRC}"/postfix-install.patch
patch -p1 < "${SRC}"/closefrom.patch
cca='-DNO_DB -DNO_EAI -DNO_NIS -DNO_NISPLUS -DUSE_TLS'
cca=${cca}' -DHAS_LMDB -DDEF_DB_TYPE=\"lmdb\"'

View File

@ -1,40 +0,0 @@
diff -ru postfix-3.6.2.orig/src/util/sys_compat.c postfix-3.6.2/src/util/sys_compat.c
--- postfix-3.6.2.orig/src/util/sys_compat.c 2021-09-15 16:42:06.337124020 +0200
+++ postfix-3.6.2/src/util/sys_compat.c 2021-09-15 16:43:00.893791647 +0200
@@ -286,7 +286,7 @@
/* closefrom() - closes all file descriptors from the given one up */
-int closefrom(int lowfd)
+void closefrom(int lowfd)
{
int fd_limit = open_limit(0);
int fd;
@@ -298,14 +298,12 @@
*/
if (lowfd < 0) {
errno = EBADF;
- return (-1);
+ return;
}
if (fd_limit > 500)
fd_limit = 500;
for (fd = lowfd; fd < fd_limit; fd++)
(void) close(fd);
-
- return (0);
}
#endif
diff -ru postfix-3.6.2.orig/src/util/sys_defs.h postfix-3.6.2/src/util/sys_defs.h
--- postfix-3.6.2.orig/src/util/sys_defs.h 2021-09-15 16:42:06.337124020 +0200
+++ postfix-3.6.2/src/util/sys_defs.h 2021-09-15 16:42:34.500457851 +0200
@@ -1509,7 +1509,7 @@
#endif
#ifndef HAS_CLOSEFROM
-extern int closefrom(int);
+extern void closefrom(int);
#endif