--- rpms/e-smith-openssh/sme10/e-smith-openssh.spec 2020/05/03 03:40:54 1.2 +++ rpms/e-smith-openssh/sme10/e-smith-openssh.spec 2020/12/11 20:42:24 1.6 @@ -1,16 +1,20 @@ -# $Id: e-smith-openssh.spec,v 1.1 2016/02/05 22:15:50 stephdl Exp $ +# $Id: e-smith-openssh.spec,v 1.5 2020/12/11 20:41:42 jpp Exp $ Summary: e-smith module to configure and enable ssh %define name e-smith-openssh Name: %{name} %define version 2.6.0 -%define release 2 +%define release 4 Version: %{version} Release: %{release}%{?dist} License: GPL Group: Networking/Daemons Source: %{name}-%{version}.tar.xz Patch0: e-smith-openssh-2.6.0-bz10621-bz10937.patch +Patch1: e-smith-openssh-2.6.0-bz9893-autoblock-whitelist.patch +Patch2: e-smith-openssh-2.6.0-bz10939-denyhosts.patch +Patch3: e-smith-openssh-2.6.0-bz11147-bz11109-systemd-update.patch + BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot BuildRequires: e-smith-devtools BuildArchitectures: noarch @@ -23,6 +27,15 @@ Requires: runit AutoReqProv: no %changelog +* Fri Dec 11 2020 Jean-Philipe Pialasse 2.6.0-4.sme +- add support for denyhost [SME: 10939] +- move sshd to systemd [SME: 11109] +- create -update event [SME: 11147] +- add ed25519 and ecdsa hostkeys [SME: 10940] + +* Sun May 03 2020 Jean-Philipe Pialasse 2.6.0-3.sme +- add Whitelist to AutoBlock using property sshd ValidFrom [SME: 9893] + * Sat May 02 2020 Jean-Philipe Pialasse 2.6.0-2.sme - update client ciphers to use [SME: 10621] - add ciphers, macs and KexAlgorithms for server [SME: 10937] @@ -617,6 +630,10 @@ e-smith server enhancement to configure %prep %setup %patch0 -p1 +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 +rm -rf root/var/service root/service %build perl createlinks @@ -629,13 +646,7 @@ rm -rf $RPM_BUILD_ROOT rm -f %{name}-%{version}-%{release}-filelist /sbin/e-smith/genfilelist \ - --dir '/var/service/sshd' 'attr(1755,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)' \ + --file '/sbin/e-smith/systemd/sshd-prepare' 'attr(0554,root,root)' \ --dir '/var/log/sshd' 'attr(2750,root,nofiles)' \ --dir '/var/empty/sshd' 'attr(0711,root,root)' \ $RPM_BUILD_ROOT \ @@ -648,3 +659,11 @@ rm -rf $RPM_BUILD_ROOT %files -f %{name}-%{version}-%{release}-filelist %defattr(-,root,root) + +%pre +if [ $1 -gt 1 ] ; then + if [ -e /var/service/sshd/run ] ; then + /usr/bin/sv d sshd + /usr/bin/sv d sshd/log + fi +fi