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