--- rpms/smeserver-mailman/contribs10/smeserver-mailman.spec 2021/08/23 00:10:40 1.5 +++ rpms/smeserver-mailman/contribs10/smeserver-mailman.spec 2022/07/24 02:03:37 1.15 @@ -1,15 +1,16 @@ -# $Id: smeserver-mailman.spec,v 1.4 2021/06/03 07:49:13 jpp Exp $ +# $Id: smeserver-mailman.spec,v 1.14 2022/07/24 01:52:07 jpp Exp $ # Authority: gordonr # Name: Gordon Rowell # avoid brp bytecompile %define __os_install_post %{nil} +%define debug_package %{nil} Summary: Mailman configuration for SME server. %define name smeserver-mailman Name: %{name} %define version 1.5.0 -%define release 10 +%define release 16 Version: %{version} Release: %{release}%{?dist} License: GPL @@ -28,11 +29,43 @@ AutoReqProv: no Patch0: smeserver-mailman-1.5.0.bz2411.Backup_mailman.patch Patch1: smeserver-mailman-1.5.0-locale-2016-03-09.patch Patch2: smeserver-mailman-1.5.0-locale-2021-08-22.patch +Patch3: smeserver-mailman-1.5.0-bz11278-systemd.patch +Patch4: smeserver-mailman-1.5.0-bz11278-wrapper.patch +Patch5: smeserver-mailman-1.5.0-bz11937.patch +Patch6: smeserver-mailman-1.5.0-bz11941-checkperms.patch +Patch7: smeserver-mailman-1.5.0-bz2248-bz2247-enabled-localonly.patch +Patch8: smeserver-mailman-1.5.0-locale-2022-07-24.patch +Patch9: smeserver-mailman-1.5.0-bz12015-backup.patch %description Add Mailman integration to the SME server. %changelog +* Sat Jul 23 2022 Jean-Philippe Pialasse 1.5.0-16.sme +- apply locale 2022-07-24.patch +- add to core backup [SME: 12015] +- fix [SME: ] + +* Tue Apr 12 2022 Jean-Philippe Pialasse 1.5.0-15.sme +- fix permissions as expected by mailman [SME: 11941] +- make mailman enabled on install [SME: 2248] +- by default listinfo is public [SME: 2247] +- by default admin and archives are private [SME: 2247] +- make access modifiable [SME: 2247] + +* Tue Apr 12 2022 Jean-Philippe Pialasse 1.5.0-14.sme +- increase master password size to 18 [SME: 11937] + +* Sun Apr 10 2022 Jean-Philippe Pialasse 1.5.0-13.sme +- add c wrapper with setuid [SME: 11278] + +* Sun Apr 10 2022 Jean-Philippe Pialasse 1.5.0-12.sme +- fix missing service start [SME: 11278] + add update event + +* Tue Mar 15 2022 Jean-Philippe Pialasse 1.5.0-11.sme +- fix www line should be after apache line in /etc/group [SME: 8056] + * Mon Aug 23 2021 Terry Fage 1.5.0-10.sme - apply locale 2021-08-22 patch @@ -307,11 +340,21 @@ Add Mailman integration to the SME serve %patch0 -p1 %patch1 -p1 %patch2 -p1 +%patch3 -p1 +%patch4 -p1 +%patch5 -p1 +%patch6 -p1 +%patch7 -p1 +%patch8 -p1 +%patch9 -p1 #/bin/rm -r root/opt/mailman %build perl createlinks +gcc -o root/usr/lib/mailman/bin/smelist smelist.c + + mkdir -p root/usr/lib/mailman/aliases mkdir -p root/opt @@ -331,8 +374,9 @@ rm -f e-smith-%{version}-filelist --dir '/usr/lib/mailman/aliases' 'attr(02775,mailman,mailman)' \ --file '/usr/lib/mailman/bin/post-install' 'attr(0755,root,mailman)' \ --file '/usr/lib/mailman/bin/smelist' 'attr(04755,root,mailman)' \ - --file '/usr/lib/mailman/Mailman/MTA/SME.py' 'attr(02775,root,mailman)' \ - --dir '/var/spool/mailman/qfiles' 'attr(02770,mailman,mailman)' \ + --file '/usr/lib/mailman/bin/smelist.pl' 'attr(02755,root,mailman)' \ + --file '/usr/lib/mailman/Mailman/MTA/SME.py' 'attr(02775,mailman,mailman)' \ + --dir '/var/spool/mailman/qfiles' 'attr(02775,mailman,mailman)' \ --dir '/var/spool/mailman/qfiles/archive' 'attr(02770,mailman,mailman)' \ --dir '/var/spool/mailman/qfiles/bounces' 'attr(02770,mailman,mailman)' \ --dir '/var/spool/mailman/qfiles/commands' 'attr(02770,mailman,mailman)' \ @@ -373,11 +417,9 @@ rm -rf $RPM_BUILD_ROOT "Mailman user" /usr/lib/mailman /bin/false #mailman wants that the apache group appears before the www group in /etc/group [SME: 8056] -TEST=$(grep -P '^www|apache' /etc/group) -TEST2='www:x:102:admin -apache:x:102:' - -if [[ $TEST == $TEST2 ]]; then +TEST=`egrep "^apache:" /etc/group -n| cut -f1 -d:` +TEST2=`egrep "^www:" /etc/group -n| cut -f1 -d:` +if [[ $TEST > $TEST2 ]]; then WWW=$(sed -n '/^www/p' /etc/group) sed -i '/^www/d' /etc/group echo $WWW >> /etc/group