1 |
|
# $Id$ |
2 |
|
|
3 |
# |
# |
4 |
# RPM spec file for Dan Bernstein's qmail package |
# RPM spec file for Dan Bernstein's qmail package |
5 |
# |
# |
9 |
%define name qmail |
%define name qmail |
10 |
Name: %{name} |
Name: %{name} |
11 |
%define version 1.03 |
%define version 1.03 |
12 |
%define release 13 |
%define release 16 |
13 |
Version: %{version} |
Version: %{version} |
14 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
15 |
License: Daniel J. Bernstein |
#Author: Daniel J. Bernstein |
16 |
|
License: Public Domain |
17 |
Group: Networking/Daemons |
Group: Networking/Daemons |
18 |
Source: http://cr.yp.to/software/%{name}-%{version}.tar.gz |
Source: http://cr.yp.to/software/%{name}-%{version}.tar.gz |
19 |
Patch0: qmail-1.03-echouser.patch |
Patch0: qmail-1.03-echouser.patch |
20 |
|
Patch1: http://homepages.tesco.net./~J.deBoynePollard/Softwares/qmail/any-to-cname.patch |
21 |
|
Patch2: qmail-103-dns_response_buffer.patch |
22 |
URL: http://cr.yp.to/%{name}.html |
URL: http://cr.yp.to/%{name}.html |
23 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
24 |
Provides: smtpdaemon |
Provides: smtpdaemon |
73 |
transparently by your current UAs. |
transparently by your current UAs. |
74 |
|
|
75 |
%changelog |
%changelog |
76 |
|
* Mon Mar 31 2008 Shad L. Lords <slords@mail.com> 1.03-16 |
77 |
|
- Create tcpto lockfile in post script [SME: 3055] |
78 |
|
|
79 |
|
* Mon Jan 28 2008 Charlie Brady <charlie_brady@mitel.com> 1.03-15 |
80 |
|
- Increase the buffer size for DNS responses. Patch is from |
81 |
|
http://www.ckdhr.com./ckd/qmail-103.patch [SME: 3827] |
82 |
|
- Update License information - qmail is now public domain: |
83 |
|
http://cr.yp.to/qmail/dist.html : |
84 |
|
|
85 |
|
I hereby place the qmail package (in particular, qmail-1.03.tar.gz, |
86 |
|
with MD5 checksum 622f65f982e380dbe86e6574f3abcb7c) into the public |
87 |
|
domain. |
88 |
|
|
89 |
|
* Mon Jan 28 2008 Charlie Brady <charlie_brady@mitel.com> 1.03-14 |
90 |
|
- Use CNAME lookup, rather than ANY lookup, to reduce the risk of |
91 |
|
oversized replies. [SME: 3827] |
92 |
|
|
93 |
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
94 |
- Clean up spec so package can be built by koji/plague |
- Clean up spec so package can be built by koji/plague |
95 |
|
|
194 |
|
|
195 |
%setup |
%setup |
196 |
%patch0 -p1 |
%patch0 -p1 |
197 |
|
%patch1 -p1 |
198 |
|
%patch2 -p1 |
199 |
|
|
200 |
%build |
%build |
201 |
echo gcc -O2 --include /usr/include/errno.h > conf-cc |
echo gcc -O2 --include /usr/include/errno.h > conf-cc |
287 |
done |
done |
288 |
|
|
289 |
mkfifo $RPM_BUILD_ROOT/var/qmail/queue/lock/trigger |
mkfifo $RPM_BUILD_ROOT/var/qmail/queue/lock/trigger |
|
dd bs=1024 count=1 if=/dev/zero of=$RPM_BUILD_ROOT/var/qmail/queue/lock/tcpto |
|
290 |
dd bs=1024 count=0 if=/dev/zero of=$RPM_BUILD_ROOT/var/qmail/queue/lock/sendmutex |
dd bs=1024 count=0 if=/dev/zero of=$RPM_BUILD_ROOT/var/qmail/queue/lock/sendmutex |
291 |
|
|
292 |
# Create the relative installation directories for the symlinks. |
# Create the relative installation directories for the symlinks. |
353 |
user_check qmailr $qmailr $qmail /var/qmail /bin/false |
user_check qmailr $qmailr $qmail /var/qmail /bin/false |
354 |
user_check qmails $qmails $qmail /var/qmail /bin/false |
user_check qmails $qmails $qmail /var/qmail /bin/false |
355 |
|
|
356 |
|
%post |
357 |
|
dd bs=1024 count=1 if=/dev/zero of=/var/qmail/queue/lock/tcpto &> /dev/null |
358 |
|
chown qmailr:qmail /var/qmail/queue/lock/tcpto &> /dev/null |
359 |
|
chmod 644 /var/qmail/queue/lock/tcpto &> /dev/null |
360 |
|
exit 0 |
361 |
|
|
362 |
%clean |
%clean |
363 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
660 |
%attr(644,root,qmail) /var/qmail/man/man8/qmail-qmtpd.8 |
%attr(644,root,qmail) /var/qmail/man/man8/qmail-qmtpd.8 |
661 |
%attr(644,root,qmail) /var/qmail/man/man8/qmail-smtpd.8 |
%attr(644,root,qmail) /var/qmail/man/man8/qmail-smtpd.8 |
662 |
%attr(644,root,qmail) /var/qmail/man/man8/qmail-command.8 |
%attr(644,root,qmail) /var/qmail/man/man8/qmail-command.8 |
|
%attr(644,qmailr,qmail) /var/qmail/queue/lock/tcpto |
|
663 |
%attr(600,qmails,qmail) /var/qmail/queue/lock/sendmutex |
%attr(600,qmails,qmail) /var/qmail/queue/lock/sendmutex |
664 |
%attr(622,qmails,qmail) /var/qmail/queue/lock/trigger |
%attr(622,qmails,qmail) /var/qmail/queue/lock/trigger |
665 |
%attr(777,root,root) /usr/lib/sendmail |
%attr(777,root,root) /usr/lib/sendmail |