[packages/exim] Rel 4; Allow to specify trusted configs
arekm
arekm at pld-linux.org
Thu Aug 1 16:45:21 CEST 2024
commit 90069d1dcfce01e511776259973adf0360b9811d
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu Aug 1 16:09:33 2024 +0200
Rel 4; Allow to specify trusted configs
exim.spec | 8 ++++++--
exim4-EDITME.patch | 9 +++++++++
2 files changed, 15 insertions(+), 2 deletions(-)
---
diff --git a/exim.spec b/exim.spec
index 109661c..fd13afb 100644
--- a/exim.spec
+++ b/exim.spec
@@ -22,7 +22,7 @@ Summary(pl.UTF-8): Agent Transferu Poczty Uniwersytetu w Cambridge
Summary(pt_BR.UTF-8): Servidor de correio eletrônico exim
Name: exim
Version: 4.98
-Release: 3
+Release: 4
Epoch: 2
License: GPL v2+
Group: Networking/Daemons/SMTP
@@ -284,7 +284,7 @@ cp -f exim_monitor/EDITME Local/eximon.conf
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_sysconfdir}/mail
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/{exim,mail}
install -d $RPM_BUILD_ROOT/etc/{cron.daily,logrotate.d,rc.d/init.d,sysconfig,pam.d,security}
install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_mandir}/man8,/usr/lib}
install -d $RPM_BUILD_ROOT%{_var}/{spool/exim/{db,input,msglog},log/{archive,}/exim,mail}
@@ -324,6 +324,8 @@ install -d $RPM_BUILD_ROOT%{_includedir}/%{name}
install src/{local_scan,store,mytypes}.h $RPM_BUILD_ROOT%{_includedir}/%{name}
install build-Linux-*/config.h $RPM_BUILD_ROOT%{_includedir}/%{name}
+touch $RPM_BUILD_ROOT%{_sysconfdir}/exim/trusted_configs
+
touch $RPM_BUILD_ROOT%{_var}/log/exim/{main,reject,panic,process}.log
touch $RPM_BUILD_ROOT/etc/security/blacklist.smtp
@@ -361,6 +363,8 @@ fi
%defattr(644,root,root,755)
%doc README* NOTICE LICENCE analyse-log-errors doc/{ChangeLog,NewStuff,dbm.discuss.txt,filter.txt,spec.txt,Exim*.upgrade,OptionLists.txt,experimental-spec.txt} build-Linux-*/transport-filter.pl
%doc exim-html-*/exim-html-*/doc/html
+%dir %{_sysconfdir}/exim
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/exim/trusted_configs
%dir %{_sysconfdir}/mail
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mail/exim.conf
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mail/aliases
diff --git a/exim4-EDITME.patch b/exim4-EDITME.patch
index 7bb2088..9f69c6d 100644
--- a/exim4-EDITME.patch
+++ b/exim4-EDITME.patch
@@ -121,6 +121,15 @@
# Uncomment the following to remove support for the ESMTP extension "WELLKNOWN"
# DISABLE_WELLKNOWN=yes
+@@ -751,7 +751,7 @@ FIXED_NEVER_USERS=root
+ # the TRUSTED_CONFIG_LIST file, then root privileges are not dropped by Exim.
+
+ # TRUSTED_CONFIG_LIST=/usr/exim/trusted_configs
+-
++TRUSTED_CONFIG_LIST=/etc/exim/trusted_configs
+
+ #------------------------------------------------------------------------------
+ # Uncommenting this option disables the use of the -D command line option,
@@ -752,18 +753,18 @@ FIXED_NEVER_USERS=root
# included in the Exim binary. You will then need to set up the run time
# configuration to make use of the mechanism(s) selected.
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/exim.git/commitdiff/90069d1dcfce01e511776259973adf0360b9811d
More information about the pld-cvs-commit
mailing list