fix newaliases command error and postfix service start execption after sendmail install
This commit is contained in:
parent
d7004ee4e5
commit
d90ce16648
@ -54,7 +54,7 @@ makealiasesdb() {
|
|||||||
if [ "$(readlink -e /usr/bin/newaliases)" = /usr/sbin/sendmail.sendmail ]
|
if [ "$(readlink -e /usr/bin/newaliases)" = /usr/sbin/sendmail.sendmail ]
|
||||||
then
|
then
|
||||||
/usr/bin/newaliases > /dev/null
|
/usr/bin/newaliases > /dev/null
|
||||||
touch -r /etc/aliases.db aliasesdb-stamp 2> /dev/null
|
touch -r /etc/aliases.dir /etc/aliases.pag aliasesdb-stamp 2> /dev/null
|
||||||
else
|
else
|
||||||
rm -f aliasesdb-stamp
|
rm -f aliasesdb-stamp
|
||||||
fi
|
fi
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
Name: sendmail
|
Name: sendmail
|
||||||
Version: 8.17.1
|
Version: 8.17.1
|
||||||
Release: 4
|
Release: 5
|
||||||
Summary: A classic mail transfer agent from the Unix world
|
Summary: A classic mail transfer agent from the Unix world
|
||||||
License: Sendmail
|
License: Sendmail
|
||||||
URL: http://www.sendmail.org/
|
URL: http://www.sendmail.org/
|
||||||
@ -21,7 +21,7 @@ Source13: sendmail-etc-mail-local-host-names
|
|||||||
Source14: sendmail-etc-mail-mailertable
|
Source14: sendmail-etc-mail-mailertable
|
||||||
Source15: sendmail-etc-mail-trusted-users
|
Source15: sendmail-etc-mail-trusted-users
|
||||||
|
|
||||||
BuildRequires: openssl-devel openldap-devel libnsl2-devel
|
BuildRequires: openssl-devel openldap-devel libnsl2-devel gdbm-devel
|
||||||
BuildRequires: cyrus-sasl-devel groff ghostscript m4 systemd setup >= 2.5.31-1
|
BuildRequires: cyrus-sasl-devel groff ghostscript m4 systemd setup >= 2.5.31-1
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
Requires: bash >= 2.0 setup >= 2.5.31-1 %{_sbindir}/saslauthd
|
Requires: bash >= 2.0 setup >= 2.5.31-1 %{_sbindir}/saslauthd
|
||||||
@ -95,9 +95,9 @@ cp devtools/M4/UNIX/library.m4 devtools/M4/UNIX/sharedlibrary.m4
|
|||||||
export CFLAGS="${RPM_OPT_FLAGS}"
|
export CFLAGS="${RPM_OPT_FLAGS}"
|
||||||
|
|
||||||
cat << EOF > config.m4
|
cat << EOF > config.m4
|
||||||
define(\`confMAPDEF', \`-DNIS -DMAP_REGEX -DSOCKETMAP -DNAMED_BIND=1')
|
define(\`confMAPDEF', \`-DNDBM -DNIS -DMAP_REGEX -DSOCKETMAP -DNAMED_BIND=1')
|
||||||
define(\`confOPTIMIZE', \`\`\`\`${RPM_OPT_FLAGS}'''')
|
define(\`confOPTIMIZE', \`\`\`\`${RPM_OPT_FLAGS}'''')
|
||||||
define(\`confLIBS', \`-lnsl -lcrypt -lresolv')
|
define(\`confLIBS', \`-lgdbm -lgdbm_compat -lnsl -lcrypt -lresolv')
|
||||||
define(\`confSTDIR', \`%{_localstatedir}/log/mail')
|
define(\`confSTDIR', \`%{_localstatedir}/log/mail')
|
||||||
define(\`confLDOPTS', \`-Xlinker -z -Xlinker relro -Xlinker -z -Xlinker now')
|
define(\`confLDOPTS', \`-Xlinker -z -Xlinker relro -Xlinker -z -Xlinker now')
|
||||||
define(\`confMANOWN', \`root')
|
define(\`confMANOWN', \`root')
|
||||||
@ -467,6 +467,12 @@ exit 0
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Oct 12 2022 yanglu<yanglu72@h-partners.com> - 8.17.1-5
|
||||||
|
- Type:bugfix
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC: fix newaliases command error and postfix service start execption after sendmail install
|
||||||
|
|
||||||
* Thu Jul 28 2022 yanglu<yanglu72@h-partner.com> - 8.17.1-4
|
* Thu Jul 28 2022 yanglu<yanglu72@h-partner.com> - 8.17.1-4
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user