1 |
# $Id: smeserver-mailman.spec,v 1.3 2021/02/22 17:16:35 jpp Exp $ |
# $Id: smeserver-mailman.spec,v 1.19 2022/07/30 17:48:40 brianr 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 9 |
%define release 19 |
14 |
Version: %{version} |
Version: %{version} |
15 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
16 |
License: GPL |
License: GPL |
19 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
20 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
21 |
Requires: e-smith-base |
Requires: e-smith-base |
22 |
Requires: e-smith-release >= 9.0 |
Requires: e-smith-release >= 10.0 |
23 |
|
Requires: e-smith-apache >= 2.6.0-19 |
24 |
Requires: mailman >= 2.1.9-20.el5.sme |
Requires: mailman >= 2.1.9-20.el5.sme |
25 |
Requires: e-smith-formmagick >= 1.4.0-12 |
Requires: e-smith-formmagick >= 1.4.0-12 |
26 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
27 |
Obsoletes: e-smith-mailman |
Obsoletes: e-smith-mailman |
28 |
Provides: e-smith-mailman |
Provides: e-smith-mailman |
29 |
AutoReqProv: no |
AutoReqProv: no |
30 |
Patch0: smeserver-mailman-1.5.0.bz2411.Backup_mailman.patch |
#Patch0: smeserver-mailman-1.5.0.bz2411.Backup_mailman.patch |
31 |
Patch1: smeserver-mailman-1.5.0-locale-2016-03-09.patch |
Patch1: smeserver-mailman-1.5.0-locale-2016-03-09.patch |
32 |
|
Patch2: smeserver-mailman-1.5.0-locale-2021-08-22.patch |
33 |
|
Patch3: smeserver-mailman-1.5.0-bz11278-systemd.patch |
34 |
|
Patch4: smeserver-mailman-1.5.0-bz11278-wrapper.patch |
35 |
|
Patch5: smeserver-mailman-1.5.0-bz11937.patch |
36 |
|
Patch6: smeserver-mailman-1.5.0-bz11941-checkperms.patch |
37 |
|
Patch7: smeserver-mailman-1.5.0-bz2248-bz2247-enabled-localonly.patch |
38 |
|
Patch8: smeserver-mailman-1.5.0-locale-2022-07-24.patch |
39 |
|
Patch9: smeserver-mailman-1.5.0-bz12015-backup.patch |
40 |
|
Patch10: smeserver-mailman-1.5.0-bz12050-24syntax.patch |
41 |
|
Patch11: smeserver-mailman-1.5.0-locale-2022-11-11.patch |
42 |
|
|
43 |
%description |
%description |
44 |
Add Mailman integration to the SME server. |
Add Mailman integration to the SME server. |
45 |
|
|
46 |
%changelog |
%changelog |
47 |
|
* Fri Nov 11 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-19.sme |
48 |
|
- apply locale 2022-11-11 patch |
49 |
|
|
50 |
|
* Sat Jul 30 2022 Brian Read <brianr@bjsystems.co.uk> 1.5.0-18.sme |
51 |
|
- Re-build and link to latest devtools [SME: 11997] |
52 |
|
|
53 |
|
* Sat Jul 30 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-17.sme |
54 |
|
- update to httpd 2.4 access syntax [SME: 12050] |
55 |
|
- rebuild for core backup [SME: 12015] |
56 |
|
|
57 |
|
* Sat Jul 23 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-16.sme |
58 |
|
- apply locale 2022-07-24.patch |
59 |
|
- add to core backup [SME: 12015] |
60 |
|
remove patch only adding to dar in SME 2411 |
61 |
|
- already compatible with httpd 2.4 syntax [SME: 12050] |
62 |
|
|
63 |
|
* Tue Apr 12 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-15.sme |
64 |
|
- Re-build and link to latest devtools permissions as expected by mailman [SME: 11941] |
65 |
|
- make mailman enabled on install [SME: 2248] |
66 |
|
- by default listinfo is public [SME: 2247] |
67 |
|
- by default admin and archives are private [SME: 2247] |
68 |
|
- make access modifiable [SME: 2247] |
69 |
|
|
70 |
|
* Tue Apr 12 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-14.sme |
71 |
|
- increase master password size to 18 [SME: 11937] |
72 |
|
|
73 |
|
* Sun Apr 10 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-13.sme |
74 |
|
- add c wrapper with setuid [SME: 11278] |
75 |
|
|
76 |
|
* Sun Apr 10 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-12.sme |
77 |
|
- Re-build and link to latest devtools missing service start [SME: 11278] |
78 |
|
add update event |
79 |
|
|
80 |
|
* Tue Mar 15 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-11.sme |
81 |
|
- Re-build and link to latest devtools www line should be after apache line in /etc/group [SME: 8056] |
82 |
|
|
83 |
|
* Mon Aug 23 2021 Terry Fage <terry.fage@gmail.com> 1.5.0-10.sme |
84 |
|
- apply locale 2021-08-22 patch |
85 |
|
|
86 |
* Thu Jun 03 2021 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-9.sme |
* Thu Jun 03 2021 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-9.sme |
87 |
- fix conflicting folders [SME: 11278] |
- Re-build and link to latest devtools conflicting folders [SME: 11278] |
88 |
|
|
89 |
* Mon Feb 22 2021 JP Pialasse <tests@pialasse.com> 1.5.0-8.sme |
* Mon Feb 22 2021 JP Pialasse <tests@pialasse.com> 1.5.0-8.sme |
90 |
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, |
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, |
110 |
- Initial release to sme9 |
- Initial release to sme9 |
111 |
|
|
112 |
* Fri Sep 20 2013 JP Pialasse <tests@pialasse.com> 1.3.0-45.sme |
* Fri Sep 20 2013 JP Pialasse <tests@pialasse.com> 1.3.0-45.sme |
113 |
- fix bug [SME: 7787] |
- Re-build and link to latest devtools bug [SME: 7787] |
114 |
|
|
115 |
* Thu Sep 19 2013 JP Pialasse <tests@pialasse.com> 1.3.0-44.sme |
* Thu Sep 19 2013 JP Pialasse <tests@pialasse.com> 1.3.0-44.sme |
116 |
- fix case sensitive TRUE to true in smeserver-mailman-1.3.0-restarthang.patch |
- Re-build and link to latest devtools case sensitive TRUE to true in smeserver-mailman-1.3.0-restarthang.patch |
117 |
- wrong path to actions folder fixed |
- wrong path to actions folder fixed |
118 |
- see [SME: 7845] |
- see [SME: 7845] |
119 |
|
|
121 |
- apply locale 2013-07-14 patch |
- apply locale 2013-07-14 patch |
122 |
|
|
123 |
* Sun Jul 14 2013 JP Pialasse <tests@pialasse.com> 1.3.0-41.sme |
* Sun Jul 14 2013 JP Pialasse <tests@pialasse.com> 1.3.0-41.sme |
124 |
- fix signal-event hang on mailman restart [SME ] |
- Re-build and link to latest devtools signal-event hang on mailman restart [SME ] |
125 |
* Mon Jul 01 2013 JP Pialasse <tests@pialasse.com> 1.3.0-40.sme |
* Mon Jul 01 2013 JP Pialasse <tests@pialasse.com> 1.3.0-40.sme |
126 |
- fix expanding pyc pyo [SME: 7730] |
- Re-build and link to latest devtools expanding pyc pyo [SME: 7730] |
127 |
|
|
128 |
* Mon Jul 01 2013 JP Pialasse <tests@pialasse.com> 1.3.0-38.sme |
* Mon Jul 01 2013 JP Pialasse <tests@pialasse.com> 1.3.0-38.sme |
129 |
- import to sme8 buildsys |
- import to sme8 buildsys |
130 |
- fix bootstrap hang [SME: 6693] |
- Re-build and link to latest devtools bootstrap hang [SME: 6693] |
131 |
|
|
132 |
* Tue Mar 20 2012 SME Translation Server <translations@contribs.org> 1.3.0-37.el6 |
* Tue Mar 20 2012 SME Translation Server <translations@contribs.org> 1.3.0-37.el6 |
133 |
- apply locale 2012-03-20 patch |
- apply locale 2012-03-20 patch |
351 |
|
|
352 |
%prep |
%prep |
353 |
%setup |
%setup |
354 |
%patch0 -p1 |
#%patch0 -p1 |
355 |
%patch1 -p1 |
%patch1 -p1 |
356 |
|
%patch2 -p1 |
357 |
|
%patch3 -p1 |
358 |
|
%patch4 -p1 |
359 |
|
%patch5 -p1 |
360 |
|
%patch6 -p1 |
361 |
|
%patch7 -p1 |
362 |
|
%patch8 -p1 |
363 |
|
%patch9 -p1 |
364 |
|
%patch10 -p1 |
365 |
|
%patch11 -p1 |
366 |
|
|
367 |
#/bin/rm -r root/opt/mailman |
#/bin/rm -r root/opt/mailman |
368 |
|
|
369 |
%build |
%build |
370 |
perl createlinks |
perl createlinks |
371 |
|
gcc -o root/usr/lib/mailman/bin/smelist smelist.c |
372 |
|
|
373 |
|
|
374 |
mkdir -p root/usr/lib/mailman/aliases |
mkdir -p root/usr/lib/mailman/aliases |
375 |
|
|
376 |
mkdir -p root/opt |
mkdir -p root/opt |
381 |
mkdir -p root/var/spool/mailman/qfiles/$dir |
mkdir -p root/var/spool/mailman/qfiles/$dir |
382 |
done |
done |
383 |
|
|
|
|
|
384 |
%install |
%install |
385 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
386 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
390 |
--dir '/usr/lib/mailman/aliases' 'attr(02775,mailman,mailman)' \ |
--dir '/usr/lib/mailman/aliases' 'attr(02775,mailman,mailman)' \ |
391 |
--file '/usr/lib/mailman/bin/post-install' 'attr(0755,root,mailman)' \ |
--file '/usr/lib/mailman/bin/post-install' 'attr(0755,root,mailman)' \ |
392 |
--file '/usr/lib/mailman/bin/smelist' 'attr(04755,root,mailman)' \ |
--file '/usr/lib/mailman/bin/smelist' 'attr(04755,root,mailman)' \ |
393 |
--file '/usr/lib/mailman/Mailman/MTA/SME.py' 'attr(02775,root,mailman)' \ |
--file '/usr/lib/mailman/bin/smelist.pl' 'attr(02755,root,mailman)' \ |
394 |
--dir '/var/spool/mailman/qfiles' 'attr(02770,mailman,mailman)' \ |
--file '/usr/lib/mailman/Mailman/MTA/SME.py' 'attr(02775,mailman,mailman)' \ |
395 |
|
--dir '/var/spool/mailman/qfiles' 'attr(02775,mailman,mailman)' \ |
396 |
--dir '/var/spool/mailman/qfiles/archive' 'attr(02770,mailman,mailman)' \ |
--dir '/var/spool/mailman/qfiles/archive' 'attr(02770,mailman,mailman)' \ |
397 |
--dir '/var/spool/mailman/qfiles/bounces' 'attr(02770,mailman,mailman)' \ |
--dir '/var/spool/mailman/qfiles/bounces' 'attr(02770,mailman,mailman)' \ |
398 |
--dir '/var/spool/mailman/qfiles/commands' 'attr(02770,mailman,mailman)' \ |
--dir '/var/spool/mailman/qfiles/commands' 'attr(02770,mailman,mailman)' \ |
411 |
# --dir '/usr/lib/mailman/Mailman' 'attr(02775,root,mailman)' \ |
# --dir '/usr/lib/mailman/Mailman' 'attr(02775,root,mailman)' \ |
412 |
# --dir '/usr/lib/mailman/Mailman/MTA' 'attr(02775,root,mailman)' \ |
# --dir '/usr/lib/mailman/Mailman/MTA' 'attr(02775,root,mailman)' \ |
413 |
|
|
|
|
|
414 |
# SME10 to avoid error |
# SME10 to avoid error |
415 |
#/usr/lib/rpm/brp-python-bytecompile |
#/usr/lib/rpm/brp-python-bytecompile |
416 |
# fix for unwanted listed compiled python files |
# fix for unwanted listed compiled python files |
433 |
"Mailman user" /usr/lib/mailman /bin/false |
"Mailman user" /usr/lib/mailman /bin/false |
434 |
|
|
435 |
#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] |
436 |
TEST=$(grep -P '^www|apache' /etc/group) |
TEST=`egrep "^apache:" /etc/group -n| cut -f1 -d:` |
437 |
TEST2='www:x:102:admin |
TEST2=`egrep "^www:" /etc/group -n| cut -f1 -d:` |
438 |
apache:x:102:' |
if [[ $TEST > $TEST2 ]]; then |
|
|
|
|
if [[ $TEST == $TEST2 ]]; then |
|
439 |
WWW=$(sed -n '/^www/p' /etc/group) |
WWW=$(sed -n '/^www/p' /etc/group) |
440 |
sed -i '/^www/d' /etc/group |
sed -i '/^www/d' /etc/group |
441 |
echo $WWW >> /etc/group |
echo $WWW >> /etc/group |