1 |
# $Id: qmail.spec,v 1.2 2016/12/05 15:52:16 vip-ire Exp $ |
# $Id: qmail.spec,v 1.5 2019/02/25 04:29:22 jpp 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.2 2016/12/05 15:52:16 vip-ire Exp $ |
# $Id: qmail.spec,v 1.5 2019/02/25 04:29:22 jpp 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 19 |
%define release 22 |
13 |
Version: %{version} |
Version: %{version} |
14 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
15 |
#Author: Daniel J. Bernstein |
#Author: Daniel J. Bernstein |
16 |
License: Public Domain |
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 |
|
Source1: http://notes.sagredo.eu/sites/notes.sagredo.eu/files/qmail/patches/moreipme.README |
20 |
Patch0: qmail-1.03-echouser.patch |
Patch0: qmail-1.03-echouser.patch |
21 |
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 |
22 |
Patch2: qmail-103-dns_response_buffer.patch |
Patch2: qmail-103-dns_response_buffer.patch |
23 |
#Patch3: http://www.suspectclass.com/sgifford/qmail/qmail-0.0.0.0.patch |
#Patch3: http://www.suspectclass.com/sgifford/qmail/qmail-0.0.0.0.patch |
24 |
Patch4: qmail-inject-null-sender.patch |
Patch4: qmail-inject-null-sender.patch |
25 |
Patch5: http://notes.sagredo.eu/sites/notes.sagredo.eu/files/qmail/patches/qmail-1.03-moreipme-0.6.patch |
Patch5: http://notes.sagredo.eu/sites/notes.sagredo.eu/files/qmail/patches/qmail-1.03-moreipme-0.6.patch |
26 |
|
Patch6: qmail-1.03-tls-20021228-renato_v2-remote.patch |
27 |
|
#from http://inoa.net/qmail-tls/qmail-1.03-tls-20021228-renato_v2.patch |
28 |
URL: http://cr.yp.to/%{name}.html |
URL: http://cr.yp.to/%{name}.html |
29 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
30 |
Provides: smtpdaemon |
Provides: smtpdaemon |
31 |
Requires: /bin/cut, /bin/grep, /usr/bin/id |
Requires: /bin/cut, /bin/grep, /usr/bin/id |
32 |
Requires: /usr/sbin/useradd, /usr/sbin/groupadd |
Requires: /usr/sbin/useradd, /usr/sbin/groupadd |
33 |
|
Requires: openssl |
34 |
BuildRequires: groff |
BuildRequires: groff |
35 |
|
BuildRequires: openssl openssl-devel |
36 |
Conflicts: sendmail |
Conflicts: sendmail |
37 |
AutoReqProv: no |
AutoReqProv: no |
38 |
|
|
81 |
transparently by your current UAs. |
transparently by your current UAs. |
82 |
|
|
83 |
%changelog |
%changelog |
84 |
|
* Wed Feb 27 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.03-22.sme |
85 |
|
- fixed compilation line in spec file [SME: 9349] |
86 |
|
- now TLS and EHLO are defined to allow proper compilation |
87 |
|
|
88 |
|
* Sun Feb 24 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.03-21.sme |
89 |
|
- add remote tls transport for qmail-remote [SME: 9349] |
90 |
|
- used qmail-1.03-tls-20021228-renato_v2.patch without qmail-smtpd parts |
91 |
|
|
92 |
|
* Thu Apr 13 2017 Jean-Philipe Pialasse <tests@pialasse.com> 1.03-20.sme |
93 |
|
- added documentation [SME: 9704] |
94 |
|
- added binaries ipmetest et ipmeprint to help configuration |
95 |
|
|
96 |
* Wed Apr 12 2017 Jean-Philipe Pialasse <tests@pialasse.com> 1.03-19.sme |
* Wed Apr 12 2017 Jean-Philipe Pialasse <tests@pialasse.com> 1.03-19.sme |
97 |
- add moreip to avoid loop [SME: 9704] |
- add moreip to avoid loop [SME: 9704] |
98 |
- patch from Scott Gifford |
- patch from Scott Gifford |
230 |
#%patch3 -p1 |
#%patch3 -p1 |
231 |
%patch4 -p1 |
%patch4 -p1 |
232 |
%patch5 -p1 |
%patch5 -p1 |
233 |
|
%patch6 -p1 |
234 |
|
|
235 |
%build |
%build |
236 |
echo gcc -O2 --include /usr/include/errno.h > conf-cc |
#echo gcc -O2 --include /usr/include/errno.h > conf-cc |
237 |
|
#cc -O2 -DTLS=20021228 -I/usr/local/ssl/include |
238 |
|
echo gcc -O2 -DTLS=20021228 -I/usr/local/ssl/include -DEHLO=1 --include /usr/include/errno.h > conf-cc |
239 |
make |
make |
240 |
|
|
241 |
%install |
%install |
271 |
qmail-qmqpd qmail-qmtpd qmail-smtpd sendmail tcp-env qreceipt \ |
qmail-qmqpd qmail-qmtpd qmail-smtpd sendmail tcp-env qreceipt \ |
272 |
qsmhook qbiff forward preline condredirect \ |
qsmhook qbiff forward preline condredirect \ |
273 |
bouncesaying except maildirmake maildir2mbox maildirwatch \ |
bouncesaying except maildirmake maildir2mbox maildirwatch \ |
274 |
qail elq pinq |
qail elq pinq ipmetest ipmeprint |
275 |
do |
do |
276 |
mv $i $RPM_BUILD_ROOT/var/qmail/bin/ |
mv $i $RPM_BUILD_ROOT/var/qmail/bin/ |
277 |
done |
done |
293 |
do |
do |
294 |
mv $i $RPM_BUILD_ROOT/var/qmail/doc/ |
mv $i $RPM_BUILD_ROOT/var/qmail/doc/ |
295 |
done |
done |
296 |
|
%{__install} -Dp %{SOURCE1} %{buildroot}/var/qmail/doc/ |
297 |
|
|
298 |
for i in 1 5 7 8 |
for i in 1 5 7 8 |
299 |
do |
do |
519 |
%attr(700,qmails,qmail) %dir /var/qmail/queue/remote/21 |
%attr(700,qmails,qmail) %dir /var/qmail/queue/remote/21 |
520 |
%attr(700,qmails,qmail) %dir /var/qmail/queue/remote/22 |
%attr(700,qmails,qmail) %dir /var/qmail/queue/remote/22 |
521 |
%attr(750,qmailq,qmail) %dir /var/qmail/queue/lock |
%attr(750,qmailq,qmail) %dir /var/qmail/queue/lock |
522 |
|
%attr(755,root,qmail) /var/qmail/bin/ipmetest |
523 |
|
%attr(755,root,qmail) /var/qmail/bin/ipmeprint |
524 |
%attr(4711,qmailq,qmail) /var/qmail/bin/qmail-queue |
%attr(4711,qmailq,qmail) /var/qmail/bin/qmail-queue |
525 |
%attr(700,root,qmail) /var/qmail/bin/qmail-lspawn |
%attr(700,root,qmail) /var/qmail/bin/qmail-lspawn |
526 |
%attr(700,root,qmail) /var/qmail/bin/qmail-start |
%attr(700,root,qmail) /var/qmail/bin/qmail-start |
598 |
%attr(644,root,qmail) /var/qmail/doc/PIC.relaybad |
%attr(644,root,qmail) /var/qmail/doc/PIC.relaybad |
599 |
%attr(644,root,qmail) /var/qmail/doc/PIC.relaygood |
%attr(644,root,qmail) /var/qmail/doc/PIC.relaygood |
600 |
%attr(644,root,qmail) /var/qmail/doc/PIC.rem2local |
%attr(644,root,qmail) /var/qmail/doc/PIC.rem2local |
601 |
|
%attr(644,root,qmail) /var/qmail/doc/moreipme.README |
602 |
%attr(644,root,qmail) /var/qmail/man/cat1/forward.0 |
%attr(644,root,qmail) /var/qmail/man/cat1/forward.0 |
603 |
%attr(644,root,qmail) /var/qmail/man/cat1/condredirect.0 |
%attr(644,root,qmail) /var/qmail/man/cat1/condredirect.0 |
604 |
%attr(644,root,qmail) /var/qmail/man/cat1/bouncesaying.0 |
%attr(644,root,qmail) /var/qmail/man/cat1/bouncesaying.0 |