1 |
# $Id: smeserver-mailman.spec,v 1.3 2015/08/21 17:20:19 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 3 |
%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 |
|
* 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 |
44 |
|
- 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 |
- Initial release to contribs9 [SME: 8453] |
48 |
|
|
49 |
* 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 |
50 |
- Initial release to sme9 |
- Initial release to sme9 |
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 in /etc/group [SME: 8056] |
370 |
|
TEST=$(grep -P '^www|apache' /etc/group) |
371 |
|
TEST2='www:x:102:admin |
372 |
|
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 |