/[smecontribs]/rpms/smeserver-mailman/contribs9/smeserver-mailman.spec
ViewVC logotype

Diff of /rpms/smeserver-mailman/contribs9/smeserver-mailman.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.5 by stephdl, Mon Sep 7 17:27:21 2015 UTC Revision 1.7 by stephdl, Fri Sep 11 15:05:17 2015 UTC
# Line 1  Line 1 
1  # $Id: smeserver-mailman.spec,v 1.4 2015/08/21 17:26:10 stephdl Exp $  # $Id: smeserver-mailman.spec,v 1.6 2015/09/08 12:15:10 stephdl Exp $
2  # Authority: gordonr  # Authority: gordonr
3  # Name: Gordon Rowell  # Name: Gordon Rowell
4    
# Line 9  Summary: Mailman configuration for SME s Line 9  Summary: Mailman configuration for SME s
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 6
13  Version: %{version}  Version: %{version}
14  Release: %{release}%{?dist}  Release: %{release}%{?dist}
15  License: GPL  License: GPL
# Line 25  BuildRequires: e-smith-devtools >= 1.13. Line 25  BuildRequires: e-smith-devtools >= 1.13.
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  %description  %description
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-4.sme  * Fri Sep 11 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.5.0-6.sme
34    - Mailman is now added to the backup/restore process [SME: 2411]
35    - Added smeserver-mailman-1.5.0.bz2411.Backup_mailman.patch
36    
37    * Fri Aug 21 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.5.0-5.sme
38  - 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
39  - script added in %pre to change that order. [SME: 8453]  - script added in %pre to change that order. [SME: 8056]
40    
41  * 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
42  - Initial release to contribs9 [SME: 8453]  - Initial release to contribs9 [SME: 8453]
# Line 281  Add Mailman integration to the SME serve Line 285  Add Mailman integration to the SME serve
285    
286  %prep  %prep
287  %setup  %setup
288    %patch0 -p1
289    
290  #/bin/rm -r root/opt/mailman  #/bin/rm -r root/opt/mailman
291    
# Line 354  rm -rf $RPM_BUILD_ROOT Line 359  rm -rf $RPM_BUILD_ROOT
359  /sbin/e-smith/create-system-user mailman 41 \  /sbin/e-smith/create-system-user mailman 41 \
360      "Mailman user" /usr/lib/mailman /bin/false      "Mailman user" /usr/lib/mailman /bin/false
361    
362  #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]
363  WWW=$(sed -n '/^www/p' /etc/group)  TEST=$(grep -P '^www|apache' /etc/group)
364  sed -i '/^www/d' /etc/group  TEST2='www:x:102:admin
365  echo $WWW >> /etc/group  apache:x:102:'
366    
367    if [[ $TEST == $TEST2 ]]; then
368        WWW=$(sed -n '/^www/p' /etc/group)
369        sed -i '/^www/d' /etc/group
370        echo $WWW >> /etc/group
371    fi
372    
373  %post  %post
374    
375  %preun  %preun


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed