/[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.11 - (show annotations) (download)
Tue Apr 12 04:58:37 2022 UTC (2 years, 6 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-mailman-1_5_0-14_el7_sme
Changes since 1.10: +7 -2 lines
* Tue Apr 12 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-14.sme
- increase master password size to 18 [SME: 11937]

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

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