1 |
# $Id: e-smith-openssh.spec,v 1.4 2020/12/11 19:42:15 jpp Exp $ |
# $Id: e-smith-openssh.spec,v 1.10 2021/03/16 20:59:51 jpp Exp $ |
2 |
|
|
3 |
Summary: e-smith module to configure and enable ssh |
Summary: e-smith module to configure and enable ssh |
4 |
%define name e-smith-openssh |
%define name e-smith-openssh |
5 |
Name: %{name} |
Name: %{name} |
6 |
%define version 2.6.0 |
%define version 2.6.0 |
7 |
%define release 4 |
%define release 8 |
8 |
Version: %{version} |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
10 |
License: GPL |
License: GPL |
14 |
Patch1: e-smith-openssh-2.6.0-bz9893-autoblock-whitelist.patch |
Patch1: e-smith-openssh-2.6.0-bz9893-autoblock-whitelist.patch |
15 |
Patch2: e-smith-openssh-2.6.0-bz10939-denyhosts.patch |
Patch2: e-smith-openssh-2.6.0-bz10939-denyhosts.patch |
16 |
Patch3: e-smith-openssh-2.6.0-bz11147-bz11109-systemd-update.patch |
Patch3: e-smith-openssh-2.6.0-bz11147-bz11109-systemd-update.patch |
17 |
|
Patch4: e-smith-openssh-2.6.0-bz11359.patch |
18 |
|
Patch5: e-smith-openssh-2.6.0-bz11256-logging.patch |
19 |
|
|
20 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
21 |
BuildRequires: e-smith-devtools |
BuildRequires: e-smith-devtools |
22 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
23 |
Requires: e-smith, openssl, |
Requires: e-smith-base, openssl, |
24 |
Requires: openssh >= 3.5 |
Requires: openssh >= 3.5 |
25 |
Requires: openssh-clients |
Requires: openssh-clients |
26 |
Requires: openssh-server |
Requires: openssh-server |
29 |
AutoReqProv: no |
AutoReqProv: no |
30 |
|
|
31 |
%changelog |
%changelog |
32 |
|
* Sun Jun 25 2023 Trevor Batley <trevor@batley.id.au> 2.6.0-8.sme |
33 |
|
- change requires of e-smith to e-smith-base [SME: #12371] |
34 |
|
|
35 |
|
* Tue Mar 16 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-7.sme |
36 |
|
- clean rsyslog syntax for sshd [SME: 11422] |
37 |
|
|
38 |
|
* Thu Feb 18 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-6.sme |
39 |
|
- increase default host key size [SME: 11359] |
40 |
|
- redirect logging to /var/log/sshd/sshd.log and logrotate [SME: 11256] |
41 |
|
|
42 |
* Fri Dec 11 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-4.sme |
* Fri Dec 11 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-4.sme |
43 |
- add support for denyhost [SME: 10939] |
- add support for denyhost [SME: 10939] |
44 |
- move sshd to systemd [SME: 11109] |
- move sshd to systemd [SME: 11109] |
646 |
%patch2 -p1 |
%patch2 -p1 |
647 |
%patch3 -p1 |
%patch3 -p1 |
648 |
rm -rf root/var/service root/service |
rm -rf root/var/service root/service |
649 |
|
%patch4 -p1 |
650 |
|
%patch5 -p1 |
651 |
|
|
652 |
%build |
%build |
653 |
perl createlinks |
perl createlinks |
661 |
|
|
662 |
/sbin/e-smith/genfilelist \ |
/sbin/e-smith/genfilelist \ |
663 |
--file '/sbin/e-smith/systemd/sshd-prepare' 'attr(0554,root,root)' \ |
--file '/sbin/e-smith/systemd/sshd-prepare' 'attr(0554,root,root)' \ |
664 |
--dir '/var/log/sshd' 'attr(2750,root,nofiles)' \ |
--dir '/var/log/sshd' 'attr(2750,root,root)' \ |
665 |
--dir '/var/empty/sshd' 'attr(0711,root,root)' \ |
--dir '/var/empty/sshd' 'attr(0711,root,root)' \ |
666 |
$RPM_BUILD_ROOT \ |
$RPM_BUILD_ROOT \ |
667 |
> %{name}-%{version}-%{release}-filelist |
> %{name}-%{version}-%{release}-filelist |
673 |
|
|
674 |
%files -f %{name}-%{version}-%{release}-filelist |
%files -f %{name}-%{version}-%{release}-filelist |
675 |
%defattr(-,root,root) |
%defattr(-,root,root) |
676 |
|
|
677 |
|
%pre |
678 |
|
if [ $1 -gt 1 ] ; then |
679 |
|
if [ -e /var/service/sshd/run ] ; then |
680 |
|
/usr/bin/sv d sshd |
681 |
|
/usr/bin/sv d sshd/log |
682 |
|
fi |
683 |
|
fi |