Compare commits
No commits in common. "383a2e69e4ddd77fb5e29c1e73027e89e3aa4655" and "ef57f64d212ebc8cf131c419df74cab4a581fb20" have entirely different histories.
383a2e69e4
...
ef57f64d21
13
backport-postfix-3.6.2-whitespace-name-fix.patch
Normal file
13
backport-postfix-3.6.2-whitespace-name-fix.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/src/cleanup/cleanup_message.c b/src/cleanup/cleanup_message.c
|
||||||
|
index 391c711..be5ce42 100644
|
||||||
|
--- a/src/cleanup/cleanup_message.c
|
||||||
|
+++ b/src/cleanup/cleanup_message.c
|
||||||
|
@@ -773,6 +773,8 @@ static void cleanup_header_done_callback(void *context)
|
||||||
|
/* Normalize whitespace. */
|
||||||
|
token = tok822_scan_limit(state->fullname, &dummy_token,
|
||||||
|
var_token_limit);
|
||||||
|
+ if (!token)
|
||||||
|
+ token = tok822_alloc(TOK822_QSTRING, state->fullname);
|
||||||
|
} else {
|
||||||
|
token = tok822_alloc(TOK822_QSTRING, state->fullname);
|
||||||
|
}
|
||||||
BIN
postfix-3.7.2.tar.gz
Normal file
BIN
postfix-3.7.2.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
@ -51,20 +51,15 @@ conf_check() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
make_aliasesdb() {
|
make_aliasesdb() {
|
||||||
local MAP=""
|
if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
|
||||||
local ALIASESDB="$(/usr/sbin/postconf -h alias_database)"
|
|
||||||
[ "$ALIASESDB" = "hash:/etc/aliases" ] && MAP="db"
|
|
||||||
[ "$ALIASESDB" = "lmdb:/etc/aliases" ] && MAP="lmdb"
|
|
||||||
|
|
||||||
if [ "$MAP" = "db" -o "$MAP" = "lmdb" ]
|
|
||||||
then
|
then
|
||||||
# /etc/aliases.db|lmdb may be used by other MTA, make sure nothing
|
# /etc/aliases.db may be used by other MTA, make sure nothing
|
||||||
# has touched it since our last newaliases call
|
# has touched it since our last newaliases call
|
||||||
[ /etc/aliases -nt /etc/aliases.$MAP ] ||
|
[ /etc/aliases -nt /etc/aliases.db ] ||
|
||||||
[ "$ALIASESDB_STAMP" -nt /etc/aliases.$MAP ] ||
|
[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
|
||||||
[ "$ALIASESDB_STAMP" -ot /etc/aliases.$MAP ] || return
|
[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return
|
||||||
/usr/bin/newaliases
|
/usr/bin/newaliases
|
||||||
touch -r /etc/aliases.$MAP "$ALIASESDB_STAMP"
|
touch -r /etc/aliases.db "$ALIASESDB_STAMP"
|
||||||
else
|
else
|
||||||
/usr/bin/newaliases
|
/usr/bin/newaliases
|
||||||
fi
|
fi
|
||||||
|
|||||||
@ -3,20 +3,15 @@
|
|||||||
ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp
|
ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp
|
||||||
|
|
||||||
make_aliasesdb() {
|
make_aliasesdb() {
|
||||||
local MAP=""
|
if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
|
||||||
local ALIASESDB="$(/usr/sbin/postconf -h alias_database)"
|
|
||||||
[ "$ALIASESDB" = "hash:/etc/aliases" ] && MAP="db"
|
|
||||||
[ "$ALIASESDB" = "lmdb:/etc/aliases" ] && MAP="lmdb"
|
|
||||||
|
|
||||||
if [ "$MAP" = "db" -o "$MAP" = "lmdb" ]
|
|
||||||
then
|
then
|
||||||
# /etc/aliases.db|lmdb may be used by other MTA, make sure nothing
|
# /etc/aliases.db may be used by other MTA, make sure nothing
|
||||||
# has touched it since our last newaliases call
|
# has touched it since our last newaliases call
|
||||||
[ /etc/aliases -nt /etc/aliases.$MAP ] ||
|
[ /etc/aliases -nt /etc/aliases.db ] ||
|
||||||
[ "$ALIASESDB_STAMP" -nt /etc/aliases.$MAP ] ||
|
[ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
|
||||||
[ "$ALIASESDB_STAMP" -ot /etc/aliases.$MAP ] || return 0
|
[ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return 0
|
||||||
/usr/bin/newaliases
|
/usr/bin/newaliases
|
||||||
touch -r /etc/aliases.$MAP "$ALIASESDB_STAMP"
|
touch -r /etc/aliases.db "$ALIASESDB_STAMP"
|
||||||
else
|
else
|
||||||
/usr/bin/newaliases
|
/usr/bin/newaliases
|
||||||
fi
|
fi
|
||||||
|
|||||||
43
postfix.spec
43
postfix.spec
@ -22,12 +22,12 @@
|
|||||||
|
|
||||||
Name: postfix
|
Name: postfix
|
||||||
Summary: Postfix Mail Transport Agent
|
Summary: Postfix Mail Transport Agent
|
||||||
Version: 3.8.4
|
Version: 3.7.2
|
||||||
Release: 1
|
Release: 4
|
||||||
Epoch: 2
|
Epoch: 2
|
||||||
URL: http://www.postfix.org
|
URL: http://www.postfix.org
|
||||||
License: (IPL-1.0 and GPLv2+) or (EPL-2.0 and GPLv2+)
|
License: (IPL-1.0 and GPLv2+) or (EPL-2.0 and GPLv2+)
|
||||||
Source0: http://ftp.porcupine.org/mirrors/postfix-release/official/%{name}-%{version}.tar.gz
|
Source0: ftp://ftp.porcupine.org/mirrors/postfix-release/official/%{name}-%{version}.tar.gz
|
||||||
Source1: postfix-etc-init.d-postfix
|
Source1: postfix-etc-init.d-postfix
|
||||||
Source2: postfix.service
|
Source2: postfix.service
|
||||||
Source3: postfix.aliasesdb
|
Source3: postfix.aliasesdb
|
||||||
@ -44,6 +44,7 @@ Patch5: pflogsumm-1.1.5-datecalc.patch
|
|||||||
Patch6: pflogsumm-1.1.5-ipv6-warnings-fix.patch
|
Patch6: pflogsumm-1.1.5-ipv6-warnings-fix.patch
|
||||||
Patch11: postfix-use-lmdb-by-default-instead-of-libdb.patch
|
Patch11: postfix-use-lmdb-by-default-instead-of-libdb.patch
|
||||||
Patch12: postfix-set-default_data_type-to-lmdb.patch
|
Patch12: postfix-set-default_data_type-to-lmdb.patch
|
||||||
|
Patch13: backport-postfix-3.6.2-whitespace-name-fix.patch
|
||||||
|
|
||||||
BuildRequires: lmdb-devel perl-generators pkgconfig zlib-devel systemd-units libicu-devel libnsl2-devel gcc m4 openldap-devel
|
BuildRequires: lmdb-devel perl-generators pkgconfig zlib-devel systemd-units libicu-devel libnsl2-devel gcc m4 openldap-devel
|
||||||
BuildRequires: cyrus-sasl-devel pcre2-devel mariadb-connector-c-devel postgresql-devel sqlite-devel openssl-devel procps-ng
|
BuildRequires: cyrus-sasl-devel pcre2-devel mariadb-connector-c-devel postgresql-devel sqlite-devel openssl-devel procps-ng
|
||||||
@ -52,7 +53,7 @@ Requires(post): systemd-sysv %{_sbindir}/alternatives %{_bindir}/openssl
|
|||||||
Requires(pre): %{_sbindir}/groupadd %{_sbindir}/useradd
|
Requires(pre): %{_sbindir}/groupadd %{_sbindir}/useradd
|
||||||
Requires(preun): %{_sbindir}/alternatives
|
Requires(preun): %{_sbindir}/alternatives
|
||||||
%{?systemd_requires}
|
%{?systemd_requires}
|
||||||
Requires: diffutils findutils %{name}-help
|
Requires: diffutils findutils
|
||||||
|
|
||||||
Provides: MTA smtpd smtpdaemon server(smtp)
|
Provides: MTA smtpd smtpdaemon server(smtp)
|
||||||
Provides: %{name}-mysql %{name}-sqlite %{name}-ldap %{name}-pcre
|
Provides: %{name}-mysql %{name}-sqlite %{name}-ldap %{name}-pcre
|
||||||
@ -106,6 +107,7 @@ PostgreSQL maps with Postfix, you need this.
|
|||||||
|
|
||||||
%patch11 -p1
|
%patch11 -p1
|
||||||
%patch12 -p1
|
%patch12 -p1
|
||||||
|
%patch13 -p1
|
||||||
|
|
||||||
sed -i \
|
sed -i \
|
||||||
's|^\(\s*#define\s\+DEF_SHLIB_DIR\s\+\)"/usr/lib/postfix"|\1"%{_libdir}/postfix"|' \
|
's|^\(\s*#define\s\+DEF_SHLIB_DIR\s\+\)"/usr/lib/postfix"|\1"%{_libdir}/postfix"|' \
|
||||||
@ -119,9 +121,6 @@ pushd pflogsumm-1.1.5
|
|||||||
%patch6 -p1 -b .ipv6-warnings-fix
|
%patch6 -p1 -b .ipv6-warnings-fix
|
||||||
popd
|
popd
|
||||||
|
|
||||||
sed -i makedefs -e '\@Linux\.@s|345|3456|'
|
|
||||||
sed -i src/util/sys_defs.h -e 's@defined(LINUX5)@defined(LINUX5) || defined(LINUX6)@'
|
|
||||||
|
|
||||||
for f in README_FILES/TLS_{LEGACY_,}README TLS_ACKNOWLEDGEMENTS; do
|
for f in README_FILES/TLS_{LEGACY_,}README TLS_ACKNOWLEDGEMENTS; do
|
||||||
iconv -f iso8859-1 -t utf8 -o ${f}{_,} &&
|
iconv -f iso8859-1 -t utf8 -o ${f}{_,} &&
|
||||||
touch -r ${f}{,_} && mv -f ${f}{_,}
|
touch -r ${f}{,_} && mv -f ${f}{_,}
|
||||||
@ -556,36 +555,6 @@ fi
|
|||||||
%{postfix_doc_dir}/README_FILES/*
|
%{postfix_doc_dir}/README_FILES/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue Jan 02 2024 gaihuiying <eaglegai@163.com> - 2:3.8.4-1
|
|
||||||
- Type:requirements
|
|
||||||
- ID:NA
|
|
||||||
- SUG:NA
|
|
||||||
- DESC:update postfix to 3.8.4
|
|
||||||
|
|
||||||
* Mon Aug 28 2023 gaihuiying <eaglegai@163.com> - 2:3.8.1-2
|
|
||||||
- Type:bugfix
|
|
||||||
- ID:NA
|
|
||||||
- SUG:NA
|
|
||||||
- DESC:strip for smtp qmgr
|
|
||||||
|
|
||||||
* Tue Jul 25 2023 gaihuiying <eaglegai@163.com> - 2:3.8.1-1
|
|
||||||
- Type:requirements
|
|
||||||
- ID:NA
|
|
||||||
- SUG:NA
|
|
||||||
- DESC:update postfix to 3.8.1
|
|
||||||
|
|
||||||
* Tue Jun 13 2023 zhouyihang <zhouyihang3@h-partners.com> - 2:3.7.4-2
|
|
||||||
- Type:bugfix
|
|
||||||
- ID:NA
|
|
||||||
- SUG:NA
|
|
||||||
- DESC:add require of help to fix empty symlink
|
|
||||||
|
|
||||||
* Sat Mar 11 2023 xinghe <xinghe2@h-partners.com> - 2:3.7.4-1
|
|
||||||
- Type:requirements
|
|
||||||
- ID:NA
|
|
||||||
- SUG:NA
|
|
||||||
- DESC:update postfix to 3.7.4
|
|
||||||
|
|
||||||
* Fri Mar 10 2023 gaihuiying <eaglegai@163.com> - 2:3.7.2-4
|
* Fri Mar 10 2023 gaihuiying <eaglegai@163.com> - 2:3.7.2-4
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user