/[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.5 - (show annotations) (download)
Mon Aug 23 00:10:40 2021 UTC (3 years, 2 months ago) by terryfage
Branch: MAIN
CVS Tags: smeserver-mailman-1_5_0-10_el7_sme
Changes since 1.4: +7 -5 lines
* Mon Aug 23 2021 Terry Fage <terry.fage@gmail.com> 1.5.0-10.sme
- apply locale 2021-08-22 patch

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

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