/[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.18 - (show annotations) (download)
Sat Jul 30 04:23:49 2022 UTC (22 months, 1 week ago) by jpp
Branch: MAIN
CVS Tags: smeserver-mailman-1_5_0-17_el7_sme
Changes since 1.17: +10 -3 lines
* Sat Jul 30 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-17.sme
- update to httpd 2.4 access syntax [SME: 12050]
- rebuild for core backup [SME: 12015]

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

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