/[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.3 by jpp, Mon Feb 22 17:16:35 2021 UTC Revision 1.15 by jpp, Sun Jul 24 02:03:37 2022 UTC
# Line 1  Line 1 
1  # $Id: smeserver-mailman.spec,v 1.2 2021/02/22 17:02:30 jpp Exp $  # $Id: smeserver-mailman.spec,v 1.14 2022/07/24 01:52:07 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 8  %define release 16
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    Patch6: smeserver-mailman-1.5.0-bz11941-checkperms.patch
36    Patch7: smeserver-mailman-1.5.0-bz2248-bz2247-enabled-localonly.patch
37    Patch8: smeserver-mailman-1.5.0-locale-2022-07-24.patch
38    Patch9: smeserver-mailman-1.5.0-bz12015-backup.patch
39    
40  %description  %description
41  Add Mailman integration to the SME server.  Add Mailman integration to the SME server.
42    
43  %changelog  %changelog
44    * Sat Jul 23 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-16.sme
45    - apply locale 2022-07-24.patch
46    - add to core backup [SME: 12015]
47    - fix [SME: ]
48    
49    * Tue Apr 12 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-15.sme
50    - fix permissions as expected by mailman [SME: 11941]
51    - make mailman enabled on install [SME: 2248]
52    - by default listinfo is public [SME: 2247]
53    - by default admin and archives are private [SME: 2247]
54    - make access modifiable [SME: 2247]
55    
56    * Tue Apr 12 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-14.sme
57    - increase master password size to 18 [SME: 11937]
58    
59    * Sun Apr 10 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-13.sme
60    - add c wrapper with setuid [SME: 11278]
61    
62    * Sun Apr 10 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-12.sme
63    - fix missing service start [SME: 11278]
64      add update event
65    
66    * Tue Mar 15 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-11.sme
67    - fix www line  should be after apache line in /etc/group [SME: 8056]
68    
69    * Mon Aug 23 2021 Terry Fage <terry.fage@gmail.com> 1.5.0-10.sme
70    - apply locale 2021-08-22 patch
71    
72    * Thu Jun 03 2021 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-9.sme
73    - fix conflicting folders [SME: 11278]
74    
75  * Mon Feb 22 2021 JP Pialasse <tests@pialasse.com> 1.5.0-8.sme  * Mon Feb 22 2021 JP Pialasse <tests@pialasse.com> 1.5.0-8.sme
76  - Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,  - Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,
77    by assuming the date is correct and changing the weekday.    by assuming the date is correct and changing the weekday.
# Line 299  Add Mailman integration to the SME serve Line 339  Add Mailman integration to the SME serve
339  %setup  %setup
340  %patch0 -p1  %patch0 -p1
341  %patch1 -p1  %patch1 -p1
342    %patch2 -p1
343    %patch3 -p1
344    %patch4 -p1
345    %patch5 -p1
346    %patch6 -p1
347    %patch7 -p1
348    %patch8 -p1
349    %patch9 -p1
350    
351  #/bin/rm -r root/opt/mailman  #/bin/rm -r root/opt/mailman
352    
353  %build  %build
354  perl createlinks  perl createlinks
355    gcc -o root/usr/lib/mailman/bin/smelist smelist.c
356    
357    
358  mkdir -p root/usr/lib/mailman/aliases  mkdir -p root/usr/lib/mailman/aliases
359    
360  mkdir -p root/opt  mkdir -p root/opt
# Line 315  do Line 365  do
365      mkdir -p root/var/spool/mailman/qfiles/$dir      mkdir -p root/var/spool/mailman/qfiles/$dir
366  done  done
367    
   
368  %install  %install
369  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
370  (cd root   ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)  (cd root   ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
371  rm -f e-smith-%{version}-filelist  rm -f e-smith-%{version}-filelist
372  /sbin/e-smith/genfilelist \  /sbin/e-smith/genfilelist \
     --dir '/usr/lib/mailman' 'attr(02775,root,mailman)' \  
     --dir '/usr/lib/mailman/bin' 'attr(02775,root,mailman)' \  
373      --dir '/var/spool/mailman' 'attr(02775,root,mailman)' \      --dir '/var/spool/mailman' 'attr(02775,root,mailman)' \
374      --dir '/usr/lib/mailman/aliases' 'attr(02775,mailman,mailman)' \      --dir '/usr/lib/mailman/aliases' 'attr(02775,mailman,mailman)' \
375      --file '/usr/lib/mailman/bin/post-install' 'attr(0755,root,mailman)' \      --file '/usr/lib/mailman/bin/post-install' 'attr(0755,root,mailman)' \
376      --file '/usr/lib/mailman/bin/smelist' 'attr(04755,root,mailman)' \      --file '/usr/lib/mailman/bin/smelist' 'attr(04755,root,mailman)' \
377      --dir '/usr/lib/mailman/Mailman' 'attr(02775,root,mailman)' \      --file '/usr/lib/mailman/bin/smelist.pl' 'attr(02755,root,mailman)' \
378      --dir '/usr/lib/mailman/Mailman/MTA' 'attr(02775,root,mailman)' \      --file '/usr/lib/mailman/Mailman/MTA/SME.py' 'attr(02775,mailman,mailman)' \
379      --file '/usr/lib/mailman/Mailman/MTA/SME.py' 'attr(02775,root,mailman)' \      --dir  '/var/spool/mailman/qfiles' 'attr(02775,mailman,mailman)' \
     --dir  '/var/spool/mailman/qfiles' 'attr(02770,mailman,mailman)' \  
380      --dir  '/var/spool/mailman/qfiles/archive' 'attr(02770,mailman,mailman)' \      --dir  '/var/spool/mailman/qfiles/archive' 'attr(02770,mailman,mailman)' \
381      --dir  '/var/spool/mailman/qfiles/bounces' 'attr(02770,mailman,mailman)' \      --dir  '/var/spool/mailman/qfiles/bounces' 'attr(02770,mailman,mailman)' \
382      --dir  '/var/spool/mailman/qfiles/commands' 'attr(02770,mailman,mailman)' \      --dir  '/var/spool/mailman/qfiles/commands' 'attr(02770,mailman,mailman)' \
# Line 342  rm -f e-smith-%{version}-filelist Line 388  rm -f e-smith-%{version}-filelist
388      --dir  '/var/spool/mailman/qfiles/virgin' 'attr(02770,mailman,mailman)' \      --dir  '/var/spool/mailman/qfiles/virgin' 'attr(02770,mailman,mailman)' \
389      $RPM_BUILD_ROOT > %{name}-%{version}-filelist      $RPM_BUILD_ROOT > %{name}-%{version}-filelist
390    
391    sed -i -e '/\/usr\/lib\/mailman$/d ; /\/usr\/lib\/mailman\/bin$/d ; /\/usr\/lib\/mailman\/Mailman$/d ; /\/usr\/lib\/mailman\/Mailman\/MTA$/d ' %{name}-%{version}-filelist
392    #those will conflict with mailman rpm on sme10
393    #    --dir '/usr/lib/mailman' 'attr(02775,root,mailman)' \
394    #    --dir '/usr/lib/mailman/bin' 'attr(02775,root,mailman)' \
395    #   --dir '/usr/lib/mailman/Mailman' 'attr(02775,root,mailman)' \
396    #  --dir '/usr/lib/mailman/Mailman/MTA' 'attr(02775,root,mailman)' \
397    
398  # SME10 to avoid error  # SME10 to avoid error
399  #/usr/lib/rpm/brp-python-bytecompile  #/usr/lib/rpm/brp-python-bytecompile
400  # fix for unwanted listed compiled python files  # fix for unwanted listed compiled python files
# Line 364  rm -rf $RPM_BUILD_ROOT Line 417  rm -rf $RPM_BUILD_ROOT
417      "Mailman user" /usr/lib/mailman /bin/false      "Mailman user" /usr/lib/mailman /bin/false
418    
419  #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]
420  TEST=$(grep -P '^www|apache' /etc/group)  TEST=`egrep "^apache:" /etc/group -n| cut -f1 -d:`
421  TEST2='www:x:102:admin  TEST2=`egrep "^www:" /etc/group -n| cut -f1 -d:`
422  apache:x:102:'  if [[ $TEST > $TEST2 ]]; then
   
 if [[ $TEST == $TEST2 ]]; then  
423      WWW=$(sed -n '/^www/p' /etc/group)      WWW=$(sed -n '/^www/p' /etc/group)
424      sed -i '/^www/d' /etc/group      sed -i '/^www/d' /etc/group
425      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