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