1 |
|
# $Id: qmail.spec,v 1.6 2008/04/09 13:51:54 slords Exp $ |
2 |
|
|
3 |
# |
# |
4 |
# RPM spec file for Dan Bernstein's qmail package |
# RPM spec file for Dan Bernstein's qmail package |
5 |
# |
# |
6 |
# $Id: qmail.spec,v 1.11 2004/11/10 20:10:55 charlieb Exp $ |
# $Id: qmail.spec,v 1.6 2008/04/09 13:51:54 slords Exp $ |
7 |
# |
# |
8 |
Summary: A modern, fast, secure replacement for sendmail |
Summary: A modern, fast, secure replacement for sendmail |
9 |
%define name qmail |
%define name qmail |
10 |
Name: %{name} |
Name: %{name} |
11 |
%define version 1.03 |
%define version 1.03 |
12 |
%define release 15 |
%define release 17 |
13 |
Version: %{version} |
Version: %{version} |
14 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
15 |
#Author: Daniel J. Bernstein |
#Author: Daniel J. Bernstein |
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 |
Patch1: http://homepages.tesco.net./~J.deBoynePollard/Softwares/qmail/any-to-cname.patch |
21 |
Patch2: qmail-103-dns_response_buffer.patch |
Patch2: qmail-103-dns_response_buffer.patch |
22 |
|
Patch3: http://www.suspectclass.com/sgifford/qmail/qmail-0.0.0.0.patch |
23 |
URL: http://cr.yp.to/%{name}.html |
URL: http://cr.yp.to/%{name}.html |
24 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
25 |
Provides: smtpdaemon |
Provides: smtpdaemon |
74 |
transparently by your current UAs. |
transparently by your current UAs. |
75 |
|
|
76 |
%changelog |
%changelog |
77 |
|
* Tue May 12 2009 Filippo Carletti <filippo.carletti@gmail.com> 1.03-17 |
78 |
|
- Add Scott Gifford patch to treat 0.0.0.0 as a local ip [SME: 5171] |
79 |
|
|
80 |
|
* Mon Mar 31 2008 Shad L. Lords <slords@mail.com> 1.03-16 |
81 |
|
- Create tcpto lockfile in post script [SME: 3055] |
82 |
|
|
83 |
* Mon Jan 28 2008 Charlie Brady <charlie_brady@mitel.com> 1.03-15 |
* Mon Jan 28 2008 Charlie Brady <charlie_brady@mitel.com> 1.03-15 |
84 |
- Increase the buffer size for DNS responses. Patch is from |
- Increase the buffer size for DNS responses. Patch is from |
85 |
http://www.ckdhr.com./ckd/qmail-103.patch [SME: 3827] |
http://www.ckdhr.com./ckd/qmail-103.patch [SME: 3827] |
200 |
%patch0 -p1 |
%patch0 -p1 |
201 |
%patch1 -p1 |
%patch1 -p1 |
202 |
%patch2 -p1 |
%patch2 -p1 |
203 |
|
%patch3 -p1 |
204 |
|
|
205 |
%build |
%build |
206 |
echo gcc -O2 --include /usr/include/errno.h > conf-cc |
echo gcc -O2 --include /usr/include/errno.h > conf-cc |
292 |
done |
done |
293 |
|
|
294 |
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 |
|
295 |
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 |
296 |
|
|
297 |
# Create the relative installation directories for the symlinks. |
# Create the relative installation directories for the symlinks. |
358 |
user_check qmailr $qmailr $qmail /var/qmail /bin/false |
user_check qmailr $qmailr $qmail /var/qmail /bin/false |
359 |
user_check qmails $qmails $qmail /var/qmail /bin/false |
user_check qmails $qmails $qmail /var/qmail /bin/false |
360 |
|
|
361 |
|
%post |
362 |
|
dd bs=1024 count=1 if=/dev/zero of=/var/qmail/queue/lock/tcpto &> /dev/null |
363 |
|
chown qmailr:qmail /var/qmail/queue/lock/tcpto &> /dev/null |
364 |
|
chmod 644 /var/qmail/queue/lock/tcpto &> /dev/null |
365 |
|
exit 0 |
366 |
|
|
367 |
%clean |
%clean |
368 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
665 |
%attr(644,root,qmail) /var/qmail/man/man8/qmail-qmtpd.8 |
%attr(644,root,qmail) /var/qmail/man/man8/qmail-qmtpd.8 |
666 |
%attr(644,root,qmail) /var/qmail/man/man8/qmail-smtpd.8 |
%attr(644,root,qmail) /var/qmail/man/man8/qmail-smtpd.8 |
667 |
%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 |
|
668 |
%attr(600,qmails,qmail) /var/qmail/queue/lock/sendmutex |
%attr(600,qmails,qmail) /var/qmail/queue/lock/sendmutex |
669 |
%attr(622,qmails,qmail) /var/qmail/queue/lock/trigger |
%attr(622,qmails,qmail) /var/qmail/queue/lock/trigger |
670 |
%attr(777,root,root) /usr/lib/sendmail |
%attr(777,root,root) /usr/lib/sendmail |