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

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

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


Revision 1.6 - (hide annotations) (download)
Tue Sep 8 12:15:10 2015 UTC (9 years, 1 month ago) by stephdl
Branch: MAIN
CVS Tags: smeserver-mailman-1_5_0-5_el6_sme
Changes since 1.5: +15 -9 lines
* Fri Aug 21 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.5.0-5.sme
- mailman wants that the group apache appears before the www group in /etc/group
- script added in %pre to change that order. [SME: 8056]

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

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