/[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.2 by jpp, Mon Feb 22 17:02:30 2021 UTC Revision 1.10 by jpp, Sun Apr 10 21:32:06 2022 UTC
# Line 1  Line 1 
1  # $Id: smeserver-mailman.spec,v 1.1 2021/01/01 10:30:06 brianr Exp $  # $Id: smeserver-mailman.spec,v 1.9 2022/04/10 21:17:10 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 13
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    
35  %description  %description
36  Add Mailman integration to the SME server.  Add Mailman integration to the SME server.
37    
38  %changelog  %changelog
39    * Sun Apr 10 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-13.sme
40    - add c wrapper with setuid [SME: 11278]
41    
42    * Sun Apr 10 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-12.sme
43    - fix missing service start [SME: 11278]
44      add update event
45    
46    * Tue Mar 15 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-11.sme
47    - fix www line  should be after apache line in /etc/group [SME: 8056]
48    
49    * Mon Aug 23 2021 Terry Fage <terry.fage@gmail.com> 1.5.0-10.sme
50    - apply locale 2021-08-22 patch
51    
52    * Thu Jun 03 2021 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-9.sme
53    - fix conflicting folders [SME: 11278]
54    
55  * 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
56  - Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,  - Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,
57    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 319  Add Mailman integration to the SME serve
319  %setup  %setup
320  %patch0 -p1  %patch0 -p1
321  %patch1 -p1  %patch1 -p1
322    %patch2 -p1
323    %patch3 -p1
324    %patch4 -p1
325    
326  #/bin/rm -r root/opt/mailman  #/bin/rm -r root/opt/mailman
327    
328  %build  %build
329  perl createlinks  perl createlinks
330    gcc -o root/usr/lib/mailman/bin/smelist smelist.c
331    
332    
333  mkdir -p root/usr/lib/mailman/aliases  mkdir -p root/usr/lib/mailman/aliases
334    
335  mkdir -p root/opt  mkdir -p root/opt
# Line 315  do Line 340  do
340      mkdir -p root/var/spool/mailman/qfiles/$dir      mkdir -p root/var/spool/mailman/qfiles/$dir
341  done  done
342    
   
343  %install  %install
344  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
345  (cd root   ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)  (cd root   ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
346  rm -f e-smith-%{version}-filelist  rm -f e-smith-%{version}-filelist
347  /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)' \  
348      --dir '/var/spool/mailman' 'attr(02775,root,mailman)' \      --dir '/var/spool/mailman' 'attr(02775,root,mailman)' \
349      --dir '/usr/lib/mailman/aliases' 'attr(02775,mailman,mailman)' \      --dir '/usr/lib/mailman/aliases' 'attr(02775,mailman,mailman)' \
350      --file '/usr/lib/mailman/bin/post-install' 'attr(0755,root,mailman)' \      --file '/usr/lib/mailman/bin/post-install' 'attr(0755,root,mailman)' \
351      --file '/usr/lib/mailman/bin/smelist' 'attr(04755,root,mailman)' \      --file '/usr/lib/mailman/bin/smelist' 'attr(04755,root,mailman)' \
352      --dir '/usr/lib/mailman/Mailman' 'attr(02775,root,mailman)' \      --file '/usr/lib/mailman/bin/smelist.pl' 'attr(02755,root,root)' \
     --dir '/usr/lib/mailman/Mailman/MTA' 'attr(02775,root,mailman)' \  
353      --file '/usr/lib/mailman/Mailman/MTA/SME.py' 'attr(02775,root,mailman)' \      --file '/usr/lib/mailman/Mailman/MTA/SME.py' 'attr(02775,root,mailman)' \
354      --dir  '/var/spool/mailman/qfiles' 'attr(02770,mailman,mailman)' \      --dir  '/var/spool/mailman/qfiles' 'attr(02770,mailman,mailman)' \
355      --dir  '/var/spool/mailman/qfiles/archive' 'attr(02770,mailman,mailman)' \      --dir  '/var/spool/mailman/qfiles/archive' 'attr(02770,mailman,mailman)' \
# Line 342  rm -f e-smith-%{version}-filelist Line 363  rm -f e-smith-%{version}-filelist
363      --dir  '/var/spool/mailman/qfiles/virgin' 'attr(02770,mailman,mailman)' \      --dir  '/var/spool/mailman/qfiles/virgin' 'attr(02770,mailman,mailman)' \
364      $RPM_BUILD_ROOT > %{name}-%{version}-filelist      $RPM_BUILD_ROOT > %{name}-%{version}-filelist
365    
366  # SME8 build to avoid error  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
367  #/usr/lib/rpm/brp-python-bytecompile  #those will conflict with mailman rpm on sme10
368  #rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/domain-create/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyc  #    --dir '/usr/lib/mailman' 'attr(02775,root,mailman)' \
369  #rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/domain-create/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyo  #    --dir '/usr/lib/mailman/bin' 'attr(02775,root,mailman)' \
370  #rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/domain-delete/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyc  #   --dir '/usr/lib/mailman/Mailman' 'attr(02775,root,mailman)' \
371  #rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/domain-delete/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyo  #  --dir '/usr/lib/mailman/Mailman/MTA' 'attr(02775,root,mailman)' \
 #rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/bootstrap-console-save/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyc  
 #rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/bootstrap-console-save/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyo  
 #rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/mailman-update/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyc  
 #rm -rf $RPM_BUILD_ROOT/etc/e-smith/events/mailman-update/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyo  
 #rm -rf $RPM_BUILD_ROOT/usr/lib/mailman/Mailman/mm_cfg.pyc  
 #rm -rf $RPM_BUILD_ROOT/usr/lib/mailman/Mailman/mm_cfg.pyo  
 #rm -rf $RPM_BUILD_ROOT/usr/lib/mailman/Mailman/MTA/SME.pyc  
 #rm -rf $RPM_BUILD_ROOT/usr/lib/mailman/Mailman/MTA/SME.pyo  
372    
373  # fixe for unwanted listed compiled python files  # SME10 to avoid error
374    #/usr/lib/rpm/brp-python-bytecompile
375    # fix for unwanted listed compiled python files
376    # those pyc and pyo gets added by default by genfilelist, so need to filtering them out when we disable byte compile.
377    #"/etc/e-smith/events/domain-create/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyc"
378    #"/etc/e-smith/events/domain-create/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyo"
379    #/etc/e-smith/events/domain-create/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyc
380  cat %{name}-%{version}-filelist |sed -r '/py[oc]"?$/d'>%{name}-%{version}-filelist.tmp  cat %{name}-%{version}-filelist |sed -r '/py[oc]"?$/d'>%{name}-%{version}-filelist.tmp
381  cat %{name}-%{version}-filelist.tmp> %{name}-%{version}-filelist  cat %{name}-%{version}-filelist.tmp> %{name}-%{version}-filelist
 #rm -rf %{name}-%{version}-filelist.tmp  
382    
383  %clean  %clean
384  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
# Line 374  rm -rf $RPM_BUILD_ROOT Line 392  rm -rf $RPM_BUILD_ROOT
392      "Mailman user" /usr/lib/mailman /bin/false      "Mailman user" /usr/lib/mailman /bin/false
393    
394  #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]
395  TEST=$(grep -P '^www|apache' /etc/group)  TEST=`egrep "^apache:" /etc/group -n| cut -f1 -d:`
396  TEST2='www:x:102:admin  TEST2=`egrep "^www:" /etc/group -n| cut -f1 -d:`
397  apache:x:102:'  if [[ $TEST > $TEST2 ]]; then
   
 if [[ $TEST == $TEST2 ]]; then  
398      WWW=$(sed -n '/^www/p' /etc/group)      WWW=$(sed -n '/^www/p' /etc/group)
399      sed -i '/^www/d' /etc/group      sed -i '/^www/d' /etc/group
400      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