1 |
# $Id: e-smith-openssh.spec,v 1.7 2015/07/03 19:56:18 stephdl Exp $ |
# $Id: e-smith-openssh.spec,v 1.6 2020/12/11 20:42:24 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 1 |
%define release 5 |
8 |
Version: %{version} |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
10 |
License: GPL |
License: GPL |
11 |
Group: Networking/Daemons |
Group: Networking/Daemons |
12 |
Source: %{name}-%{version}.tar.xz |
Source: %{name}-%{version}.tar.xz |
13 |
|
Patch0: e-smith-openssh-2.6.0-bz10621-bz10937.patch |
14 |
|
Patch1: e-smith-openssh-2.6.0-bz9893-autoblock-whitelist.patch |
15 |
|
Patch2: e-smith-openssh-2.6.0-bz10939-denyhosts.patch |
16 |
|
Patch3: e-smith-openssh-2.6.0-bz11147-bz11109-systemd-update.patch |
17 |
|
Patch4: e-smith-openssh-2.6.0-bz11359.patch |
18 |
|
|
19 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
20 |
BuildRequires: e-smith-devtools |
BuildRequires: e-smith-devtools |
21 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
28 |
AutoReqProv: no |
AutoReqProv: no |
29 |
|
|
30 |
%changelog |
%changelog |
31 |
|
* Thu Feb 18 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-5.sme |
32 |
|
- increase default host key size [SME: 11359] |
33 |
|
|
34 |
|
* Fri Dec 11 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-4.sme |
35 |
|
- add support for denyhost [SME: 10939] |
36 |
|
- move sshd to systemd [SME: 11109] |
37 |
|
- create -update event [SME: 11147] |
38 |
|
- add ed25519 and ecdsa hostkeys [SME: 10940] |
39 |
|
|
40 |
|
* Sun May 03 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-3.sme |
41 |
|
- add Whitelist to AutoBlock using property sshd ValidFrom [SME: 9893] |
42 |
|
|
43 |
|
* Sat May 02 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-2.sme |
44 |
|
- update client ciphers to use [SME: 10621] |
45 |
|
- add ciphers, macs and KexAlgorithms for server [SME: 10937] |
46 |
|
|
47 |
* Fri Feb 05 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 2.6.0-1.sme |
* Fri Feb 05 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 2.6.0-1.sme |
48 |
- Initial release to sme10 |
- Initial release to sme10 |
49 |
|
|
633 |
|
|
634 |
%prep |
%prep |
635 |
%setup |
%setup |
636 |
|
%patch0 -p1 |
637 |
|
%patch1 -p1 |
638 |
|
%patch2 -p1 |
639 |
|
%patch3 -p1 |
640 |
|
rm -rf root/var/service root/service |
641 |
|
%patch4 -p1 |
642 |
|
|
643 |
%build |
%build |
644 |
perl createlinks |
perl createlinks |
651 |
rm -f %{name}-%{version}-%{release}-filelist |
rm -f %{name}-%{version}-%{release}-filelist |
652 |
|
|
653 |
/sbin/e-smith/genfilelist \ |
/sbin/e-smith/genfilelist \ |
654 |
--dir '/var/service/sshd' 'attr(1755,root,root)' \ |
--file '/sbin/e-smith/systemd/sshd-prepare' 'attr(0554,root,root)' \ |
|
--file '/var/service/sshd/down' 'attr(0644,root,root)' \ |
|
|
--file '/var/service/sshd/run' 'attr(0755,root,root)' \ |
|
|
--dir '/var/service/sshd/supervise' 'attr(0700,root,root)' \ |
|
|
--dir '/var/service/sshd/log' 'attr(1755,root,root)' \ |
|
|
--dir '/var/service/sshd/log/supervise' 'attr(0700,root,root)' \ |
|
|
--file '/var/service/sshd/log/run' 'attr(0755,root,root)' \ |
|
655 |
--dir '/var/log/sshd' 'attr(2750,root,nofiles)' \ |
--dir '/var/log/sshd' 'attr(2750,root,nofiles)' \ |
656 |
--dir '/var/empty/sshd' 'attr(0711,root,root)' \ |
--dir '/var/empty/sshd' 'attr(0711,root,root)' \ |
657 |
$RPM_BUILD_ROOT \ |
$RPM_BUILD_ROOT \ |
664 |
|
|
665 |
%files -f %{name}-%{version}-%{release}-filelist |
%files -f %{name}-%{version}-%{release}-filelist |
666 |
%defattr(-,root,root) |
%defattr(-,root,root) |
667 |
|
|
668 |
|
%pre |
669 |
|
if [ $1 -gt 1 ] ; then |
670 |
|
if [ -e /var/service/sshd/run ] ; then |
671 |
|
/usr/bin/sv d sshd |
672 |
|
/usr/bin/sv d sshd/log |
673 |
|
fi |
674 |
|
fi |