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