/[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.7 - (show annotations) (download)
Sun Apr 10 20:18:28 2022 UTC (2 years, 7 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-mailman-1_5_0-12_el7_sme
Changes since 1.6: +8 -2 lines
* Sun Apr 10 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-12.sme
- fix missing service start [SME: 11278]
  add update event

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

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