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