/[smecontribs]/rpms/smeserver-mailman/contribs9/smeserver-mailman.spec
ViewVC logotype

Contents of /rpms/smeserver-mailman/contribs9/smeserver-mailman.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.8 - (show annotations) (download)
Wed Mar 9 08:39:06 2016 UTC (8 years, 8 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-mailman-1_5_0-7_el6_sme, HEAD
Changes since 1.7: +9 -2 lines
Error occurred while calculating annotation data.
* Wed Mar 09 2016 JP Pialasse <tests@pialasse.com> 1.5.0-7.sme
- apply locale 2016-03-09 patch

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

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