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