!70 [sync] PR-65: fix config changes

From: @openeuler-sync-bot 
Reviewed-by: @t_feng 
Signed-off-by: @t_feng
This commit is contained in:
openeuler-ci-bot 2024-05-23 06:47:15 +00:00 committed by Gitee
commit 36f02edb80
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,6 @@
Name: sendmail
Version: 8.17.1
Release: 7
Release: 8
Summary: A classic mail transfer agent from the Unix world
License: Sendmail
URL: http://www.sendmail.org/
@ -217,9 +217,10 @@ install -p -m 644 %{SOURCE14} $RPM_BUILD_ROOT%{_sysconfdir}/mail/mailertable
install -p -m 644 %{SOURCE15} $RPM_BUILD_ROOT%{_sysconfdir}/mail/trusted-users
sed -i -e 's|@@PATH@@|%{_datadir}/sendmail-cf|' $RPM_BUILD_ROOT%{_sysconfdir}/mail/sendmail.mc
sed -i -e 's|@@PATH@@|cf|' %{SOURCE9}
m4 %{SOURCE9} > $RPM_BUILD_ROOT%{_sysconfdir}/mail/sendmail.cf
chmod 644 $RPM_BUILD_ROOT%{_sysconfdir}/mail/sendmail.cf
cp $RPM_BUILD_ROOT%{_sysconfdir}/mail/sendmail.mc cf/cf/sendmail_tmp.mc
sed -i -e 's|%{_datadir}\/sendmail-cf|cf|' cf/cf/sendmail_tmp.mc
m4 cf/cf/sendmail_tmp.mc > cf/cf/sendmail.cf
install -m 644 cf/cf/sendmail.cf $RPM_BUILD_ROOT%{_sysconfdir}/mail/sendmail.cf
for map in virtusertable access domaintable mailertable ; do
touch $RPM_BUILD_ROOT%{_sysconfdir}/mail/${map}.db
@ -467,6 +468,12 @@ exit 0
%changelog
* Wed May 22 2024 xinghe <xinghe2@h-partners.com> - 8.17.1-8
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:fix config changes
* Fri Mar 10 2023 xinghe <xinghe2@h-partners.com> - 8.17.1-7
- Type:bugfix
- ID:NA