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