1 |
# $Id: smeserver-mailman.spec,v 1.4 2021/06/03 07:49:13 jpp Exp $ |
# $Id: smeserver-mailman.spec,v 1.12 2022/04/12 21:12:41 jpp Exp $ |
2 |
# Authority: gordonr |
# Authority: gordonr |
3 |
# Name: Gordon Rowell |
# Name: Gordon Rowell |
4 |
|
|
5 |
# avoid brp bytecompile |
# avoid brp bytecompile |
6 |
%define __os_install_post %{nil} |
%define __os_install_post %{nil} |
7 |
|
%define debug_package %{nil} |
8 |
|
|
9 |
Summary: Mailman configuration for SME server. |
Summary: Mailman configuration for SME server. |
10 |
%define name smeserver-mailman |
%define name smeserver-mailman |
11 |
Name: %{name} |
Name: %{name} |
12 |
%define version 1.5.0 |
%define version 1.5.0 |
13 |
%define release 10 |
%define release 15 |
14 |
Version: %{version} |
Version: %{version} |
15 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
16 |
License: GPL |
License: GPL |
29 |
Patch0: smeserver-mailman-1.5.0.bz2411.Backup_mailman.patch |
Patch0: smeserver-mailman-1.5.0.bz2411.Backup_mailman.patch |
30 |
Patch1: smeserver-mailman-1.5.0-locale-2016-03-09.patch |
Patch1: smeserver-mailman-1.5.0-locale-2016-03-09.patch |
31 |
Patch2: smeserver-mailman-1.5.0-locale-2021-08-22.patch |
Patch2: smeserver-mailman-1.5.0-locale-2021-08-22.patch |
32 |
|
Patch3: smeserver-mailman-1.5.0-bz11278-systemd.patch |
33 |
|
Patch4: smeserver-mailman-1.5.0-bz11278-wrapper.patch |
34 |
|
Patch5: smeserver-mailman-1.5.0-bz11937.patch |
35 |
|
Patch6: smeserver-mailman-1.5.0-bz11941-checkperms.patch |
36 |
|
Patch7: smeserver-mailman-1.5.0-bz2248-bz2247-enabled-localonly.patch |
37 |
|
|
38 |
%description |
%description |
39 |
Add Mailman integration to the SME server. |
Add Mailman integration to the SME server. |
40 |
|
|
41 |
%changelog |
%changelog |
42 |
|
* Tue Apr 12 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-15.sme |
43 |
|
- fix permissions as expected by mailman [SME: 11941] |
44 |
|
- make mailman enabled on install [SME: 2248] |
45 |
|
- by default listinfo is public [SME: 2247] |
46 |
|
- by default admin and archives are private [SME: 2247] |
47 |
|
- make access modifiable [SME: 2247] |
48 |
|
|
49 |
|
* Tue Apr 12 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-14.sme |
50 |
|
- increase master password size to 18 [SME: 11937] |
51 |
|
|
52 |
|
* Sun Apr 10 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-13.sme |
53 |
|
- add c wrapper with setuid [SME: 11278] |
54 |
|
|
55 |
|
* Sun Apr 10 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-12.sme |
56 |
|
- fix missing service start [SME: 11278] |
57 |
|
add update event |
58 |
|
|
59 |
|
* Tue Mar 15 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-11.sme |
60 |
|
- fix www line should be after apache line in /etc/group [SME: 8056] |
61 |
|
|
62 |
* Mon Aug 23 2021 Terry Fage <terry.fage@gmail.com> 1.5.0-10.sme |
* Mon Aug 23 2021 Terry Fage <terry.fage@gmail.com> 1.5.0-10.sme |
63 |
- apply locale 2021-08-22 patch |
- apply locale 2021-08-22 patch |
64 |
|
|
333 |
%patch0 -p1 |
%patch0 -p1 |
334 |
%patch1 -p1 |
%patch1 -p1 |
335 |
%patch2 -p1 |
%patch2 -p1 |
336 |
|
%patch3 -p1 |
337 |
|
%patch4 -p1 |
338 |
|
%patch5 -p1 |
339 |
|
%patch6 -p1 |
340 |
|
%patch7 -p1 |
341 |
|
|
342 |
#/bin/rm -r root/opt/mailman |
#/bin/rm -r root/opt/mailman |
343 |
|
|
344 |
%build |
%build |
345 |
perl createlinks |
perl createlinks |
346 |
|
gcc -o root/usr/lib/mailman/bin/smelist smelist.c |
347 |
|
|
348 |
|
|
349 |
mkdir -p root/usr/lib/mailman/aliases |
mkdir -p root/usr/lib/mailman/aliases |
350 |
|
|
351 |
mkdir -p root/opt |
mkdir -p root/opt |
365 |
--dir '/usr/lib/mailman/aliases' 'attr(02775,mailman,mailman)' \ |
--dir '/usr/lib/mailman/aliases' 'attr(02775,mailman,mailman)' \ |
366 |
--file '/usr/lib/mailman/bin/post-install' 'attr(0755,root,mailman)' \ |
--file '/usr/lib/mailman/bin/post-install' 'attr(0755,root,mailman)' \ |
367 |
--file '/usr/lib/mailman/bin/smelist' 'attr(04755,root,mailman)' \ |
--file '/usr/lib/mailman/bin/smelist' 'attr(04755,root,mailman)' \ |
368 |
--file '/usr/lib/mailman/Mailman/MTA/SME.py' 'attr(02775,root,mailman)' \ |
--file '/usr/lib/mailman/bin/smelist.pl' 'attr(02755,root,mailman)' \ |
369 |
--dir '/var/spool/mailman/qfiles' 'attr(02770,mailman,mailman)' \ |
--file '/usr/lib/mailman/Mailman/MTA/SME.py' 'attr(02775,mailman,mailman)' \ |
370 |
|
--dir '/var/spool/mailman/qfiles' 'attr(02775,mailman,mailman)' \ |
371 |
--dir '/var/spool/mailman/qfiles/archive' 'attr(02770,mailman,mailman)' \ |
--dir '/var/spool/mailman/qfiles/archive' 'attr(02770,mailman,mailman)' \ |
372 |
--dir '/var/spool/mailman/qfiles/bounces' 'attr(02770,mailman,mailman)' \ |
--dir '/var/spool/mailman/qfiles/bounces' 'attr(02770,mailman,mailman)' \ |
373 |
--dir '/var/spool/mailman/qfiles/commands' 'attr(02770,mailman,mailman)' \ |
--dir '/var/spool/mailman/qfiles/commands' 'attr(02770,mailman,mailman)' \ |
408 |
"Mailman user" /usr/lib/mailman /bin/false |
"Mailman user" /usr/lib/mailman /bin/false |
409 |
|
|
410 |
#mailman wants that the apache group appears before the www group in /etc/group [SME: 8056] |
#mailman wants that the apache group appears before the www group in /etc/group [SME: 8056] |
411 |
TEST=$(grep -P '^www|apache' /etc/group) |
TEST=`egrep "^apache:" /etc/group -n| cut -f1 -d:` |
412 |
TEST2='www:x:102:admin |
TEST2=`egrep "^www:" /etc/group -n| cut -f1 -d:` |
413 |
apache:x:102:' |
if [[ $TEST > $TEST2 ]]; then |
|
|
|
|
if [[ $TEST == $TEST2 ]]; then |
|
414 |
WWW=$(sed -n '/^www/p' /etc/group) |
WWW=$(sed -n '/^www/p' /etc/group) |
415 |
sed -i '/^www/d' /etc/group |
sed -i '/^www/d' /etc/group |
416 |
echo $WWW >> /etc/group |
echo $WWW >> /etc/group |