1 |
# $Id: smeserver-mailman.spec,v 1.10 2013/09/20 15:59:31 unnilennium Exp $ |
# $Id: smeserver-mailman.spec,v 1.5 2015/09/07 17:27:21 stephdl Exp $ |
2 |
# Authority: gordonr |
# Authority: gordonr |
3 |
# Name: Gordon Rowell |
# Name: Gordon Rowell |
4 |
|
|
9 |
%define name smeserver-mailman |
%define name smeserver-mailman |
10 |
Name: %{name} |
Name: %{name} |
11 |
%define version 1.5.0 |
%define version 1.5.0 |
12 |
%define release 2 |
%define release 5 |
13 |
Version: %{version} |
Version: %{version} |
14 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
15 |
License: GPL |
License: GPL |
30 |
Add Mailman integration to the SME server. |
Add Mailman integration to the SME server. |
31 |
|
|
32 |
%changelog |
%changelog |
33 |
* Fri Aug 21 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.5.0-2.sme |
* Fri Aug 21 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.5.0-5.sme |
34 |
- Initial release to contribs9 |
- mailman wants that the group apache appears before the www group in /etc/group |
35 |
|
- script added in %pre to change that order. [SME: 8056] |
36 |
|
|
37 |
|
* Fri Aug 21 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.5.0-3.sme |
38 |
|
- Initial release to contribs9 [SME: 8453] |
39 |
|
|
40 |
* Fri Jun 20 2014 stephane de Labrusse <stephdl@de-labrusse.fr> 1.5.0-1.sme |
* Fri Jun 20 2014 stephane de Labrusse <stephdl@de-labrusse.fr> 1.5.0-1.sme |
41 |
- Initial release to sme9 |
- Initial release to sme9 |
108 |
* Thu May 21 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.6-22 |
* Thu May 21 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.6-22 |
109 |
- Apply 21 May 2008 locale patch |
- Apply 21 May 2008 locale patch |
110 |
- Fixed version number in previous changelog entry |
- Fixed version number in previous changelog entry |
|
* Fri Aug 21 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.5.0-2.sme |
|
|
- Initial release to contribs9 |
|
|
|
|
111 |
|
|
112 |
* Mon May 5 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.6-21 |
* Mon May 5 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.6-21 |
113 |
- Apply 5 May 2008 locale patch |
- Apply 5 May 2008 locale patch |
121 |
* Wed Apr 23 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.0-18 |
* Wed Apr 23 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.0-18 |
122 |
- Added 23 April 2008 locale patch |
- Added 23 April 2008 locale patch |
123 |
- Fixed changelog |
- Fixed changelog |
|
* Fri Aug 21 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.5.0-2.sme |
|
|
- Initial release to contribs9 |
|
|
|
|
124 |
|
|
125 |
* Wed Apr 23 2008 Daniel B. <daniel@firewall-services.com> 1.3.0-17 |
* Wed Apr 23 2008 Daniel B. <daniel@firewall-services.com> 1.3.0-17 |
126 |
- Fix path for the archives [SME: 4252] |
- Fix path for the archives [SME: 4252] |
354 |
/sbin/e-smith/create-system-user mailman 41 \ |
/sbin/e-smith/create-system-user mailman 41 \ |
355 |
"Mailman user" /usr/lib/mailman /bin/false |
"Mailman user" /usr/lib/mailman /bin/false |
356 |
|
|
357 |
|
#mailman wants that the apache group appears before the www group in /etc/group [SME: 8056] |
358 |
|
TEST=$(grep -P '^www|apache' /etc/group) |
359 |
|
TEST2='www:x:102:admin |
360 |
|
apache:x:102:' |
361 |
|
|
362 |
|
if [[ $TEST == $TEST2 ]]; then |
363 |
|
WWW=$(sed -n '/^www/p' /etc/group) |
364 |
|
sed -i '/^www/d' /etc/group |
365 |
|
echo $WWW >> /etc/group |
366 |
|
fi |
367 |
|
|
368 |
%post |
%post |
369 |
|
|
370 |
%preun |
%preun |