/[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.4 - (show annotations) (download)
Thu Jun 3 07:49:13 2021 UTC (2 years, 11 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-mailman-1_5_0-9_el7_sme
Changes since 1.3: +13 -6 lines
* Thu Jun 03 2021 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-9.sme
- fix conflicting folders [SME: 11278]

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

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