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

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

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


Revision 1.12 - (hide annotations) (download)
Tue Apr 12 21:12:41 2022 UTC (2 years, 6 months ago) by jpp
Branch: MAIN
Changes since 1.11: +10 -5 lines
* Tue Apr 12 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-15.sme
- fix permissions as expected by mailman [SME: 11941]

1 jpp 1.12 # $Id: smeserver-mailman.spec,v 1.11 2022/04/12 04:58:37 jpp Exp $
2 brianr 1.1 # Authority: gordonr
3     # Name: Gordon Rowell
4    
5     # avoid brp bytecompile
6     %define __os_install_post %{nil}
7 jpp 1.10 %define debug_package %{nil}
8 brianr 1.1
9     Summary: Mailman configuration for SME server.
10     %define name smeserver-mailman
11     Name: %{name}
12     %define version 1.5.0
13 jpp 1.12 %define release 15
14 brianr 1.1 Version: %{version}
15     Release: %{release}%{?dist}
16     License: GPL
17     Group: Applications/Internet
18     Source: %{name}-%{version}.tar.gz
19     BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
20     BuildArchitectures: noarch
21     Requires: e-smith-base
22     Requires: e-smith-release >= 9.0
23     Requires: mailman >= 2.1.9-20.el5.sme
24     Requires: e-smith-formmagick >= 1.4.0-12
25     BuildRequires: e-smith-devtools >= 1.13.1-03
26     Obsoletes: e-smith-mailman
27     Provides: e-smith-mailman
28     AutoReqProv: no
29     Patch0: smeserver-mailman-1.5.0.bz2411.Backup_mailman.patch
30     Patch1: smeserver-mailman-1.5.0-locale-2016-03-09.patch
31 terryfage 1.5 Patch2: smeserver-mailman-1.5.0-locale-2021-08-22.patch
32 jpp 1.7 Patch3: smeserver-mailman-1.5.0-bz11278-systemd.patch
33 jpp 1.8 Patch4: smeserver-mailman-1.5.0-bz11278-wrapper.patch
34 jpp 1.11 Patch5: smeserver-mailman-1.5.0-bz11937.patch
35 jpp 1.12 Patch6: smeserver-mailman-1.5.0-bz11941-checkperms.patch
36 brianr 1.1
37     %description
38     Add Mailman integration to the SME server.
39    
40     %changelog
41 jpp 1.12 * Tue Apr 12 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-15.sme
42     - fix permissions as expected by mailman [SME: 11941]
43    
44 jpp 1.11 * Tue Apr 12 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-14.sme
45     - increase master password size to 18 [SME: 11937]
46    
47 jpp 1.8 * Sun Apr 10 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-13.sme
48     - add c wrapper with setuid [SME: 11278]
49    
50 jpp 1.7 * Sun Apr 10 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-12.sme
51     - fix missing service start [SME: 11278]
52     add update event
53    
54 jpp 1.6 * Tue Mar 15 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-11.sme
55     - fix www line should be after apache line in /etc/group [SME: 8056]
56    
57 terryfage 1.5 * Mon Aug 23 2021 Terry Fage <terry.fage@gmail.com> 1.5.0-10.sme
58     - apply locale 2021-08-22 patch
59    
60 jpp 1.4 * Thu Jun 03 2021 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-9.sme
61     - fix conflicting folders [SME: 11278]
62    
63 jpp 1.2 * Mon Feb 22 2021 JP Pialasse <tests@pialasse.com> 1.5.0-8.sme
64     - Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,
65     by assuming the date is correct and changing the weekday.
66     Thu May 21 2008 --> Thu May 15 2008 or Wed May 21 2008 or Thu May 22 2008 or ....
67     - allow build on SME10
68    
69 brianr 1.1 * Wed Mar 09 2016 JP Pialasse <tests@pialasse.com> 1.5.0-7.sme
70     - apply locale 2016-03-09 patch
71    
72     * Fri Sep 11 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.5.0-6.sme
73     - Mailman is now added to the backup/restore process [SME: 2411]
74     - Added smeserver-mailman-1.5.0.bz2411.Backup_mailman.patch
75    
76     * Fri Aug 21 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.5.0-5.sme
77     - mailman wants that the group apache appears before the www group in /etc/group
78     - script added in %pre to change that order. [SME: 8056]
79    
80     * Fri Aug 21 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.5.0-3.sme
81     - Initial release to contribs9 [SME: 8453]
82    
83     * Fri Jun 20 2014 stephane de Labrusse <stephdl@de-labrusse.fr> 1.5.0-1.sme
84     - Initial release to sme9
85    
86     * Fri Sep 20 2013 JP Pialasse <tests@pialasse.com> 1.3.0-45.sme
87     - fix bug [SME: 7787]
88    
89     * Thu Sep 19 2013 JP Pialasse <tests@pialasse.com> 1.3.0-44.sme
90     - fix case sensitive TRUE to true in smeserver-mailman-1.3.0-restarthang.patch
91     - wrong path to actions folder fixed
92     - see [SME: 7845]
93    
94     * Sun Jul 14 2013 JP Pialasse <tests@pialasse.com> 1.3.0-42.sme
95     - apply locale 2013-07-14 patch
96    
97     * Sun Jul 14 2013 JP Pialasse <tests@pialasse.com> 1.3.0-41.sme
98     - fix signal-event hang on mailman restart [SME ]
99     * Mon Jul 01 2013 JP Pialasse <tests@pialasse.com> 1.3.0-40.sme
100     - fix expanding pyc pyo [SME: 7730]
101    
102     * Mon Jul 01 2013 JP Pialasse <tests@pialasse.com> 1.3.0-38.sme
103     - import to sme8 buildsys
104     - fix bootstrap hang [SME: 6693]
105    
106     * Tue Mar 20 2012 SME Translation Server <translations@contribs.org> 1.3.0-37.el6
107     - apply locale 2012-03-20 patch
108    
109     * Wed Apr 27 2011 SME Translation Server <translations@contribs.org> 1.3.0-36.sme
110     - apply locale 2011-04-27 patch
111    
112     * Sun Mar 06 2011 SME Translation Server <translations@contribs.org> 1.3.0-35.sme
113     - apply locale 2011-03-06 patch
114    
115     * Tue Mar 02 2010 SME Translation Server <translations@contribs.org> 1.3.0-34.sme
116     - apply locale 2010-03-02 patch
117    
118     * Tue Oct 27 2009 SME Translation Server <translations@contribs.org> 1.3.0-33.sme
119     - apply locale 2009-10-27 patch
120    
121     * Mon Aug 24 2009 SME Translation Server <translations@contribs.org> 1.3.0-32.sme
122     - apply locale 2009-08-24 patch
123    
124     * Wed May 20 2009 SME Translation Server <translations@contribs.org> 1.3.0-31.sme
125     - apply locale 2009-05-20 patch
126    
127     * Mon Apr 27 2009 SME Translation Server <translations@contribs.org> 1.3.0-30.sme
128     - apply locale 2009-04-27 patch
129    
130     * Tue Mar 03 2009 SME Translation Server
131     - apply locale 2009-03-03 patch
132    
133     * Sun Mar 1 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.0-28
134     - Apply 1 Mar 2009 locale patch [SME: 5018]
135    
136     * Sat Jan 31 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.0-27
137     - Apply 31 Jan 2009 locale patch [SME: 4951]
138    
139     * Wed Nov 5 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.0-26
140     - Apply 5 Nov 2008 locale patch
141    
142     * Tue Oct 14 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.0-25
143     - Apply 14 Oct 2008 locale patch
144    
145     * Tue Jul 1 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.6-24
146     - Apply 1 July 2008 locale patch
147    
148     * Fri Jun 27 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.6-23
149     - Apply 27 Jun 2008 locale patch
150    
151 jpp 1.2 * Wed May 21 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.6-22
152     Thu May 21 2008 --> Thu May 15 2008 or Wed May 21 2008 or Thu May 22 2008 or ....
153 brianr 1.1 - Apply 21 May 2008 locale patch
154     - Fixed version number in previous changelog entry
155    
156     * Mon May 5 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.6-21
157     - Apply 5 May 2008 locale patch
158    
159     * Sat Apr 26 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.0-20
160     - Add common <base> tags to e-smith-formmagick's general
161    
162     * Sat Apr 26 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.0-19
163     - Added 26 April 2008 locale patch
164    
165     * Wed Apr 23 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.0-18
166     - Added 23 April 2008 locale patch
167     - Fixed changelog
168    
169     * Wed Apr 23 2008 Daniel B. <daniel@firewall-services.com> 1.3.0-17
170     - Fix path for the archives [SME: 4252]
171    
172     * Tue Apr 22 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.0-16
173     - Added 22 April 2008 locale patch
174    
175     * Sun Apr 29 2007 Shad L. Lords <slords@mail.com>
176     - Clean up spec so package can be built by koji/plague
177    
178     * Thu Dec 07 2006 Shad L. Lords <slords@mail.com>
179     - Update to new release naming. No functional changes.
180     - Make Packager generic
181    
182     * Fri Sep 22 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-15
183     - Allow hyphen in list names in smelist command [SME: 1307]
184    
185     * Fri Sep 22 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-14
186     - Add /sbin/e-smith/alias2mailman to convert hand-built alias files
187     to mailman lists. Converst ~alias/.qmail-<listname> to the mailman
188     list <listname>
189     - List owner is mailman{DefaultOwner} defaulting to admin
190    
191     * Fri Sep 22 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-13
192     - Fix various permissions to satisfy /usr/lib/mailman/check_perms
193     - Update mailman dependency to latest from CentOS
194    
195     * Wed Mar 8 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-12
196     - Run the addlist/rmlist actions before generic_template_expand [SME: 665]
197    
198     * Wed Mar 8 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-11
199     - Ensure that mailman record exists prior to trying to set the status
200    
201     * Wed Mar 8 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-10
202     - Adjust path in post-install script to match CentOS structure
203    
204     * Wed Mar 8 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-09
205     - Make further use of services2adjust and templates2expand
206    
207     * Wed Mar 8 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-08
208     - Make use of services2adjust and templates2expand
209     - Update dependency as this is for 7.0
210    
211     * Wed Mar 8 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-07
212     - Create qfiles heirarchy
213     - Fix up taint issue in smelist script
214    
215     * Thu Jan 5 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-06
216     - TODO: Check permissions on /var/spool/mailman/qfiles. The
217     'in' directory needs to be writable by the mailman CGI script,
218     which is running as www.
219    
220     * Thu Jan 5 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-05
221     - Remove postun section which depended on action scripts which
222     no longer exist
223    
224     * Fri Dec 23 2005 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-04
225     - Allow mail for mailman user
226     - TODO: We should have configurable allow/deny for system accounts
227    
228     * Tue Oct 25 2005 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-03
229     - No change
230     - TODO: Rewrite templates to new API and move to templates2expand
231     - TODO: Add pre script to relocate /opt/mailman parts for upgrades
232    
233     * Tue Oct 25 2005 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-02
234     - Require patched mailman - SME Server runs httpd as www, not apache
235     - Relocate paths from /opt/mailman to /usr/lib/mailman to match mailman pkg
236     - Changed references to accounts db to new location
237    
238     * Tue Oct 25 2005 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-01
239     - Package renamed to smeserver-mailman, including patches to 1.1.10-05
240     - TODO: Relocate to /usr/lib/mailman
241     - TODO: Change DB references, and rewrite to new API
242    
243     * Fri Oct 14 2005 Michael Soulier <msoulier@e-smith.com>
244     - [1.1.10-05]
245     - Fixed error with creation of alias file with dot in the name.
246    
247     * Wed Mar 16 2005 Michael Soulier <msoulier@e-smith.com>
248     - [1.1.10-04]
249     - Added FQDN of box as a potential virtual host.
250    
251     * Mon Mar 14 2005 Michael Soulier <msoulier@e-smith.com>
252     - [1.1.10-03]
253     - Removed circular event call.
254    
255     * Wed Feb 23 2005 Michael Soulier <msoulier@e-smith.com>
256     - [1.1.10-02]
257     - Forgot to set mode on smelist.
258    
259     * Wed Feb 16 2005 Michael Soulier <msoulier@e-smith.com>
260     - [1.1.10-01]
261     - Added hooks into domain creation and deletion.
262    
263     * Wed Feb 16 2005 Michael Soulier <msoulier@e-smith.com>
264     - [1.1.9-01]
265     - Rolling again to get past build error on sme61build.
266    
267     * Wed Feb 16 2005 Michael Soulier <msoulier@e-smith.com>
268     - [1.1.8-01]
269     - Added create-system-user call to make the mailman user.
270     - Added a link to the mailman UI.
271    
272     * Tue Feb 15 2005 Michael Soulier <msoulier@e-smith.com>
273     - [1.1.7-01]
274     - Updated mailman-conf to call a post-install script when first run. If this
275     is ever included in a blade, post-install should move to the blade handler.
276    
277     * Tue Feb 15 2005 Michael Soulier <msoulier@e-smith.com>
278     - [1.1.6-01]
279     - Fixed badly placed lib.
280     - Added post-install script to move it out of scriptlets.
281    
282     * Tue Feb 15 2005 Michael Soulier <msoulier@e-smith.com>
283     - [1.1.5-01]
284     - Added conf and restart actions.
285     - Added a simple panel.
286    
287     * Tue Feb 15 2005 Michael Soulier <msoulier@e-smith.com>
288     - [1.1.4-01]
289     - Fixed perms on /opt/mailman, and bad symlink.
290    
291     * Sun Feb 13 2005 Michael Soulier <msoulier@e-smith.com>
292     - [1.1.3-01]
293     - Fixed error in createlinks.
294    
295     * Sun Feb 13 2005 Michael Soulier <msoulier@e-smith.com>
296     - [1.1.2-01]
297     - Rolling initial build of imported package. [msoulier]
298    
299     * Sun Feb 13 2005 Michael Soulier <msoulier@e-smith.com>
300     - [1.1.1-01]
301     - Reimplementation after lost packages. Implementing for mailman 2.1.5.
302     [msoulier]
303    
304     * Sun Sep 08 2002 Shad L. Lords <slords@mail.com>
305     - 1.0-5
306     - updated addlist and rmlist to better handle conflicts
307    
308     * Sun Sep 01 2002 Shad L. Lords <slords@mail.com>
309     - 1.0-4
310     - updated accounts so that ezmlm can coexist with mailman
311    
312     * Tue Aug 27 2002 Shad L. Lords <slords@mail.com>
313     - 1.0-3
314     - make site have a random password on install
315     - make mailman list have random password on install
316    
317     * Sat Aug 24 2002 Shad L. Lords <slords@mail.com>
318     - 1.0-2
319     - changed mailman-addlist to set perms and ownership correctly.
320     - changed permissions from root,mailman to mailman,mailman
321    
322     * Fri Aug 23 2002 Shad L. Lords <slords@mail.com>
323     - 1.0-1
324     - Initial release
325    
326     %prep
327     %setup
328     %patch0 -p1
329     %patch1 -p1
330 terryfage 1.5 %patch2 -p1
331 jpp 1.7 %patch3 -p1
332 jpp 1.8 %patch4 -p1
333 jpp 1.11 %patch5 -p1
334 jpp 1.12 %patch6 -p1
335 brianr 1.1
336     #/bin/rm -r root/opt/mailman
337    
338     %build
339     perl createlinks
340 jpp 1.9 gcc -o root/usr/lib/mailman/bin/smelist smelist.c
341    
342    
343 brianr 1.1 mkdir -p root/usr/lib/mailman/aliases
344    
345     mkdir -p root/opt
346     ln -s /usr/lib/mailman root/opt/mailman
347     mkdir -p root/var/spool/mailman/qfiles
348     for dir in archive bounces commands in news out retry shunt virgin
349     do
350     mkdir -p root/var/spool/mailman/qfiles/$dir
351     done
352    
353     %install
354     rm -rf $RPM_BUILD_ROOT
355     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
356     rm -f e-smith-%{version}-filelist
357     /sbin/e-smith/genfilelist \
358     --dir '/var/spool/mailman' 'attr(02775,root,mailman)' \
359     --dir '/usr/lib/mailman/aliases' 'attr(02775,mailman,mailman)' \
360     --file '/usr/lib/mailman/bin/post-install' 'attr(0755,root,mailman)' \
361     --file '/usr/lib/mailman/bin/smelist' 'attr(04755,root,mailman)' \
362 jpp 1.12 --file '/usr/lib/mailman/bin/smelist.pl' 'attr(02755,root,mailman)' \
363     --file '/usr/lib/mailman/Mailman/MTA/SME.py' 'attr(02775,mailman,mailman)' \
364     --dir '/var/spool/mailman/qfiles' 'attr(02775,mailman,mailman)' \
365 brianr 1.1 --dir '/var/spool/mailman/qfiles/archive' 'attr(02770,mailman,mailman)' \
366     --dir '/var/spool/mailman/qfiles/bounces' 'attr(02770,mailman,mailman)' \
367     --dir '/var/spool/mailman/qfiles/commands' 'attr(02770,mailman,mailman)' \
368     --dir '/var/spool/mailman/qfiles/in' 'attr(02770,mailman,mailman)' \
369     --dir '/var/spool/mailman/qfiles/news' 'attr(02770,mailman,mailman)' \
370     --dir '/var/spool/mailman/qfiles/out' 'attr(02770,mailman,mailman)' \
371     --dir '/var/spool/mailman/qfiles/retry' 'attr(02770,mailman,mailman)' \
372     --dir '/var/spool/mailman/qfiles/shunt' 'attr(02770,mailman,mailman)' \
373     --dir '/var/spool/mailman/qfiles/virgin' 'attr(02770,mailman,mailman)' \
374     $RPM_BUILD_ROOT > %{name}-%{version}-filelist
375    
376 jpp 1.4 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
377     #those will conflict with mailman rpm on sme10
378     # --dir '/usr/lib/mailman' 'attr(02775,root,mailman)' \
379     # --dir '/usr/lib/mailman/bin' 'attr(02775,root,mailman)' \
380     # --dir '/usr/lib/mailman/Mailman' 'attr(02775,root,mailman)' \
381     # --dir '/usr/lib/mailman/Mailman/MTA' 'attr(02775,root,mailman)' \
382    
383 jpp 1.3 # SME10 to avoid error
384 brianr 1.1 #/usr/lib/rpm/brp-python-bytecompile
385 jpp 1.3 # fix for unwanted listed compiled python files
386     # those pyc and pyo gets added by default by genfilelist, so need to filtering them out when we disable byte compile.
387     #"/etc/e-smith/events/domain-create/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyc"
388     #"/etc/e-smith/events/domain-create/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyo"
389     #/etc/e-smith/events/domain-create/templates2expand/usr/lib/mailman/Mailman/mm_cfg.pyc
390 jpp 1.2 cat %{name}-%{version}-filelist |sed -r '/py[oc]"?$/d'>%{name}-%{version}-filelist.tmp
391 brianr 1.1 cat %{name}-%{version}-filelist.tmp> %{name}-%{version}-filelist
392    
393     %clean
394     rm -rf $RPM_BUILD_ROOT
395    
396     %files -f %{name}-%{version}-filelist
397    
398     %defattr(-,root,root)
399    
400     %pre
401     /sbin/e-smith/create-system-user mailman 41 \
402     "Mailman user" /usr/lib/mailman /bin/false
403    
404     #mailman wants that the apache group appears before the www group in /etc/group [SME: 8056]
405 jpp 1.6 TEST=`egrep "^apache:" /etc/group -n| cut -f1 -d:`
406     TEST2=`egrep "^www:" /etc/group -n| cut -f1 -d:`
407     if [[ $TEST > $TEST2 ]]; then
408 brianr 1.1 WWW=$(sed -n '/^www/p' /etc/group)
409     sed -i '/^www/d' /etc/group
410     echo $WWW >> /etc/group
411     fi
412    
413     %post
414    
415     %preun
416    
417     %postun

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