1 |
# $Id: smeserver-xinetd.spec,v 1.1 2015/09/24 16:02:30 stephdl Exp $ |
# $Id: smeserver-xinetd.spec,v 1.3 2018/02/13 22:56:45 jpp Exp $ |
2 |
# Authority: dungog |
# Authority: dungog |
3 |
# Name: Stephen Noble |
# Name: Stephen Noble |
4 |
|
|
5 |
%define name smeserver-xinetd |
%define name smeserver-xinetd |
6 |
%define version 0.3 |
%define version 0.3 |
7 |
%define release 2 |
%define release 4 |
8 |
Summary: Set up xinetd for services. |
Summary: Set up xinetd for services. |
9 |
Name: %{name} |
Name: %{name} |
10 |
Version: %{version} |
Version: %{version} |
13 |
Group: SMEserver/addon |
Group: SMEserver/addon |
14 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
15 |
Patch0: smeserver-xinetd-0.3-bz7832.allowdir.patch |
Patch0: smeserver-xinetd-0.3-bz7832.allowdir.patch |
16 |
|
Patch1: smeserver-xinetd-0.3-bz7832.new_template.patch |
17 |
|
Patch2: smeserver-xinetd-0.3-bz7832.smtp.patch |
18 |
BuildRoot: /var/tmp/%{name}-%{version} |
BuildRoot: /var/tmp/%{name}-%{version} |
19 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
20 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
21 |
Requires: e-smith-release >= 7.0 |
Requires: e-smith-release >= 7.0 |
22 |
|
Requires: e-smith-base >= 5.6.0-34 |
23 |
Requires: xinetd >= 2.3.13 |
Requires: xinetd >= 2.3.13 |
24 |
AutoReqProv: no |
AutoReqProv: no |
25 |
|
|
27 |
Integration package to enable xinetd on SME Server. |
Integration package to enable xinetd on SME Server. |
28 |
|
|
29 |
%changelog |
%changelog |
30 |
|
* Fri Nov 30 2018 John Crisp <jcrisp@safeandsoundit.co.uk> 0.3-4.sme |
31 |
|
- Add configuration for smtp [SME: 10512] |
32 |
|
|
33 |
|
* Tue Feb 13 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.3-3.sme |
34 |
|
- add new template for the complete config file [SME: 7832] |
35 |
|
- requires e-smith-base >= 5.6.0-34 after other xinetd.conf fragment has been removed |
36 |
|
|
37 |
* Tue Feb 13 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.3-2.sme |
* Tue Feb 13 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.3-2.sme |
38 |
- fix double default template and missind xinetd.d [SME: 7832] |
- fix double default template and missind xinetd.d [SME: 7832] |
39 |
|
|
46 |
%prep |
%prep |
47 |
%setup |
%setup |
48 |
%patch0 -p1 |
%patch0 -p1 |
49 |
|
%patch1 -p1 |
50 |
|
%patch2 -p1 |
51 |
|
|
52 |
%build |
%build |
53 |
perl createlinks |
perl createlinks |
64 |
|
|
65 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |
66 |
%defattr(-,root,root) |
%defattr(-,root,root) |
67 |
|
|
68 |
|
%post |
69 |
|
|
70 |
|
if ! [ -L /usr/sbin/in.qpsmtpd ]; then |
71 |
|
echo "Setting up symlink /usr/sbin/in.smtp /usr/sbin/in.qpsmtpd" |
72 |
|
ln -s in.smtp /usr/sbin/in.qpsmtpd |
73 |
|
else |
74 |
|
echo " in.qpsmtpd link exists" |
75 |
|
fi |