1 |
# $Id: qpsmtpd.spec,v 1.19 2009/10/29 17:01:20 slords Exp $ |
# $Id: qpsmtpd.spec,v 1.26 2010/03/05 20:07:37 slords Exp $ |
2 |
|
|
3 |
Name: qpsmtpd |
Name: qpsmtpd |
4 |
Version: 0.83 |
Version: 0.84 |
5 |
Release: 0.4%{?dist} |
Release: 0.1%{?dist} |
6 |
Summary: qpsmtpd + qpsmtpd-apache + qpsmtpd-async |
Summary: qpsmtpd + qpsmtpd-apache + qpsmtpd-async |
7 |
License: distributable |
License: MIT |
8 |
Group: System Environment/Daemons |
Group: System Environment/Daemons |
9 |
URL: http://smtpd.develooper.com/ |
URL: http://smtpd.develooper.com/ |
10 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
11 |
BuildRequires: perl >= 0:5.00503 |
BuildRequires: perl >= 0:5.00503 |
12 |
BuildArchitectures: noarch |
BuildArch: noarch |
13 |
Requires: perl(Mail::Header), perl(Net::DNS) perl(Net::IP) |
Requires: perl(Mail::Header), perl(Net::DNS) perl(Net::IP) |
14 |
|
Requires(pre): coreutils, shadow-utils, perl |
15 |
|
|
16 |
Source0: %{name}-%{version}.tar.gz |
Source0: %{name}-%{version}.tar.gz |
17 |
Source1: qpsmtpd-forkserver.rc |
Source1: qpsmtpd-forkserver.rc |
26 |
|
|
27 |
Patch100: qpsmtpd-0.40-badrcptto_allowrelay.patch |
Patch100: qpsmtpd-0.40-badrcptto_allowrelay.patch |
28 |
Patch101: qpsmtpd-0.83-peer_hooks.patch |
Patch101: qpsmtpd-0.83-peer_hooks.patch |
29 |
Patch102: qpsmtpd-0.83-clamd_conf.patch |
Patch102: qpsmtpd-0.83-clamav-headers.patch |
|
Patch103: qpsmtpd-0.83-clamav-headers.patch |
|
30 |
|
|
31 |
%description |
%description |
32 |
qpsmtpd is a flexible smtpd daemon written in Perl. Apart from the core |
qpsmtpd is a flexible smtpd daemon written in Perl. Apart from the core |
61 |
%patch100 -p1 |
%patch100 -p1 |
62 |
%patch101 -p1 |
%patch101 -p1 |
63 |
%patch102 -p1 |
%patch102 -p1 |
|
%patch103 -p1 |
|
64 |
|
|
65 |
|
|
66 |
%build |
%build |
76 |
mkdir -p $RPM_BUILD_ROOT/$installarchlib |
mkdir -p $RPM_BUILD_ROOT/$installarchlib |
77 |
if grep -q DESTDIR Makefile |
if grep -q DESTDIR Makefile |
78 |
then |
then |
79 |
make DESTDIR=$RPM_BUILD_ROOT |
make DESTDIR=$RPM_BUILD_ROOT |
80 |
find blib/lib -name '*.pm.*' -exec rm -f {} \; |
find blib/lib -name '*.pm.*' -exec rm -f {} \; |
81 |
make DESTDIR=$RPM_BUILD_ROOT install |
make DESTDIR=$RPM_BUILD_ROOT install |
82 |
|
|
83 |
else |
else |
84 |
make PREFIX=$RPM_BUILD_ROOT/usr |
make PREFIX=$RPM_BUILD_ROOT/usr |
85 |
find blib/lib -name '*.pm.*' -exec rm -f {} \; |
find blib/lib -name '*.pm.*' -exec rm -f {} \; |
86 |
make PREFIX=$RPM_BUILD_ROOT/usr install |
make PREFIX=$RPM_BUILD_ROOT/usr install |
87 |
fi |
fi |
88 |
mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/%{name} |
mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/%{name} |
89 |
rm -f ${RPM_BUILD_ROOT}%{_datadir}/%{name}/plugins/*.* |
rm -f ${RPM_BUILD_ROOT}%{_datadir}/%{name}/plugins/*.* |
109 |
cp %{SOURCE6} ${RPM_BUILD_ROOT}%{_sysconfdir}/httpd/conf.d |
cp %{SOURCE6} ${RPM_BUILD_ROOT}%{_sysconfdir}/httpd/conf.d |
110 |
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}-apache-%{version} |
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}-apache-%{version} |
111 |
cp %{SOURCE7} $RPM_BUILD_ROOT%{_docdir}/%{name}-apache-%{version} |
cp %{SOURCE7} $RPM_BUILD_ROOT%{_docdir}/%{name}-apache-%{version} |
|
rm -f ${RPM_BUILD_ROOT}%{_bindir}/%{name}-prefork |
|
112 |
|
|
113 |
[ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress |
[ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress |
114 |
|
|
115 |
find ${RPM_BUILD_ROOT}%{_prefix} \( -name perllocal.pod -o -name .packlist \) -exec rm {} \; |
find ${RPM_BUILD_ROOT}%{_prefix} \( -name perllocal.pod -o -name .packlist \) -exec rm {} \; |
116 |
find ${RPM_BUILD_ROOT}%{_prefix} -type f -print | \ |
find ${RPM_BUILD_ROOT}%{_prefix} -type f -print | \ |
117 |
sed "s@^$RPM_BUILD_ROOT@@g" | \ |
sed "s@^$RPM_BUILD_ROOT@@g" | \ |
118 |
grep -v [Aa]sync | \ |
grep -v [Aa]sync | \ |
119 |
grep -v packaging | \ |
grep -v packaging | \ |
120 |
grep -v README.selinux | \ |
grep -v README.selinux | \ |
121 |
grep -v /Apache | \ |
grep -v /Apache | \ |
122 |
grep -v /Danga | \ |
grep -v /Danga | \ |
123 |
grep -v Qpsmtpd/ConfigServer.pm | \ |
grep -v Qpsmtpd/ConfigServer.pm | \ |
124 |
grep -v Qpsmtpd/PollServer.pm > %{name}-%{version}-%{release}-filelist |
grep -v Qpsmtpd/PollServer.pm > %{name}-%{version}-%{release}-filelist |
125 |
if [ "$(cat %{name}-%{version}-%{release}-filelist)X" = "X" ] ; then |
if [ "$(cat %{name}-%{version}-%{release}-filelist)X" = "X" ] ; then |
126 |
echo "ERROR: EMPTY FILE LIST" |
echo "ERROR: EMPTY FILE LIST" |
127 |
exit -1 |
exit -1 |
134 |
%config(noreplace) %{_sysconfdir}/qpsmtpd/* |
%config(noreplace) %{_sysconfdir}/qpsmtpd/* |
135 |
%config(noreplace) %{_sysconfdir}/xinetd.d/smtp |
%config(noreplace) %{_sysconfdir}/xinetd.d/smtp |
136 |
%config(noreplace) %{_sysconfdir}/sysconfig/qpsmtpd-forkserver |
%config(noreplace) %{_sysconfdir}/sysconfig/qpsmtpd-forkserver |
|
%attr(2750,qpsmtpd,clamav) %dir %{_localstatedir}/spool/qpsmtpd |
|
|
%attr(2750,smelog,smelog) %dir %{_localstatedir}/log/qpsmtpd |
|
137 |
|
|
138 |
%files apache |
%files apache |
139 |
%defattr(-,root,root) |
%defattr(-,root,root) |
154 |
%{_datadir}/%{name}/plugins/async/* |
%{_datadir}/%{name}/plugins/async/* |
155 |
|
|
156 |
%pre |
%pre |
|
if ! id smtpd >/dev/null 2>&1 |
|
|
then |
|
|
# need to create smtpd user. |
|
|
if perl -e 'exit ! defined(getgrnam("postdrop"))' |
|
|
then |
|
|
# if postfix is installed, we will probably use |
|
|
# queue/postfix, which will need this: |
|
|
supp="-G postdrop" |
|
|
fi |
|
|
useradd -r -m $supp smtpd |
|
|
fi |
|
157 |
|
|
158 |
%changelog |
%changelog |
159 |
* Sat Oct 31 2009 <slords@lordsfam.net> 0.83-0.4.sme |
* Wed Apr 14 2010 <slords@mail.com> 0.84-0.1.sme |
160 |
|
- Update to 0.84 |
161 |
|
- add sme specific patches |
162 |
|
|
163 |
|
* Wed Mar 3 2010 <filippo.carletti@gmail.com> 0.83-0.7.sme |
164 |
|
- Remove spool and log dir from package (in smeserver-qpsmtpd) |
165 |
|
- Don't create smtpd user (unused in sme) [SME: 5815] |
166 |
|
|
167 |
|
* Thu Nov 5 2009 <smeserver-contribs@snetram.nl> 0.83-0.6.sme |
168 |
|
- Apply qpsmtpd git changesets to implement custom SPAM |
169 |
|
subject prefix [SME: 5031] |
170 |
|
|
171 |
|
* Tue Nov 3 2009 <slords@mail.com> 0.83-0.5.sme |
172 |
|
- Update pre requires so scripts don't fail on install [SME: 5558] |
173 |
|
|
174 |
|
* Sat Oct 31 2009 <slords@mail.com> 0.83-0.4.sme |
175 |
- Rebase bad_rcptto patch to remove orig file [SME: 5548] |
- Rebase bad_rcptto patch to remove orig file [SME: 5548] |
176 |
- Change logging in tls init to prevent warnings [SME: 5551] |
- Change logging in tls init to prevent warnings [SME: 5551] |
177 |
|
|
178 |
* Thu Oct 29 2009 <slords@lordsfam.net> 0.83-0.3.sme |
* Thu Oct 29 2009 <slords@mail.com> 0.83-0.3.sme |
179 |
- Only run/initialize plugins once [SME: 5533] |
- Only run/initialize plugins once [SME: 5533] |
180 |
|
|
181 |
* Mon Oct 26 2009 <filippo.carletti@gmail.com> 0.83-0.2.sme |
* Mon Oct 26 2009 <filippo.carletti@gmail.com> 0.83-0.2.sme |
182 |
- Change spool dir permissions and owner to qpsmtpd:clamav |
- Change spool dir permissions and owner to qpsmtpd:clamav |
183 |
- Change log dir permissions and owner to smelog:smelog |
- Change log dir permissions and owner to smelog:smelog |
184 |
|
|
185 |
* Fri Sep 18 2009 <rpmbuild@robinbowes.com> 0.83-0.1.sme |
* Tue Sep 22 2009 <filippo.carletti@gmail.com> 0.83-0.1.sme |
|
- Update to 0.83 |
|
186 |
- add sme specific patches |
- add sme specific patches |
187 |
|
|
188 |
|
* Fri Sep 18 2009 <rpmbuild@robinbowes.com> 0.83-0.1 |
189 |
|
- Update to 0.83 |
190 |
|
|
191 |
* Sun Jul 12 2009 <rpmbuild@robinbowes.com> 0.82-0.1 |
* Sun Jul 12 2009 <rpmbuild@robinbowes.com> 0.82-0.1 |
192 |
- Update to latest release |
- Update to latest release |
193 |
- don't add qpsmtpd to start-up by default |
- don't add qpsmtpd to start-up by default |