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