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

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

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


Revision 1.14 - (show annotations) (download)
Sun Jul 24 01:52:07 2022 UTC (22 months, 2 weeks ago) by jpp
Branch: MAIN
Changes since 1.13: +8 -2 lines
* Sat Jul 23 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-16.sme
- apply locale 2022-07-24.patch
- fix [SME: ]

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

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