Sync from SUSE:SLFO:Main postfix revision c67c46a77ca6316c25b2e3d7b5936dcb
This commit is contained in:
parent
1fb5189ec3
commit
468ea85f3e
BIN
postfix-3.8.3.tar.gz
(Stored with Git LFS)
BIN
postfix-3.8.3.tar.gz
(Stored with Git LFS)
Binary file not shown.
@ -1,7 +0,0 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2.0.18 (FreeBSD)
|
||||
|
||||
iFcDBQBlQoZrDAtZDoDKFacRCkFKAP97Os5swzwx9v0ZSeoJpbNC/aC8+pWcZ2kv
|
||||
1kBEXC+7BwD9G4T6xOjzFUGx/yvjOSxeyQRURNdAcDn1MBEDnIJZcSw=
|
||||
=s3oc
|
||||
-----END PGP SIGNATURE-----
|
BIN
postfix-3.9.0.tar.gz
(Stored with Git LFS)
Normal file
BIN
postfix-3.9.0.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
7
postfix-3.9.0.tar.gz.asc
Normal file
7
postfix-3.9.0.tar.gz.asc
Normal file
@ -0,0 +1,7 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2.0.18 (FreeBSD)
|
||||
|
||||
iFcDBQBl6JfdDAtZDoDKFacRCspDAP9CWwo61cuT1VgMaP+TrcP5izmrJSRxLMJN
|
||||
ubLPqIcYZAD9FM/D0BP7oUAbxDEY5vF3qWiayCJehlEmspmTg+xeYG8=
|
||||
=dY5B
|
||||
-----END PGP SIGNATURE-----
|
BIN
postfix-SUSE.tar.gz
(Stored with Git LFS)
BIN
postfix-SUSE.tar.gz
(Stored with Git LFS)
Binary file not shown.
@ -2,7 +2,7 @@ Index: conf/main.cf
|
||||
===================================================================
|
||||
--- conf/main.cf.orig
|
||||
+++ conf/main.cf
|
||||
@@ -567,6 +567,7 @@ unknown_local_recipient_reject_code = 55
|
||||
@@ -576,6 +576,7 @@ unknown_local_recipient_reject_code = 55
|
||||
#
|
||||
#smtpd_banner = $myhostname ESMTP $mail_name
|
||||
#smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
|
||||
@ -10,7 +10,7 @@ Index: conf/main.cf
|
||||
|
||||
# PARALLEL DELIVERY TO THE SAME DESTINATION
|
||||
#
|
||||
@@ -673,4 +674,140 @@ sample_directory =
|
||||
@@ -682,4 +683,165 @@ sample_directory =
|
||||
# readme_directory: The location of the Postfix README files.
|
||||
#
|
||||
readme_directory =
|
||||
@ -39,8 +39,8 @@ Index: conf/main.cf
|
||||
+masquerade_classes = envelope_sender, header_sender, header_recipient
|
||||
+masquerade_domains =
|
||||
+masquerade_exceptions =
|
||||
+mydestination = $myhostname, localhost.$mydomain
|
||||
+myhostname = localhost
|
||||
+mydestination = $myhostname, localhost.$mydomain, localhost
|
||||
+myhostname =
|
||||
+mynetworks_style = subnet
|
||||
+relayhost =
|
||||
+
|
||||
@ -70,6 +70,19 @@ Index: conf/main.cf
|
||||
+smtpd_recipient_restrictions =
|
||||
+
|
||||
+
|
||||
+######################################################################
|
||||
+# SMTP Smuggling (CVE-2023-51764)
|
||||
+# no: allows SMTP smuggling
|
||||
+# yes / normalize :
|
||||
+# but allow local clients with non-standard SMTP implementations
|
||||
+# such as netcat, fax machines, or load balancer health checks.
|
||||
+# reject:
|
||||
+# rejects a command or message that contains a bare newline
|
||||
+######################################################################
|
||||
+smtpd_forbid_bare_newline = normalize
|
||||
+smtpd_forbid_bare_newline_exclusions = $mynetworks
|
||||
+#smtpd_forbid_bare_newline_reject_code = 521
|
||||
+
|
||||
+############################################################
|
||||
+# SASL stuff
|
||||
+############################################################
|
||||
@ -93,6 +106,7 @@ Index: conf/main.cf
|
||||
+smtp_use_tls = no
|
||||
+#smtp_tls_loglevel = 0
|
||||
+smtp_enforce_tls = no
|
||||
+smtp_tls_security_level =
|
||||
+smtp_tls_CAfile =
|
||||
+smtp_tls_CApath =
|
||||
+smtp_tls_cert_file =
|
||||
@ -103,6 +117,8 @@ Index: conf/main.cf
|
||||
+
|
||||
+smtpd_use_tls = no
|
||||
+#smtpd_tls_loglevel = 0
|
||||
+smtpd_enforce_tls = no
|
||||
+smtpd_tls_security_level =
|
||||
+smtpd_tls_CAfile =
|
||||
+smtpd_tls_CApath =
|
||||
+smtpd_tls_cert_file =
|
||||
@ -111,9 +127,17 @@ Index: conf/main.cf
|
||||
+smtpd_tls_exclude_ciphers = RC4
|
||||
+smtpd_tls_received_header = no
|
||||
+############################################################
|
||||
+# OpenDKIM
|
||||
+############################################################
|
||||
+#smtpd_milters = unix:/run/opendkim/opendkim.sock
|
||||
+#non_smtpd_milters = $smtpd_milters
|
||||
+#milter_default_action = accept
|
||||
+#milter_protocol = 2
|
||||
+############################################################
|
||||
+# Start MySQL from postfixwiki.org
|
||||
+############################################################
|
||||
+relay_domains = $mydestination, hash:/etc/postfix/relay
|
||||
+#relay_recipient_maps = hash:/etc/postfix/relay_recipients
|
||||
+#virtual_alias_domains =
|
||||
+#virtual_alias_maps = hash:/etc/postfix/virtual
|
||||
+#virtual_uid_maps = static:303
|
||||
@ -146,6 +170,7 @@ Index: conf/main.cf
|
||||
+#unknown_client_reject_code = 550
|
||||
+#unknown_hostname_reject_code = 550
|
||||
+#unverified_recipient_reject_code = 550
|
||||
+#unverified_sender_reject_code = 550
|
||||
+#soft_bounce = yes
|
||||
+############################################################
|
||||
+#debug_peer_list = example.com
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package postfix-bdb
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -59,14 +59,14 @@
|
||||
%endif
|
||||
%bcond_without ldap
|
||||
Name: postfix-bdb
|
||||
Version: 3.8.3
|
||||
Version: 3.9.0
|
||||
Release: 0
|
||||
Summary: A fast, secure, and flexible mailer
|
||||
License: IPL-1.0 OR EPL-2.0
|
||||
License: EPL-2.0 OR IPL-1.0
|
||||
Group: Productivity/Networking/Email/Servers
|
||||
URL: http://www.postfix.org
|
||||
Source0: http://cdn.postfix.johnriley.me/mirrors/postfix-release/official/postfix-%{version}.tar.gz
|
||||
Source1: http://cdn.postfix.johnriley.me/mirrors/postfix-release/official/postfix-%{version}.tar.gz.gpg2#/postfix-%{version}.tar.gz.asc
|
||||
Source0: https://de.postfix.org/ftpmirror/official/postfix-%{version}.tar.gz
|
||||
Source1: https://de.postfix.org/ftpmirror/official/postfix-%{version}.tar.gz.gpg2#/postfix-%{version}.tar.gz.asc
|
||||
Source2: postfix-SUSE.tar.gz
|
||||
Source3: postfix-mysql.tar.bz2
|
||||
#Source4: http://cdn.postfix.johnriley.me/mirrors/postfix-release/wietse.pgp#/postfix.keyring
|
||||
@ -108,8 +108,8 @@ Requires(post): permissions
|
||||
Requires(pre): %fillup_prereq
|
||||
Requires(pre): permissions
|
||||
Conflicts: exim
|
||||
Conflicts: sendmail
|
||||
Conflicts: postfix
|
||||
Conflicts: sendmail
|
||||
Provides: smtp_daemon
|
||||
%{?systemd_ordering}
|
||||
%if %{with lmdb}
|
||||
@ -126,15 +126,17 @@ Requires(pre): group(%{mail_group})
|
||||
%else
|
||||
Requires(pre): shadow
|
||||
%endif
|
||||
# /usr/lib/postfix/bin//postfix-script: line 400: cmp: command not found
|
||||
Requires: /usr/bin/cmp
|
||||
# /usr/lib/postfix/bin//post-install: line 667: ed: command not found
|
||||
Requires(pre): ed
|
||||
Requires(preun): ed
|
||||
Requires(post): ed
|
||||
Requires(pre): ed
|
||||
Requires(preun): ed
|
||||
Requires(post): ed
|
||||
Requires(postun): ed
|
||||
# /usr/sbin/config.postfix needs perl
|
||||
Requires(pre): perl
|
||||
Requires(preun): perl
|
||||
Requires(post): perl
|
||||
Requires(pre): perl
|
||||
Requires(preun): perl
|
||||
Requires(post): perl
|
||||
Requires(postun): perl
|
||||
|
||||
%description
|
||||
@ -157,17 +159,8 @@ lmdb.
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%setup -n postfix-%{version} -a 2 -a 3
|
||||
%patch1
|
||||
%patch2
|
||||
%patch3
|
||||
%patch4
|
||||
%patch5
|
||||
%patch6
|
||||
%patch7
|
||||
%patch8
|
||||
%patch9
|
||||
%patch10
|
||||
%setup -q -n postfix-%{version} -a 2 -a 3
|
||||
%autopatch -p0
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
@ -233,7 +226,17 @@ export PIE=-pie
|
||||
make makefiles pie=yes shared=yes dynamicmaps=yes \
|
||||
shlib_directory=%{_prefix}/lib/postfix \
|
||||
meta_directory=%{_prefix}/lib/postfix \
|
||||
config_directory=%{_sysconfdir}/postfix \
|
||||
config_directory=%{pf_config_directory} \
|
||||
daemon_directory=%{pf_daemon_directory} \
|
||||
command_directory=%{pf_command_directory} \
|
||||
queue_directory=/%{pf_queue_directory} \
|
||||
sendmail_path=%{pf_sendmail_path} \
|
||||
newaliases_path=%{pf_newaliases_path} \
|
||||
mailq_path=%{pf_mailq_path} \
|
||||
manpage_directory=%{_mandir} \
|
||||
setgid_group=%{pf_setgid_group} \
|
||||
readme_directory=%{pf_readme_directory} \
|
||||
data_directory=%{pf_data_directory} \
|
||||
SHLIB_RPATH="-Wl,-rpath,%{pf_shlib_directory} -Wl,-z,relro,-z,now"
|
||||
make %{?_smp_mflags}
|
||||
%if 0%{?suse_version} >= 1330
|
||||
@ -351,6 +354,9 @@ cp -a examples/* %{buildroot}%{pf_sample_directory}
|
||||
cp -a html/* %{buildroot}%{pf_html_directory}
|
||||
cp -a auxiliary %{buildroot}%{pf_docdir}
|
||||
rm %{buildroot}%{pf_docdir}/README_FILES/INSTALL
|
||||
rm -r %{buildroot}%{pf_docdir}/auxiliary/qshape
|
||||
install -p auxiliary/qshape/qshape.pl %{buildroot}%{_sbindir}/qshape
|
||||
mantools/srctoman - auxiliary/qshape/qshape.pl > %{buildroot}%{_mandir}/man1/qshape.1
|
||||
# Fix build for Leap 42.3.
|
||||
rm -f %{buildroot}%{_sysconfdir}/postfix/*.orig
|
||||
mkdir -p %{buildroot}%{_unitdir}
|
||||
@ -361,7 +367,9 @@ install -m 0755 postfix-SUSE/update_chroot.systemd %{buildroot}%{pf_shlib_dire
|
||||
install -m 0755 postfix-SUSE/update_postmaps.systemd %{buildroot}%{pf_shlib_directory}/systemd/update_postmaps
|
||||
install -m 0755 postfix-SUSE/wait_qmgr.systemd %{buildroot}%{pf_shlib_directory}/systemd/wait_qmgr
|
||||
install -m 0755 postfix-SUSE/cond_slp.systemd %{buildroot}%{pf_shlib_directory}/systemd/cond_slp
|
||||
%if 0%{?suse_version} < 1599
|
||||
ln -sv %{_sbindir}/service %{buildroot}%{_sbindir}/rcpostfix
|
||||
%endif
|
||||
%fdupes %{buildroot}%{pf_docdir}
|
||||
%fdupes %{buildroot}%{_mandir}
|
||||
for path in %{buildroot}%{pf_shlib_directory}/libpostfix-*.so
|
||||
@ -395,6 +403,7 @@ rm -rf %{buildroot}/%{_includedir}/postfix/
|
||||
%if 0%{?suse_version} >= 1330
|
||||
%pre -f postfix.pre
|
||||
%else
|
||||
|
||||
%pre
|
||||
getent group postfix >/dev/null || groupadd -g %{pf_gid} -o -r postfix
|
||||
getent group maildrop >/dev/null || groupadd -g %{maildrop_gid} -o -r maildrop
|
||||
@ -514,13 +523,16 @@ fi
|
||||
%attr(0755,root,root) %{_sbindir}/postmap
|
||||
%attr(0755,root,root) %{_sbindir}/postmulti
|
||||
%attr(0755,root,root) %{_sbindir}/postsuper
|
||||
%attr(0755,root,root) %{_sbindir}/qshape
|
||||
%attr(0755,root,root) %{_sbindir}/qmqp-source
|
||||
%attr(0755,root,root) %{_sbindir}/smtp-sink
|
||||
%attr(0755,root,root) %{_sbindir}/smtp-source
|
||||
%attr(0755,root,root) %{_sbindir}/mkpostfixcert
|
||||
%attr(0755,root,root) %{_sbindir}/check_mail_queue
|
||||
%attr(0755,root,root) %{_sbindir}/config.postfix
|
||||
%if 0%{?suse_version} < 1599
|
||||
%{_sbindir}/rcpostfix
|
||||
%endif
|
||||
%{_libdir}/lib*
|
||||
%{_libexecdir}/sendmail
|
||||
%dir %{pf_shlib_directory}
|
||||
|
@ -2,6 +2,8 @@
|
||||
makedefs | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
Index: makedefs
|
||||
===================================================================
|
||||
--- makedefs.orig
|
||||
+++ makedefs
|
||||
@@ -631,8 +631,8 @@ EOF
|
||||
|
@ -1,5 +1,7 @@
|
||||
--- conf/main.cf.orig 2022-11-14 15:57:24.689108581 +0100
|
||||
+++ conf/main.cf 2022-11-14 16:02:33.255317483 +0100
|
||||
Index: conf/main.cf
|
||||
===================================================================
|
||||
--- conf/main.cf.orig
|
||||
+++ conf/main.cf
|
||||
@@ -285,7 +285,7 @@ unknown_local_recipient_reject_code = 55
|
||||
#
|
||||
#mynetworks = 168.100.3.0/28, 127.0.0.0/8
|
||||
@ -48,7 +50,7 @@
|
||||
|
||||
# PARALLEL DELIVERY TO THE SAME DESTINATION
|
||||
#
|
||||
@@ -682,4 +683,149 @@ sample_directory =
|
||||
@@ -682,4 +683,165 @@ sample_directory =
|
||||
# readme_directory: The location of the Postfix README files.
|
||||
#
|
||||
readme_directory =
|
||||
@ -69,7 +71,7 @@
|
||||
+biff = no
|
||||
+content_filter =
|
||||
+delay_warning_time = 0h
|
||||
+disable_dns_lookups = no
|
||||
+smtp_dns_support_level = enabled
|
||||
+disable_mime_output_conversion = no
|
||||
+disable_vrfy_command = yes
|
||||
+inet_interfaces = all
|
||||
@ -77,6 +79,8 @@
|
||||
+masquerade_classes = envelope_sender, header_sender, header_recipient
|
||||
+masquerade_domains =
|
||||
+masquerade_exceptions =
|
||||
+mydestination = $myhostname, localhost.$mydomain, localhost
|
||||
+myhostname =
|
||||
+mynetworks_style = subnet
|
||||
+relayhost =
|
||||
+
|
||||
@ -106,6 +110,19 @@
|
||||
+smtpd_recipient_restrictions =
|
||||
+
|
||||
+
|
||||
+######################################################################
|
||||
+# SMTP Smuggling (CVE-2023-51764)
|
||||
+# no: allows SMTP smuggling
|
||||
+# yes / normalize :
|
||||
+# but allow local clients with non-standard SMTP implementations
|
||||
+# such as netcat, fax machines, or load balancer health checks.
|
||||
+# reject:
|
||||
+# rejects a command or message that contains a bare newline
|
||||
+######################################################################
|
||||
+smtpd_forbid_bare_newline = normalize
|
||||
+smtpd_forbid_bare_newline_exclusions = $mynetworks
|
||||
+#smtpd_forbid_bare_newline_reject_code = 521
|
||||
+
|
||||
+############################################################
|
||||
+# SASL stuff
|
||||
+############################################################
|
||||
@ -160,7 +177,7 @@
|
||||
+# Start MySQL from postfixwiki.org
|
||||
+############################################################
|
||||
+relay_domains = $mydestination, lmdb:/etc/postfix/relay
|
||||
+relay_recipient_maps = lmdb:/etc/postfix/relay_recipients
|
||||
+#relay_recipient_maps = lmdb:/etc/postfix/relay_recipients
|
||||
+#virtual_alias_domains =
|
||||
+#virtual_alias_maps = lmdb:/etc/postfix/virtual
|
||||
+#virtual_uid_maps = static:303
|
||||
@ -193,6 +210,7 @@
|
||||
+#unknown_client_reject_code = 550
|
||||
+#unknown_hostname_reject_code = 550
|
||||
+#unverified_recipient_reject_code = 550
|
||||
+#unverified_sender_reject_code = 550
|
||||
+#soft_bounce = yes
|
||||
+############################################################
|
||||
+#debug_peer_list = example.com
|
||||
|
@ -9,7 +9,7 @@ Index: conf/master.cf
|
||||
+#amavis unix - - n - 4 smtp
|
||||
+# -o smtp_data_done_timeout=1200
|
||||
+# -o smtp_send_xforward_command=yes
|
||||
+# -o disable_dns_lookups=yes
|
||||
+# -o smtp_dns_support_level=disabled
|
||||
+# -o max_use=20
|
||||
#smtp inet n - n - 1 postscreen
|
||||
#smtpd pass - - n - - smtpd
|
||||
|
@ -2,7 +2,7 @@ Index: src/global/mail_params.h
|
||||
===================================================================
|
||||
--- src/global/mail_params.h.orig
|
||||
+++ src/global/mail_params.h
|
||||
@@ -1387,7 +1387,7 @@ extern char *var_smtpd_tls_mand_excl;
|
||||
@@ -1391,7 +1391,7 @@ extern char *var_smtpd_tls_mand_excl;
|
||||
|
||||
#define VAR_SMTPD_TLS_FPT_DGST "smtpd_tls_fingerprint_digest"
|
||||
#define DEF_SMTPD_TLS_FPT_DGST "${{$compatibility_level} <level {3.6} ? " \
|
||||
@ -11,7 +11,7 @@ Index: src/global/mail_params.h
|
||||
extern char *var_smtpd_tls_fpt_dgst;
|
||||
|
||||
#define VAR_SMTPD_TLS_512_FILE "smtpd_tls_dh512_param_file"
|
||||
@@ -1549,10 +1549,10 @@ extern char *var_smtp_tls_mand_excl;
|
||||
@@ -1553,10 +1553,10 @@ extern char *var_smtp_tls_mand_excl;
|
||||
|
||||
#define VAR_SMTP_TLS_FPT_DGST "smtp_tls_fingerprint_digest"
|
||||
#define DEF_SMTP_TLS_FPT_DGST "${{$compatibility_level} <level {3.6} ? " \
|
||||
@ -23,4 +23,4 @@ Index: src/global/mail_params.h
|
||||
+ "{sha1} : {sha256}}"
|
||||
extern char *var_smtp_tls_fpt_dgst;
|
||||
|
||||
#define VAR_SMTP_TLS_TAFILE "smtp_tls_trust_anchor_file"
|
||||
#define VAR_SMTP_TLS_ENABLE_RPK "smtp_tls_enable_rpk"
|
||||
|
@ -2,7 +2,7 @@ Index: src/tls/tls_client.c
|
||||
===================================================================
|
||||
--- src/tls/tls_client.c.orig
|
||||
+++ src/tls/tls_client.c
|
||||
@@ -693,6 +693,11 @@ TLS_APPL_STATE *tls_client_init(const TL
|
||||
@@ -700,6 +700,11 @@ TLS_APPL_STATE *tls_client_init(const TL
|
||||
SSL_CTX_set_security_level(client_ctx, 0);
|
||||
#endif
|
||||
|
||||
@ -18,7 +18,7 @@ Index: src/tls/tls_server.c
|
||||
===================================================================
|
||||
--- src/tls/tls_server.c.orig
|
||||
+++ src/tls/tls_server.c
|
||||
@@ -493,6 +493,10 @@ TLS_APPL_STATE *tls_server_init(const TL
|
||||
@@ -500,6 +500,10 @@ TLS_APPL_STATE *tls_server_init(const TL
|
||||
SSL_CTX_set_security_level(sni_ctx, 0);
|
||||
#endif
|
||||
|
||||
|
@ -19,7 +19,7 @@ Index: src/global/mail_params.h
|
||||
===================================================================
|
||||
--- src/global/mail_params.h.orig
|
||||
+++ src/global/mail_params.h
|
||||
@@ -2657,6 +2657,54 @@ extern char *var_virt_uid_maps;
|
||||
@@ -2661,6 +2661,54 @@ extern char *var_virt_uid_maps;
|
||||
#define DEF_VIRT_GID_MAPS ""
|
||||
extern char *var_virt_gid_maps;
|
||||
|
||||
|
762
postfix.changes
762
postfix.changes
File diff suppressed because it is too large
Load Diff
58
postfix.spec
58
postfix.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package postfix
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -42,18 +42,18 @@
|
||||
%if 0%{?suse_version} < 1599
|
||||
%bcond_without libnsl
|
||||
%else
|
||||
%bcond_with libnsl
|
||||
%bcond_with libnsl
|
||||
%endif
|
||||
%bcond_without ldap
|
||||
Name: postfix
|
||||
Version: 3.8.3
|
||||
Version: 3.9.0
|
||||
Release: 0
|
||||
Summary: A fast, secure, and flexible mailer
|
||||
License: IPL-1.0 OR EPL-2.0
|
||||
License: EPL-2.0 OR IPL-1.0
|
||||
Group: Productivity/Networking/Email/Servers
|
||||
URL: http://www.postfix.org
|
||||
Source0: http://cdn.postfix.johnriley.me/mirrors/postfix-release/official/postfix-%{version}.tar.gz
|
||||
Source1: http://cdn.postfix.johnriley.me/mirrors/postfix-release/official/postfix-%{version}.tar.gz.gpg2#/postfix-%{version}.tar.gz.asc
|
||||
Source0: https://de.postfix.org/ftpmirror/official/postfix-%{version}.tar.gz
|
||||
Source1: https://de.postfix.org/ftpmirror/official/postfix-%{version}.tar.gz.gpg2#/postfix-%{version}.tar.gz.asc
|
||||
Source2: %{name}-SUSE.tar.gz
|
||||
Source3: %{name}-mysql.tar.bz2
|
||||
Source4: postfix.keyring
|
||||
@ -108,15 +108,17 @@ BuildRequires: openldap2-devel
|
||||
%if %{with libnsl}
|
||||
BuildRequires: libnsl-devel
|
||||
%endif
|
||||
# /usr/lib/postfix/bin//postfix-script: line 400: cmp: command not found
|
||||
Requires: /usr/bin/cmp
|
||||
# /usr/lib/postfix/bin//post-install: line 667: ed: command not found
|
||||
Requires(pre): /usr/bin/ed
|
||||
Requires(preun): /usr/bin/ed
|
||||
Requires(post): /usr/bin/ed
|
||||
Requires(pre): /usr/bin/ed
|
||||
Requires(preun): /usr/bin/ed
|
||||
Requires(post): /usr/bin/ed
|
||||
Requires(postun): /usr/bin/ed
|
||||
# /usr/sbin/config.postfix needs perl
|
||||
Requires(pre): perl
|
||||
Requires(preun): perl
|
||||
Requires(post): perl
|
||||
Requires(pre): perl
|
||||
Requires(preun): perl
|
||||
Requires(post): perl
|
||||
Requires(postun): perl
|
||||
|
||||
%description
|
||||
@ -177,17 +179,7 @@ maps with Postfix, you need this.
|
||||
|
||||
%prep
|
||||
%setup -q -a 2 -a 3
|
||||
%patch1
|
||||
%patch2
|
||||
%patch3
|
||||
%patch4
|
||||
%patch5
|
||||
%patch6
|
||||
%patch7
|
||||
%patch8
|
||||
%patch9
|
||||
%patch10
|
||||
%patch11
|
||||
%autopatch -p0
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
@ -250,9 +242,19 @@ export PIE=-pie
|
||||
# using SHLIB_RPATH to specify unrelated linker flags, because LDFLAGS is
|
||||
# ignored
|
||||
%make_build makefiles pie=yes shared=yes dynamicmaps=yes \
|
||||
daemon_directory=%{pf_daemon_directory} \
|
||||
shlib_directory=%{_prefix}/lib/%{name} \
|
||||
meta_directory=%{_prefix}/lib/%{name} \
|
||||
config_directory=%{_sysconfdir}/%{name} \
|
||||
config_directory=%{pf_config_directory} \
|
||||
command_directory=%{pf_command_directory} \
|
||||
queue_directory=/%{pf_queue_directory} \
|
||||
sendmail_path=%{pf_sendmail_path} \
|
||||
newaliases_path=%{pf_newaliases_path} \
|
||||
mailq_path=%{pf_mailq_path} \
|
||||
manpage_directory=%{_mandir} \
|
||||
setgid_group=%{pf_setgid_group} \
|
||||
readme_directory=%{pf_readme_directory} \
|
||||
data_directory=%{pf_data_directory} \
|
||||
SHLIB_RPATH="-Wl,-rpath,%{pf_shlib_directory} -Wl,-z,relro,-z,now"
|
||||
%make_build
|
||||
# Create postfix user
|
||||
@ -378,6 +380,9 @@ cp -a examples/* %{buildroot}%{pf_sample_directory}
|
||||
cp -a html/* %{buildroot}%{pf_html_directory}
|
||||
cp -a auxiliary %{buildroot}%{pf_docdir}
|
||||
rm %{buildroot}%{pf_docdir}/README_FILES/INSTALL
|
||||
rm -r %{buildroot}%{pf_docdir}/auxiliary/qshape
|
||||
install -p auxiliary/qshape/qshape.pl %{buildroot}%{_sbindir}/qshape
|
||||
mantools/srctoman - auxiliary/qshape/qshape.pl > %{buildroot}%{_mandir}/man1/qshape.1
|
||||
# Fix build for Leap 42.3.
|
||||
rm -f %{buildroot}%{_sysconfdir}/%{name}/*.orig
|
||||
mkdir -p %{buildroot}%{_unitdir}/mail-transfer-agent.target.wants/
|
||||
@ -388,7 +393,9 @@ install -pm 0755 %{name}-SUSE/update_chroot.systemd %{buildroot}%{pf_shlib_dir
|
||||
install -pm 0755 %{name}-SUSE/update_postmaps.systemd %{buildroot}%{pf_shlib_directory}/systemd/update_postmaps
|
||||
install -pm 0755 %{name}-SUSE/wait_qmgr.systemd %{buildroot}%{pf_shlib_directory}/systemd/wait_qmgr
|
||||
install -pm 0755 %{name}-SUSE/cond_slp.systemd %{buildroot}%{pf_shlib_directory}/systemd/cond_slp
|
||||
%if 0%{?suse_version} < 1599
|
||||
ln -sv %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
|
||||
%endif
|
||||
ln -sv %{_unitdir}/%{name}.service %{buildroot}%{_unitdir}/mail-transfer-agent.target.wants/%{name}.service
|
||||
%fdupes %{buildroot}%{pf_docdir}
|
||||
%fdupes %{buildroot}%{_mandir}
|
||||
@ -548,13 +555,16 @@ fi
|
||||
%attr(0755,root,root) %{_sbindir}/postmap
|
||||
%attr(0755,root,root) %{_sbindir}/postmulti
|
||||
%attr(0755,root,root) %{_sbindir}/postsuper
|
||||
%attr(0755,root,root) %{_sbindir}/qshape
|
||||
%attr(0755,root,root) %{_sbindir}/qmqp-source
|
||||
%attr(0755,root,root) %{_sbindir}/smtp-sink
|
||||
%attr(0755,root,root) %{_sbindir}/smtp-source
|
||||
%attr(0755,root,root) %{_sbindir}/mk%{name}cert
|
||||
%attr(0755,root,root) %{_sbindir}/check_mail_queue
|
||||
%attr(0755,root,root) %{_sbindir}/config.%{name}
|
||||
%if 0%{?suse_version} < 1599
|
||||
%{_sbindir}/rc%{name}
|
||||
%endif
|
||||
%{_libdir}/lib*
|
||||
%{_libexecdir}/sendmail
|
||||
%dir %{pf_shlib_directory}
|
||||
|
@ -69,7 +69,7 @@ Index: src/global/mail_params.h
|
||||
===================================================================
|
||||
--- src/global/mail_params.h.orig
|
||||
+++ src/global/mail_params.h
|
||||
@@ -2960,7 +2960,7 @@ extern int var_vrfy_pend_limit;
|
||||
@@ -2964,7 +2964,7 @@ extern int var_vrfy_pend_limit;
|
||||
extern char *var_verify_service;
|
||||
|
||||
#define VAR_VERIFY_MAP "address_verify_map"
|
||||
@ -78,7 +78,7 @@ Index: src/global/mail_params.h
|
||||
extern char *var_verify_map;
|
||||
|
||||
#define VAR_VERIFY_POS_EXP "address_verify_positive_expire_time"
|
||||
@@ -3762,7 +3762,7 @@ extern char *var_multi_cntrl_cmds;
|
||||
@@ -3776,7 +3776,7 @@ extern char *var_multi_cntrl_cmds;
|
||||
* postscreen(8)
|
||||
*/
|
||||
#define VAR_PSC_CACHE_MAP "postscreen_cache_map"
|
||||
|
Loading…
Reference in New Issue
Block a user