/[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.8 - (show annotations) (download)
Sun Apr 10 21:14:10 2022 UTC (2 years, 1 month ago) by jpp
Branch: MAIN
Changes since 1.7: +9 -2 lines
* Sun Apr 10 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.5.0-13.sme
- add c wrapper with setuid [SME: 11278]

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

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