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

Contents of /rpms/smeserver-mailman/contribs8/smeserver-mailman.spec

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


Revision 1.9 - (show annotations) (download)
Thu Sep 19 18:23:56 2013 UTC (10 years, 8 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-mailman-1_3_0-44_el5_sme
Changes since 1.8: +4 -3 lines
* Thu Sep 19 2013 JP Pialasse <tests@pialasse.com> 1.3.0-44.sme
- fix case sensitive TRUE to true in smeserver-mailman-1.3.0-restarthang.patch
- wrong path to actions folder fixed
- see [SME: 7845]

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

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