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

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

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

Revision 1.4 by jpp, Thu Jun 3 07:49:13 2021 UTC Revision 1.11 by jpp, Tue Apr 12 04:58:37 2022 UTC
# Line 1  Line 1 
1  # $Id: smeserver-mailman.spec,v 1.3 2021/02/22 17:16:35 jpp Exp $  # $Id: smeserver-mailman.spec,v 1.10 2022/04/10 21:32:06 jpp 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 14
14  Version: %{version}  Version: %{version}
15  Release: %{release}%{?dist}  Release: %{release}%{?dist}
16  License: GPL  License: GPL
# Line 27  Provides: e-smith-mailman Line 28  Provides: e-smith-mailman
28  AutoReqProv: no  AutoReqProv: no
29  Patch0: smeserver-mailman-1.5.0.bz2411.Backup_mailman.patch  Patch0: smeserver-mailman-1.5.0.bz2411.Backup_mailman.patch
30  Patch1: smeserver-mailman-1.5.0-locale-2016-03-09.patch  Patch1: smeserver-mailman-1.5.0-locale-2016-03-09.patch
31    Patch2: smeserver-mailman-1.5.0-locale-2021-08-22.patch
32    Patch3: smeserver-mailman-1.5.0-bz11278-systemd.patch
33    Patch4: smeserver-mailman-1.5.0-bz11278-wrapper.patch
34    Patch5: smeserver-mailman-1.5.0-bz11937.patch
35    
36  %description  %description
37  Add Mailman integration to the SME server.  Add Mailman integration to the SME server.
38    
39  %changelog  %changelog
40    * Tue Apr 12 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-14.sme
41    - increase master password size to 18 [SME: 11937]
42    
43    * Sun Apr 10 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-13.sme
44    - add c wrapper with setuid [SME: 11278]
45    
46    * Sun Apr 10 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-12.sme
47    - fix missing service start [SME: 11278]
48      add update event
49    
50    * Tue Mar 15 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-11.sme
51    - fix www line  should be after apache line in /etc/group [SME: 8056]
52    
53    * Mon Aug 23 2021 Terry Fage <terry.fage@gmail.com> 1.5.0-10.sme
54    - apply locale 2021-08-22 patch
55    
56  * 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
57  - fix conflicting folders [SME: 11278]  - fix conflicting folders [SME: 11278]
58    
# Line 302  Add Mailman integration to the SME serve Line 323  Add Mailman integration to the SME serve
323  %setup  %setup
324  %patch0 -p1  %patch0 -p1
325  %patch1 -p1  %patch1 -p1
326    %patch2 -p1
327    %patch3 -p1
328    %patch4 -p1
329    %patch5 -p1
330    
331  #/bin/rm -r root/opt/mailman  #/bin/rm -r root/opt/mailman
332    
333  %build  %build
334  perl createlinks  perl createlinks
335    gcc -o root/usr/lib/mailman/bin/smelist smelist.c
336    
337    
338  mkdir -p root/usr/lib/mailman/aliases  mkdir -p root/usr/lib/mailman/aliases
339    
340  mkdir -p root/opt  mkdir -p root/opt
# Line 318  do Line 345  do
345      mkdir -p root/var/spool/mailman/qfiles/$dir      mkdir -p root/var/spool/mailman/qfiles/$dir
346  done  done
347    
   
348  %install  %install
349  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
350  (cd root   ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)  (cd root   ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
# Line 328  rm -f e-smith-%{version}-filelist Line 354  rm -f e-smith-%{version}-filelist
354      --dir '/usr/lib/mailman/aliases' 'attr(02775,mailman,mailman)' \      --dir '/usr/lib/mailman/aliases' 'attr(02775,mailman,mailman)' \
355      --file '/usr/lib/mailman/bin/post-install' 'attr(0755,root,mailman)' \      --file '/usr/lib/mailman/bin/post-install' 'attr(0755,root,mailman)' \
356      --file '/usr/lib/mailman/bin/smelist' 'attr(04755,root,mailman)' \      --file '/usr/lib/mailman/bin/smelist' 'attr(04755,root,mailman)' \
357        --file '/usr/lib/mailman/bin/smelist.pl' 'attr(02755,root,root)' \
358      --file '/usr/lib/mailman/Mailman/MTA/SME.py' 'attr(02775,root,mailman)' \      --file '/usr/lib/mailman/Mailman/MTA/SME.py' 'attr(02775,root,mailman)' \
359      --dir  '/var/spool/mailman/qfiles' 'attr(02770,mailman,mailman)' \      --dir  '/var/spool/mailman/qfiles' 'attr(02770,mailman,mailman)' \
360      --dir  '/var/spool/mailman/qfiles/archive' 'attr(02770,mailman,mailman)' \      --dir  '/var/spool/mailman/qfiles/archive' 'attr(02770,mailman,mailman)' \
# Line 348  sed -i -e '/\/usr\/lib\/mailman$/d ; /\/ Line 375  sed -i -e '/\/usr\/lib\/mailman$/d ; /\/
375  #   --dir '/usr/lib/mailman/Mailman' 'attr(02775,root,mailman)' \  #   --dir '/usr/lib/mailman/Mailman' 'attr(02775,root,mailman)' \
376  #  --dir '/usr/lib/mailman/Mailman/MTA' 'attr(02775,root,mailman)' \  #  --dir '/usr/lib/mailman/Mailman/MTA' 'attr(02775,root,mailman)' \
377    
   
378  # SME10 to avoid error  # SME10 to avoid error
379  #/usr/lib/rpm/brp-python-bytecompile  #/usr/lib/rpm/brp-python-bytecompile
380  # fix for unwanted listed compiled python files  # fix for unwanted listed compiled python files
# Line 371  rm -rf $RPM_BUILD_ROOT Line 397  rm -rf $RPM_BUILD_ROOT
397      "Mailman user" /usr/lib/mailman /bin/false      "Mailman user" /usr/lib/mailman /bin/false
398    
399  #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]
400  TEST=$(grep -P '^www|apache' /etc/group)  TEST=`egrep "^apache:" /etc/group -n| cut -f1 -d:`
401  TEST2='www:x:102:admin  TEST2=`egrep "^www:" /etc/group -n| cut -f1 -d:`
402  apache:x:102:'  if [[ $TEST > $TEST2 ]]; then
   
 if [[ $TEST == $TEST2 ]]; then  
403      WWW=$(sed -n '/^www/p' /etc/group)      WWW=$(sed -n '/^www/p' /etc/group)
404      sed -i '/^www/d' /etc/group      sed -i '/^www/d' /etc/group
405      echo $WWW >> /etc/group      echo $WWW >> /etc/group


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