1 |
# $Id: e-smith-qmail.spec,v 1.1 2013/02/07 21:37:32 slords Exp $ |
2 |
|
3 |
Summary: startup scripts for Dan Bernstein's qmail package |
4 |
%define name e-smith-qmail |
5 |
Name: %{name} |
6 |
%define version 2.4.0 |
7 |
%define release 2 |
8 |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
10 |
License: GPL |
11 |
Group: Networking/Daemons |
12 |
Source: %{name}-%{version}.tar.xz |
13 |
Patch1: e-smith-qmail-2.4.0-MaxMessageSize.patch |
14 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
15 |
BuildRequires: e-smith-devtools >= 1.13.0-04 |
16 |
BuildArchitectures: noarch |
17 |
Requires: qmail |
18 |
Requires: dot-forward |
19 |
Requires: fastforward |
20 |
Requires: runit |
21 |
Requires: e-smith-email |
22 |
Requires: qmail >= 1.03-17 |
23 |
Provides: e-smith-mta |
24 |
Conflicts: runit < 1.7 |
25 |
Obsoletes: qmail-initscripts |
26 |
Obsoletes: qmail-workaround |
27 |
AutoReqProv: no |
28 |
|
29 |
%changelog |
30 |
* Thu Feb 21 2013 Ian Wells <esmith@wellsi.com> 2.4.0-2.sme |
31 |
- Template Qmail MaxMessageSize [SME: 7393] |
32 |
|
33 |
* Wed Feb 6 2013 Shad L. Lords <slords@mail.com> 2.4.0-1.sme |
34 |
- Roll new stream for sme9 |
35 |
|
36 |
* Sun Jan 15 2012 Ian Wells <esmith@wellsi.com> 2.2.0-6.sme |
37 |
- Allow groups with dots, by Filippo Carletti [SME: 6694] |
38 |
|
39 |
* Thu Oct 14 2010 Daniel Berteaud <daniel@firewall-services.com> 2.2.0-5.sme |
40 |
- Read number of log files to keep from the DB [SME: 5855] |
41 |
|
42 |
* Sat Sep 05 2009 Gavin Weight <gweight@gmail.com> 2.2.0-4 |
43 |
- SMTPSmartHost template incorrectly uses brackets to avoid MX lookups. [SME: 5456] |
44 |
|
45 |
* Mon May 18 2009 Gavin Weight <gweight@gmail.com> 2.2.0-3 |
46 |
- smtproutes template incorrectly uses brackets to avoid MX lookups. [SME: 5257] |
47 |
|
48 |
* Tue May 12 2009 Filippo Carletti <filippo.carletti@gmail.com> 2.2.0-2 |
49 |
- Remove qmail-workaround and obsolete it after patch to treat 0.0.0.0 as a |
50 |
local ip [SME: 5171] |
51 |
|
52 |
* Tue Oct 7 2008 Shad L. Lords <slords@mail.com> 2.2.0-1.sme |
53 |
- Roll new stream to separate sme7/sme8 trees [SME: 4633] |
54 |
|
55 |
* Wed Apr 2 2008 Shad L. Lords <slords@mail.com> 1.10.0-16 |
56 |
- Create tcpto lockfile in run script [SME: 3055] |
57 |
|
58 |
* Wed Jan 09 2008 Stephen Noble <support@dungog.net> 1.10.0-15 |
59 |
- Domain catchall Redirection to Account [SME:1922] |
60 |
|
61 |
* Thu Sep 6 2007 Charlie Brady <charlie_brady@mitel.com> |
62 |
- Apply a code tidyup patch from Gordon. [SME: 871] |
63 |
|
64 |
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
65 |
- Clean up spec so package can be built by koji/plague |
66 |
|
67 |
* Fri Apr 06 2007 Shad L. Lords <slords@mail.com> 1.10.0-13 |
68 |
- Change ownership/perms on /var/qmail/alias directory [SME: 2709] |
69 |
|
70 |
* Thu Feb 15 2007 Charlie Brady <charlie_brady@mitel.com> |
71 |
- Use sv rather than deprecated runsvctrl in ip-up script. [SME: 2486] |
72 |
|
73 |
* Mon Jan 22 2007 Shad L. Lords <slords@mail.com> 1.10.0-11 |
74 |
- Allow admin user to be configured via users panel. [SME: 827] |
75 |
|
76 |
* Thu Dec 07 2006 Shad L. Lords <slords@mail.com> |
77 |
- Update to new release naming. No functional changes. |
78 |
- Make Packager generic |
79 |
|
80 |
* Fri Aug 25 2006 Gordon Rowell <gordonr@gormand.com.au> 1.10.0-10 |
81 |
- Force creation of junkmail folder as some users like to delete |
82 |
it [SME: 1130] |
83 |
|
84 |
* Mon Aug 14 2006 Gordon Rowell <gordonr@gormand.com.au> 1.10.0-09 |
85 |
- Allow optional EveryoneEmail property of user and 'admin' accounts |
86 |
If set to 'no', do not include this user in the shared/everyone |
87 |
email alias [SME: 1842] |
88 |
|
89 |
* Thu Aug 3 2006 Gordon Rowell <gordonr@gormand.com.au> 1.10.0-08 |
90 |
- Allow optional $smtpd{HeloHost} value for configuring HELO host, |
91 |
defaulting to $DomainName [SME: 1790] |
92 |
|
93 |
* Thu Jun 22 2006 Gordon Rowell <gordonr@gormand.com.au> 1.10.0-07 |
94 |
- Default qmail{MaxMessageSize} to 15,000,000 bytes [SME: 1624] |
95 |
|
96 |
* Mon May 15 2006 Gordon Rowell <gordonr@gormand.com.au> 1.10.0-06 |
97 |
- Bump version only [SME: 1415] |
98 |
|
99 |
* Wed May 10 2006 Gordon Rowell <gordonr@gormand.com.au> 1.10.0-05sme01 |
100 |
- Allow optional MailServer property of domains db records and |
101 |
deliver mail in this order of preference: |
102 |
- As per the MailServer property of the domain |
103 |
- $DelegateMailServer |
104 |
- localhost (i.e. locally) |
105 |
NOTE: |
106 |
- If DelegateMailServer is not set, the users must exist on the |
107 |
gateway or mail will be rejected |
108 |
- If DelegateMailServer is set, all mail for the domain will be |
109 |
forwarded to the relevant internal mail server [SME: 1253] |
110 |
|
111 |
* Wed May 10 2006 Gordon Rowell <gordonr@gormand.com.au> 1.10.0-04sme01 |
112 |
- Remove virtualdomains entries for hosts db entries. We only |
113 |
handle mail for domains without customisation [SME: 1415] |
114 |
|
115 |
* Sat Apr 8 2006 Charlie Brady <charlie_brady@mitel.com> 1.10.0-03 |
116 |
- Update group .qmail files when deleting/modifying users. [SME: 1200] |
117 |
|
118 |
* Thu Mar 23 2006 Charlie Brady <charlie_brady@mitel.com> 1.10.0-02 |
119 |
- Use shared library to block 0.0.0.0 MX mail loops. [SME: 1116] |
120 |
|
121 |
* Tue Mar 14 2006 Charlie Brady <charlie_brady@mitel.com> 1.10.0-01 |
122 |
- Roll stable stream version. [SME: 1016] |
123 |
|
124 |
* Fri Mar 03 2006 Charlie Brady <charlie_brady@mitel.com> 1.9.1-05 |
125 |
- Add ~alias/.qmail-shared-default symlink. [SME: 764] |
126 |
|
127 |
* Thu Feb 16 2006 Charlie Brady <charlieb@e-smith.com> 1.9.1-04 |
128 |
- Fix migration when AdminEmail is not set. [SME: 818] |
129 |
|
130 |
* Thu Feb 16 2006 Charlie Brady <charlieb@e-smith.com> 1.9.1-03 |
131 |
- Use standard user .qmail template for admin user. Migrate |
132 |
AdminEmail setting to $admin{ForwardAddress}. [SME: 818] |
133 |
|
134 |
* Tue Jan 24 2006 Charlie Brady <charlieb@e-smith.com> 1.9.1-02 |
135 |
- Fix duplicate symlink creation attempt in bootstrap-console-save |
136 |
directory (during RPM build). [SME: 555] |
137 |
|
138 |
* Wed Jan 11 2006 Gordon Rowell <gordonr@gormand.com.au> 1.9.1-01 |
139 |
- Roll patches to 1.9.0-16 |
140 |
- Change ~alias/.qmail{default,localdelivery-default,shared} into |
141 |
directory templates [SME: 440] |
142 |
|
143 |
* Wed Nov 30 2005 Gordon Rowell <gordonr@gormand.com.au> 1.9.0-16 |
144 |
- Bump release number only |
145 |
|
146 |
* Tue Nov 22 2005 Charlie Brady <charlieb@e-smith.com> |
147 |
- [1.9.0-15] |
148 |
- Fix broken symlink in group-delete event. Delete -default .qmail file |
149 |
when deleting group. [SF: 1363973] |
150 |
|
151 |
* Tue Nov 1 2005 Charlie Brady <charlieb@e-smith.com> |
152 |
- [1.9.0-14] |
153 |
- Improve /var/qmail/users/assign/70pseudonyms error handling. [SF: 1337029] |
154 |
- Fix error text from 60users template fragment. [SF: 1345206] |
155 |
|
156 |
* Fri Oct 21 2005 Gordon Rowell <gordonr@e-smith.com> |
157 |
- [1.9.0-13] |
158 |
- Add quotes around 'Recipient unknown' when calling bouncesaying. |
159 |
Otherwise we're trying to call a program called 'unknown' [SF: 1334002] |
160 |
|
161 |
* Wed Oct 19 2005 Charlie Brady <charlieb@e-smith.com> |
162 |
- [1.9.0-12] |
163 |
- Ensure failsafe .qmail file if EmailForward property is not set. |
164 |
[SF: 1330452] |
165 |
|
166 |
* Fri Oct 7 2005 Charlie Brady <charlieb@e-smith.com> |
167 |
- [1.9.0-11] |
168 |
- Expand virtualdomains in pseudonym-* events. Replace use of control/1 |
169 |
by generic actions, plus qmail-newu symlinked into event directories. |
170 |
[SF: 1311349] |
171 |
|
172 |
* Mon Sep 26 2005 Gordon Rowell <gordonr@gormand.com.au> |
173 |
- [1.9.0-10] |
174 |
- Split up templates-user/.qmail into fragments which return |
175 |
one or zero lines. It's much cleaner and helps with add-ons. |
176 |
Move .qmail/20Forward -> 70Forward to leave more room for |
177 |
add-ons [SF: 1252336] |
178 |
- Minor fixups - thanks Stephen Noble [SF: 1252336] |
179 |
- TODO: Remove the 10Filter stuff and migrate |
180 |
qmail{DeliveryInstruction} and qmail{DeliveryType} |
181 |
|
182 |
* Mon Sep 19 2005 Gordon Rowell <gordonr@e-smith.com> |
183 |
- [1.9.0-09] |
184 |
- Correct /var/qmail/users/assign/50system fragment so that |
185 |
mail for system accounts is delivered to admin [SF: 1284311] |
186 |
|
187 |
* Tue Sep 13 2005 Gordon Rowell <gordonr@gormand.com.au> |
188 |
- [1.9.0-08] |
189 |
- Add extension address handling for pseudonyms and groups. |
190 |
[SF: 1286823] |
191 |
|
192 |
* Mon Aug 22 2005 Charlie Brady <charlieb@e-smith.com> |
193 |
- [1.9.0-07] |
194 |
- Make correct /service symlink, so that a runit finds the |
195 |
run files. [SF: 1264668] |
196 |
|
197 |
* Wed Aug 10 2005 Shad Lords <slords@mail.com> |
198 |
- [1.9.0-06] |
199 |
- Add empty template-begin header for users/assign |
200 |
- Add requires for e-smith-email |
201 |
- Add provides e-smith-mta |
202 |
|
203 |
* Tue Aug 9 2005 Charlie Brady <charlieb@e-smith.com> |
204 |
- [1.9.0-05] |
205 |
- Add in all qmail specific code from e-smith-email. [SF: 1255261] |
206 |
|
207 |
* Wed Dec 29 2004 Charlie Brady <charlieb@e-smith.com> |
208 |
- [1.9.0-04] |
209 |
- Remove dangling conf-migrate-* symlink [charlieb MN00062545] |
210 |
|
211 |
* Tue Dec 28 2004 Charlie Brady <charlieb@e-smith.com> |
212 |
- [1.9.0-03] |
213 |
- Remove no longer needed conf-migrate-* action [charlieb MN00062545] |
214 |
- Replace deprecated Copyright header with License header. |
215 |
|
216 |
* Thu Feb 12 2004 Michael Soulier <msoulier@e-smith.com> |
217 |
- [1.9.0-02] |
218 |
- Updating with esmith::Build::CreateLinks, and the new genfilelist options. |
219 |
- Yanked migrate-qmail-logfiles, as it was causing problems. |
220 |
[msoulier dpar-20522] |
221 |
|
222 |
* Fri Feb 6 2004 Michael Soulier <msoulier@e-smith.com> |
223 |
- [1.9.0-01] |
224 |
- rolling to dev - 1.9.0 |
225 |
|
226 |
* Thu Aug 28 2003 Michael Soulier <msoulier@e-smith.com> |
227 |
- [1.8.0-02] |
228 |
- Adding K* init symlinks in runlevels 0, 1 and 6. [msoulier 9761] |
229 |
|
230 |
* Thu Jun 26 2003 Charlie Brady <charlieb@e-smith.com> |
231 |
- [1.8.0-01] |
232 |
- Changing version to stable stream number - 1.8.0 |
233 |
|
234 |
* Wed Nov 6 2002 Charlie Brady <charlieb@e-smith.com> |
235 |
- [1.7.0-01] |
236 |
- Rolling development stream version to 1.7.0 |
237 |
|
238 |
* Fri Oct 11 2002 Charlie Brady <charlieb@e-smith.com> |
239 |
- [1.6.0-01] |
240 |
- Roll to maintained version number to 1.6.0 |
241 |
|
242 |
* Fri Oct 11 2002 Charlie Brady <charlieb@e-smith.com> |
243 |
- [1.6.0-01] |
244 |
- Roll to maintained version number to 1.6.0 |
245 |
|
246 |
* Wed Aug 21 2002 Charlie Brady <charlieb@e-smith.com> |
247 |
- [1.5.1-01] |
248 |
- Remove bogus e-smith-base dependency, which shows as an unmet |
249 |
dependency on our workstations. |
250 |
- Add rc7.d symlink [charlieb 4458] |
251 |
|
252 |
* Wed Jun 5 2002 Charlie Brady <charlieb@e-smith.com> |
253 |
- [1.5.0-01] |
254 |
- Changing version to development stream number to 1.5.0 |
255 |
|
256 |
* Fri May 31 2002 Charlie Brady <charlieb@e-smith.com> |
257 |
- [1.4.0-01] |
258 |
- Changing version to maintained stream number to 1.4.0 |
259 |
|
260 |
* Thu May 23 2002 Gordon Rowell <gordonr@e-smith.com> |
261 |
- [1.3.9-01] |
262 |
- RPM rebuild forced by cvsroot2rpm |
263 |
|
264 |
* Thu May 23 2002 Gordon Rowell <gordonr@e-smith.com> |
265 |
- [1.3.8-01] |
266 |
- testing co2rpm --force |
267 |
|
268 |
* Thu May 23 2002 Charlie Brady <charlieb@e-smith.com> |
269 |
- [1.3.7-01] |
270 |
- Remove world read and execute permission from qmail log directory. |
271 |
|
272 |
* Thu Apr 18 2002 Gordon Rowell <gordonr@e-smith.com> |
273 |
- [1.3.6-01] |
274 |
- /supervise/qmail -> /service/qmail [gordonr 3044] |
275 |
|
276 |
* Thu Apr 18 2002 Gordon Rowell <gordonr@e-smith.com> |
277 |
- [1.3.5-01] |
278 |
- Added /bin, /usr/bin and /usr/local/bin to qmail's path [gordonr 3044] |
279 |
|
280 |
* Thu Apr 18 2002 Gordon Rowell <gordonr@e-smith.com> |
281 |
- [1.3.4-01] |
282 |
- And create /var/log/qmail [gordonr 3044] |
283 |
|
284 |
* Thu Apr 18 2002 Gordon Rowell <gordonr@e-smith.com> |
285 |
- [1.3.3-01] |
286 |
- And create directory for pipes to be written to [gordonr 3044] |
287 |
|
288 |
* Thu Apr 18 2002 Gordon Rowell <gordonr@e-smith.com> |
289 |
- [1.3.2-01] |
290 |
- Created pipes, symlinks and empty files in SPEC file [gordonr 3044] |
291 |
|
292 |
* Thu Apr 18 2002 Gordon Rowell <gordonr@e-smith.com> |
293 |
- [1.3.1-01] |
294 |
- Initial CVS import |
295 |
|
296 |
* Thu Apr 18 2002 Gordon Rowell <gordonr@e-smith.com> |
297 |
- [1.3.0-01] |
298 |
- rollRPM: Rolled version number to 1.3.0-01. Includes patches up to 1.2.0-02. |
299 |
|
300 |
* Fri Aug 17 2001 gordonr |
301 |
- [1.2.0-02] |
302 |
- Autorebuild by rebuildRPM |
303 |
|
304 |
* Wed Aug 8 2001 Charlie Brady <charlieb@e-smith.com> |
305 |
- [1.2.0-01] |
306 |
- Rolled version number to 1.2.0-01. Includes patches upto 1.1.0-04. |
307 |
|
308 |
* Tue May 1 2001 Peter Samuel <peters@e-smith.com> |
309 |
- [1.1.0-04] |
310 |
- added /var/log/qmail to filelist |
311 |
|
312 |
* Tue May 1 2001 Peter Samuel <peters@e-smith.com> |
313 |
- [1.1.0-03] |
314 |
- added migrate-qmail-logfiles action to post-upgrade |
315 |
|
316 |
* Mon Apr 30 2001 Peter Samuel <peters@e-smith.com> |
317 |
- [1.1.0-02] |
318 |
- added conf-migrate-qmail-variables actions to migrate qmail.init |
319 |
configuration variable to qmail |
320 |
- added e-smith header to files |
321 |
|
322 |
* Mon Apr 30 2001 Peter Samuel <peters@e-smith.com> |
323 |
- [1.1.0-01] |
324 |
- initial release |
325 |
|
326 |
%description |
327 |
Startup scripts for Dan Bernstein's qmail package. |
328 |
|
329 |
%prep |
330 |
%setup |
331 |
%patch1 -p1 |
332 |
|
333 |
%build |
334 |
perl createlinks |
335 |
|
336 |
%install |
337 |
rm -rf $RPM_BUILD_ROOT |
338 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
339 |
rm -f %{name}-%{version}-%{release}-filelist |
340 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
341 |
--dir '/var/service/qmail' 'attr(1755,root,root)' \ |
342 |
--file '/var/service/qmail/down' 'attr(0644,root,root)' \ |
343 |
--file '/var/service/qmail/run' 'attr(0755,root,root)' \ |
344 |
--file '/var/service/qmail/control/1' 'attr(0750,root,root)' \ |
345 |
--dir '/var/service/qmail/supervise' 'attr(0700,root,root)' \ |
346 |
--dir '/var/service/qmail/log' 'attr(0755,root,root)' \ |
347 |
--file '/var/service/qmail/log/run' 'attr(0755,root,root)' \ |
348 |
--dir '/var/service/qmail/log/supervise' 'attr(0700,root,root)' \ |
349 |
--dir '/var/log/qmail' 'attr(2750,qmaill,nofiles)' \ |
350 |
--dir '/var/qmail/alias' 'attr(2755,alias,qmail)' \ |
351 |
> %{name}-%{version}-%{release}-filelist |
352 |
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
353 |
|
354 |
%clean |
355 |
rm -rf $RPM_BUILD_ROOT |
356 |
|
357 |
%pre |
358 |
%preun |
359 |
%post |
360 |
%postun |
361 |
|
362 |
%files -f %{name}-%{version}-%{release}-filelist |
363 |
%defattr(-,root,root) |