1 |
# $Id: smeserver-mailman.spec,v 1.4 2015/08/21 17:26:10 stephdl Exp $ |
# $Id: smeserver-mailman.spec,v 1.7 2015/09/11 15:05:17 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 4 |
%define release 7 |
13 |
Version: %{version} |
Version: %{version} |
14 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
15 |
License: GPL |
License: GPL |
25 |
Obsoletes: e-smith-mailman |
Obsoletes: e-smith-mailman |
26 |
Provides: e-smith-mailman |
Provides: e-smith-mailman |
27 |
AutoReqProv: no |
AutoReqProv: no |
28 |
|
Patch0: smeserver-mailman-1.5.0.bz2411.Backup_mailman.patch |
29 |
|
Patch1: smeserver-mailman-1.5.0-locale-2016-03-09.patch |
30 |
|
|
31 |
%description |
%description |
32 |
Add Mailman integration to the SME server. |
Add Mailman integration to the SME server. |
33 |
|
|
34 |
%changelog |
%changelog |
35 |
* Fri Aug 21 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.5.0-4.sme |
* Wed Mar 09 2016 JP Pialasse <tests@pialasse.com> 1.5.0-7.sme |
36 |
|
- apply locale 2016-03-09 patch |
37 |
|
|
38 |
|
* Fri Sep 11 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.5.0-6.sme |
39 |
|
- Mailman is now added to the backup/restore process [SME: 2411] |
40 |
|
- Added smeserver-mailman-1.5.0.bz2411.Backup_mailman.patch |
41 |
|
|
42 |
|
* Fri Aug 21 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.5.0-5.sme |
43 |
- mailman wants that the group apache appears before the www group in /etc/group |
- mailman wants that the group apache appears before the www group in /etc/group |
44 |
- script added in %pre to change that order. [SME: 8453] |
- script added in %pre to change that order. [SME: 8056] |
45 |
|
|
46 |
* Fri Aug 21 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.5.0-3.sme |
* Fri Aug 21 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.5.0-3.sme |
47 |
- Initial release to contribs9 [SME: 8453] |
- Initial release to contribs9 [SME: 8453] |
290 |
|
|
291 |
%prep |
%prep |
292 |
%setup |
%setup |
293 |
|
%patch0 -p1 |
294 |
|
%patch1 -p1 |
295 |
|
|
296 |
|
|
297 |
#/bin/rm -r root/opt/mailman |
#/bin/rm -r root/opt/mailman |
298 |
|
|
366 |
/sbin/e-smith/create-system-user mailman 41 \ |
/sbin/e-smith/create-system-user mailman 41 \ |
367 |
"Mailman user" /usr/lib/mailman /bin/false |
"Mailman user" /usr/lib/mailman /bin/false |
368 |
|
|
369 |
#mailman wants that the apache group appears before the www group |
#mailman wants that the apache group appears before the www group in /etc/group [SME: 8056] |
370 |
WWW=$(sed -n '/^www/p' /etc/group) |
TEST=$(grep -P '^www|apache' /etc/group) |
371 |
sed -i '/^www/d' /etc/group |
TEST2='www:x:102:admin |
372 |
echo $WWW >> /etc/group |
apache:x:102:' |
373 |
|
|
374 |
|
if [[ $TEST == $TEST2 ]]; then |
375 |
|
WWW=$(sed -n '/^www/p' /etc/group) |
376 |
|
sed -i '/^www/d' /etc/group |
377 |
|
echo $WWW >> /etc/group |
378 |
|
fi |
379 |
|
|
380 |
%post |
%post |
381 |
|
|
382 |
%preun |
%preun |