1 |
# $Id: qpsmtpd.spec,v 1.12 2015/02/15 16:25:57 vip-ire Exp $ |
# $Id: qpsmtpd.spec,v 1.4 2016/04/16 11:27:05 vip-ire Exp $ |
2 |
|
|
3 |
Name: qpsmtpd |
Name: qpsmtpd |
4 |
Version: 0.96 |
Version: 0.96 |
12 |
BuildRequires: perl(ExtUtils::MakeMaker) |
BuildRequires: perl(ExtUtils::MakeMaker) |
13 |
BuildArch: noarch |
BuildArch: noarch |
14 |
Requires: perl(Mail::Header), perl(Net::DNS) perl(Net::IP) |
Requires: perl(Mail::Header), perl(Net::DNS) perl(Net::IP) |
15 |
|
Requires: perl(IO::Socket::SSL) >= 1.70 |
16 |
Requires(pre): coreutils, shadow-utils, perl |
Requires(pre): coreutils, shadow-utils, perl |
17 |
|
|
18 |
Source0: %{name}-%{version}.tar.gz |
Source0: %{name}-%{version}.tar.gz |
126 |
%doc %{_docdir}/%{name}-apache-%{version}/README.selinux |
%doc %{_docdir}/%{name}-apache-%{version}/README.selinux |
127 |
|
|
128 |
%pre |
%pre |
129 |
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 -s /bin/false $supp smtpd |
|
|
fi |
|
130 |
|
|
131 |
%changelog |
%changelog |
132 |
* Sat Apr 16 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-1.sme |
* Sat Apr 16 2016 Daniel Berteaud <daniel@firewall-services.com> 0.96-1.sme |