/[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.6 - (show annotations) (download)
Tue Mar 15 18:15:59 2022 UTC (2 years, 8 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-mailman-1_5_0-11_el7_sme
Changes since 1.5: +8 -7 lines
* Tue Mar 15 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-11.sme
- fix www line  should be after apache line in /etc/group [SME: 8056]

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

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