1 |
snetram |
1.11 |
# $Id: smeserver-mailman.spec,v 1.10 2008/04/28 23:21:44 slords Exp $ |
2 |
slords |
1.2 |
# Authority: gordonr |
3 |
|
|
# Name: Gordon Rowell |
4 |
|
|
|
5 |
slords |
1.1 |
Summary: Mailman configuration for SME server. |
6 |
|
|
%define name smeserver-mailman |
7 |
|
|
Name: %{name} |
8 |
|
|
%define version 1.3.0 |
9 |
snetram |
1.11 |
%define release 21 |
10 |
slords |
1.1 |
Version: %{version} |
11 |
|
|
Release: %{release}%{?dist} |
12 |
|
|
License: GPL |
13 |
|
|
Group: Applications/Internet |
14 |
|
|
Source: %{name}-%{version}.tar.gz |
15 |
|
|
Patch0: smeserver-mailman-1.3.0-relocate.patch |
16 |
|
|
Patch1: smeserver-mailman-1.3.0-relocate.patch2 |
17 |
|
|
Patch2: smeserver-mailman-1.3.0-mailmanmail.patch |
18 |
|
|
Patch3: smeserver-mailman-1.3.0-smelist.patch |
19 |
|
|
Patch4: smeserver-mailman-1.3.0-createlinks.patch2 |
20 |
|
|
Patch5: smeserver-mailman-1.3.0-postinstall.patch |
21 |
|
|
Patch6: smeserver-mailman-1.3.0-postinstall.patch2 |
22 |
|
|
Patch7: smeserver-mailman-1.3.0-firsttime.patch |
23 |
|
|
Patch8: smeserver-mailman-1.3.0-actionorder.patch |
24 |
|
|
Patch9: smeserver-mailman-1.3.0-alias2mailman.patch |
25 |
|
|
Patch10: smeserver-mailman-1.3.0-smelist.patch2 |
26 |
snetram |
1.3 |
Patch11: smeserver-mailman-1.3.0-locale-2008-04-22.patch |
27 |
vip-ire |
1.4 |
Patch12: smeserver-mailman-1.3.0-archives.patch |
28 |
snetram |
1.7 |
Patch13: smeserver-mailman-1.3.0-locale-2008-04-23.patch |
29 |
snetram |
1.8 |
Patch14: smeserver-mailman-1.3.0-locale-2008-04-26.patch |
30 |
snetram |
1.9 |
Patch15: smeserver-mailman-1.3.0-add2general.patch |
31 |
snetram |
1.11 |
Patch16: smeserver-mailman-1.3.0-locale-2008-05-05.patch |
32 |
slords |
1.1 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
33 |
|
|
BuildArchitectures: noarch |
34 |
|
|
Requires: e-smith-base |
35 |
|
|
Requires: e-smith-release >= 7.0 |
36 |
|
|
Requires: mailman >= 2.1.5.1-34.rhel4.3sme01 |
37 |
slords |
1.10 |
Requires: e-smith-formmagick >= 1.4.0-12 |
38 |
slords |
1.1 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
39 |
|
|
Obsoletes: e-smith-mailman |
40 |
|
|
Provides: e-smith-mailman |
41 |
|
|
AutoReqProv: no |
42 |
|
|
|
43 |
|
|
%description |
44 |
|
|
Add Mailman integration to the SME server. |
45 |
|
|
|
46 |
|
|
%changelog |
47 |
snetram |
1.11 |
* Mon May 5 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.6-9 |
48 |
|
|
- Apply 5 May 2008 locale patch |
49 |
|
|
|
50 |
snetram |
1.9 |
* Sat Apr 26 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.0-20 |
51 |
|
|
- Add common <base> tags to e-smith-formmagick's general |
52 |
|
|
|
53 |
snetram |
1.8 |
* Sat Apr 26 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.0-19 |
54 |
|
|
- Added 26 April 2008 locale patch |
55 |
|
|
|
56 |
snetram |
1.7 |
* Wed Apr 23 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.0-18 |
57 |
|
|
- Added 23 April 2008 locale patch |
58 |
|
|
- Fixed changelog |
59 |
|
|
|
60 |
vip-ire |
1.4 |
* Wed Apr 23 2008 Daniel B. <daniel@firewall-services.com> 1.3.0-17 |
61 |
snetram |
1.7 |
- Fix path for the archives [SME: 4252] |
62 |
vip-ire |
1.4 |
|
63 |
snetram |
1.7 |
* Tue Apr 22 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.3.0-16 |
64 |
snetram |
1.3 |
- Added 22 April 2008 locale patch |
65 |
|
|
|
66 |
slords |
1.1 |
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
67 |
|
|
- Clean up spec so package can be built by koji/plague |
68 |
|
|
|
69 |
|
|
* Thu Dec 07 2006 Shad L. Lords <slords@mail.com> |
70 |
|
|
- Update to new release naming. No functional changes. |
71 |
|
|
- Make Packager generic |
72 |
|
|
|
73 |
|
|
* Fri Sep 22 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-15 |
74 |
|
|
- Allow hyphen in list names in smelist command [SME: 1307] |
75 |
|
|
|
76 |
|
|
* Fri Sep 22 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-14 |
77 |
|
|
- Add /sbin/e-smith/alias2mailman to convert hand-built alias files |
78 |
|
|
to mailman lists. Converst ~alias/.qmail-<listname> to the mailman |
79 |
|
|
list <listname> |
80 |
|
|
- List owner is mailman{DefaultOwner} defaulting to admin |
81 |
|
|
|
82 |
|
|
* Fri Sep 22 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-13 |
83 |
|
|
- Fix various permissions to satisfy /usr/lib/mailman/check_perms |
84 |
|
|
- Update mailman dependency to latest from CentOS |
85 |
|
|
|
86 |
|
|
* Wed Mar 8 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-12 |
87 |
|
|
- Run the addlist/rmlist actions before generic_template_expand [SME: 665] |
88 |
|
|
|
89 |
|
|
* Wed Mar 8 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-11 |
90 |
|
|
- Ensure that mailman record exists prior to trying to set the status |
91 |
|
|
|
92 |
|
|
* Wed Mar 8 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-10 |
93 |
|
|
- Adjust path in post-install script to match CentOS structure |
94 |
|
|
|
95 |
|
|
* Wed Mar 8 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-09 |
96 |
|
|
- Make further use of services2adjust and templates2expand |
97 |
|
|
|
98 |
|
|
* Wed Mar 8 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-08 |
99 |
|
|
- Make use of services2adjust and templates2expand |
100 |
|
|
- Update dependency as this is for 7.0 |
101 |
|
|
|
102 |
|
|
* Wed Mar 8 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-07 |
103 |
|
|
- Create qfiles heirarchy |
104 |
|
|
- Fix up taint issue in smelist script |
105 |
|
|
|
106 |
|
|
* Thu Jan 5 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-06 |
107 |
|
|
- TODO: Check permissions on /var/spool/mailman/qfiles. The |
108 |
|
|
'in' directory needs to be writable by the mailman CGI script, |
109 |
|
|
which is running as www. |
110 |
|
|
|
111 |
|
|
* Thu Jan 5 2006 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-05 |
112 |
|
|
- Remove postun section which depended on action scripts which |
113 |
|
|
no longer exist |
114 |
|
|
|
115 |
|
|
* Fri Dec 23 2005 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-04 |
116 |
|
|
- Allow mail for mailman user |
117 |
|
|
- TODO: We should have configurable allow/deny for system accounts |
118 |
|
|
|
119 |
|
|
* Tue Oct 25 2005 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-03 |
120 |
|
|
- No change |
121 |
|
|
- TODO: Rewrite templates to new API and move to templates2expand |
122 |
|
|
- TODO: Add pre script to relocate /opt/mailman parts for upgrades |
123 |
|
|
|
124 |
|
|
* Tue Oct 25 2005 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-02 |
125 |
|
|
- Require patched mailman - SME Server runs httpd as www, not apache |
126 |
|
|
- Relocate paths from /opt/mailman to /usr/lib/mailman to match mailman pkg |
127 |
|
|
- Changed references to accounts db to new location |
128 |
|
|
|
129 |
|
|
* Tue Oct 25 2005 Gordon Rowell <gordonr@gormand.com.au> 1.3.0-01 |
130 |
|
|
- Package renamed to smeserver-mailman, including patches to 1.1.10-05 |
131 |
|
|
- TODO: Relocate to /usr/lib/mailman |
132 |
|
|
- TODO: Change DB references, and rewrite to new API |
133 |
|
|
|
134 |
|
|
* Fri Oct 14 2005 Michael Soulier <msoulier@e-smith.com> |
135 |
|
|
- [1.1.10-05] |
136 |
|
|
- Fixed error with creation of alias file with dot in the name. |
137 |
|
|
|
138 |
|
|
* Wed Mar 16 2005 Michael Soulier <msoulier@e-smith.com> |
139 |
|
|
- [1.1.10-04] |
140 |
|
|
- Added FQDN of box as a potential virtual host. |
141 |
|
|
|
142 |
|
|
* Mon Mar 14 2005 Michael Soulier <msoulier@e-smith.com> |
143 |
|
|
- [1.1.10-03] |
144 |
|
|
- Removed circular event call. |
145 |
|
|
|
146 |
|
|
* Wed Feb 23 2005 Michael Soulier <msoulier@e-smith.com> |
147 |
|
|
- [1.1.10-02] |
148 |
|
|
- Forgot to set mode on smelist. |
149 |
|
|
|
150 |
|
|
* Wed Feb 16 2005 Michael Soulier <msoulier@e-smith.com> |
151 |
|
|
- [1.1.10-01] |
152 |
|
|
- Added hooks into domain creation and deletion. |
153 |
|
|
|
154 |
|
|
* Wed Feb 16 2005 Michael Soulier <msoulier@e-smith.com> |
155 |
|
|
- [1.1.9-01] |
156 |
|
|
- Rolling again to get past build error on sme61build. |
157 |
|
|
|
158 |
|
|
* Wed Feb 16 2005 Michael Soulier <msoulier@e-smith.com> |
159 |
|
|
- [1.1.8-01] |
160 |
|
|
- Added create-system-user call to make the mailman user. |
161 |
|
|
- Added a link to the mailman UI. |
162 |
|
|
|
163 |
|
|
* Tue Feb 15 2005 Michael Soulier <msoulier@e-smith.com> |
164 |
|
|
- [1.1.7-01] |
165 |
|
|
- Updated mailman-conf to call a post-install script when first run. If this |
166 |
|
|
is ever included in a blade, post-install should move to the blade handler. |
167 |
|
|
|
168 |
|
|
* Tue Feb 15 2005 Michael Soulier <msoulier@e-smith.com> |
169 |
|
|
- [1.1.6-01] |
170 |
|
|
- Fixed badly placed lib. |
171 |
|
|
- Added post-install script to move it out of scriptlets. |
172 |
|
|
|
173 |
|
|
* Tue Feb 15 2005 Michael Soulier <msoulier@e-smith.com> |
174 |
|
|
- [1.1.5-01] |
175 |
|
|
- Added conf and restart actions. |
176 |
|
|
- Added a simple panel. |
177 |
|
|
|
178 |
|
|
* Tue Feb 15 2005 Michael Soulier <msoulier@e-smith.com> |
179 |
|
|
- [1.1.4-01] |
180 |
|
|
- Fixed perms on /opt/mailman, and bad symlink. |
181 |
|
|
|
182 |
|
|
* Sun Feb 13 2005 Michael Soulier <msoulier@e-smith.com> |
183 |
|
|
- [1.1.3-01] |
184 |
|
|
- Fixed error in createlinks. |
185 |
|
|
|
186 |
|
|
* Sun Feb 13 2005 Michael Soulier <msoulier@e-smith.com> |
187 |
|
|
- [1.1.2-01] |
188 |
|
|
- Rolling initial build of imported package. [msoulier] |
189 |
|
|
|
190 |
|
|
* Sun Feb 13 2005 Michael Soulier <msoulier@e-smith.com> |
191 |
|
|
- [1.1.1-01] |
192 |
|
|
- Reimplementation after lost packages. Implementing for mailman 2.1.5. |
193 |
|
|
[msoulier] |
194 |
|
|
|
195 |
|
|
* Sun Sep 08 2002 Shad L. Lords <slords@mail.com> |
196 |
|
|
- 1.0-5 |
197 |
|
|
- updated addlist and rmlist to better handle conflicts |
198 |
|
|
|
199 |
|
|
* Sun Sep 01 2002 Shad L. Lords <slords@mail.com> |
200 |
|
|
- 1.0-4 |
201 |
|
|
- updated accounts so that ezmlm can coexist with mailman |
202 |
|
|
|
203 |
|
|
* Tue Aug 27 2002 Shad L. Lords <slords@mail.com> |
204 |
|
|
- 1.0-3 |
205 |
|
|
- make site have a random password on install |
206 |
|
|
- make mailman list have random password on install |
207 |
|
|
|
208 |
|
|
* Sat Aug 24 2002 Shad L. Lords <slords@mail.com> |
209 |
|
|
- 1.0-2 |
210 |
|
|
- changed mailman-addlist to set perms and ownership correctly. |
211 |
|
|
- changed permissions from root,mailman to mailman,mailman |
212 |
|
|
|
213 |
|
|
* Fri Aug 23 2002 Shad L. Lords <slords@mail.com> |
214 |
|
|
- 1.0-1 |
215 |
|
|
- Initial release |
216 |
|
|
|
217 |
|
|
%prep |
218 |
|
|
%setup |
219 |
|
|
%patch0 -p1 |
220 |
|
|
%patch1 -p1 |
221 |
|
|
%patch2 -p1 |
222 |
|
|
%patch3 -p1 |
223 |
|
|
%patch4 -p1 |
224 |
|
|
%patch5 -p1 |
225 |
|
|
%patch6 -p1 |
226 |
|
|
%patch7 -p1 |
227 |
|
|
%patch8 -p1 |
228 |
|
|
%patch9 -p1 |
229 |
|
|
%patch10 -p1 |
230 |
snetram |
1.3 |
%patch11 -p1 |
231 |
vip-ire |
1.4 |
%patch12 -p1 |
232 |
snetram |
1.7 |
%patch13 -p1 |
233 |
snetram |
1.8 |
%patch14 -p1 |
234 |
snetram |
1.9 |
%patch15 -p1 |
235 |
snetram |
1.11 |
%patch16 -p1 |
236 |
slords |
1.1 |
|
237 |
|
|
/bin/rm -r root/opt/mailman |
238 |
|
|
|
239 |
|
|
%build |
240 |
|
|
perl createlinks |
241 |
|
|
mkdir -p root/usr/lib/mailman/aliases |
242 |
|
|
|
243 |
|
|
mkdir -p root/opt |
244 |
|
|
ln -s /usr/lib/mailman root/opt/mailman |
245 |
|
|
mkdir -p root/var/spool/mailman/qfiles |
246 |
|
|
for dir in archive bounces commands in news out retry shunt virgin |
247 |
|
|
do |
248 |
|
|
mkdir -p root/var/spool/mailman/qfiles/$dir |
249 |
|
|
done |
250 |
|
|
|
251 |
|
|
|
252 |
|
|
%install |
253 |
|
|
rm -rf $RPM_BUILD_ROOT |
254 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
255 |
|
|
rm -f e-smith-%{version}-filelist |
256 |
|
|
/sbin/e-smith/genfilelist \ |
257 |
|
|
--dir '/usr/lib/mailman' 'attr(02775,root,mailman)' \ |
258 |
|
|
--dir '/usr/lib/mailman/bin' 'attr(02775,root,mailman)' \ |
259 |
|
|
--dir '/var/spool/mailman' 'attr(02775,root,mailman)' \ |
260 |
|
|
--dir '/usr/lib/mailman/aliases' 'attr(02775,mailman,mailman)' \ |
261 |
|
|
--file '/usr/lib/mailman/bin/post-install' 'attr(0755,root,mailman)' \ |
262 |
|
|
--file '/usr/lib/mailman/bin/smelist' 'attr(04755,root,mailman)' \ |
263 |
|
|
--dir '/usr/lib/mailman/Mailman' 'attr(02775,root,mailman)' \ |
264 |
|
|
--dir '/usr/lib/mailman/Mailman/MTA' 'attr(02775,root,mailman)' \ |
265 |
|
|
--file '/usr/lib/mailman/Mailman/MTA/SME.py' 'attr(02775,root,mailman)' \ |
266 |
|
|
--dir '/var/spool/mailman/qfiles' 'attr(02770,mailman,mailman)' \ |
267 |
|
|
--dir '/var/spool/mailman/qfiles/archive' 'attr(02770,mailman,mailman)' \ |
268 |
|
|
--dir '/var/spool/mailman/qfiles/bounces' 'attr(02770,mailman,mailman)' \ |
269 |
|
|
--dir '/var/spool/mailman/qfiles/commands' 'attr(02770,mailman,mailman)' \ |
270 |
|
|
--dir '/var/spool/mailman/qfiles/in' 'attr(02770,mailman,mailman)' \ |
271 |
|
|
--dir '/var/spool/mailman/qfiles/news' 'attr(02770,mailman,mailman)' \ |
272 |
|
|
--dir '/var/spool/mailman/qfiles/out' 'attr(02770,mailman,mailman)' \ |
273 |
|
|
--dir '/var/spool/mailman/qfiles/retry' 'attr(02770,mailman,mailman)' \ |
274 |
|
|
--dir '/var/spool/mailman/qfiles/shunt' 'attr(02770,mailman,mailman)' \ |
275 |
|
|
--dir '/var/spool/mailman/qfiles/virgin' 'attr(02770,mailman,mailman)' \ |
276 |
|
|
$RPM_BUILD_ROOT > %{name}-%{version}-filelist |
277 |
|
|
|
278 |
|
|
%clean |
279 |
|
|
rm -rf $RPM_BUILD_ROOT |
280 |
|
|
|
281 |
|
|
%files -f %{name}-%{version}-filelist |
282 |
|
|
|
283 |
|
|
%defattr(-,root,root) |
284 |
|
|
|
285 |
|
|
%pre |
286 |
|
|
/sbin/e-smith/create-system-user mailman 41 \ |
287 |
|
|
"Mailman user" /usr/lib/mailman /bin/false |
288 |
|
|
|
289 |
|
|
%post |
290 |
|
|
|
291 |
|
|
%preun |
292 |
|
|
|
293 |
|
|
%postun |