/[smeserver]/rpms/e-smith-openssh/sme10/e-smith-openssh.spec
ViewVC logotype

Diff of /rpms/e-smith-openssh/sme10/e-smith-openssh.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.4 by jpp, Fri Dec 11 19:42:15 2020 UTC Revision 1.6 by jpp, Fri Dec 11 20:42:24 2020 UTC
# Line 1  Line 1 
1  # $Id: e-smith-openssh.spec,v 1.3 2020/05/03 07:07:36 jpp Exp $  # $Id: e-smith-openssh.spec,v 1.5 2020/12/11 20:41:42 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
# Line 13  Source: %{name}-%{version}.tar.xz Line 13  Source: %{name}-%{version}.tar.xz
13  Patch0: e-smith-openssh-2.6.0-bz10621-bz10937.patch  Patch0: e-smith-openssh-2.6.0-bz10621-bz10937.patch
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
17    
18  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
19  BuildRequires: e-smith-devtools  BuildRequires: e-smith-devtools
# Line 28  AutoReqProv: no Line 29  AutoReqProv: no
29  %changelog  %changelog
30  * 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
31  - add support for denyhost [SME: 10939]  - add support for denyhost [SME: 10939]
32    - move sshd to systemd [SME: 11109]
33    - create -update event [SME: 11147]
34    - add ed25519 and ecdsa hostkeys [SME: 10940]
35    
36  * Sun May 03 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-3.sme  * Sun May 03 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-3.sme
37  - add Whitelist to AutoBlock using property sshd ValidFrom [SME: 9893]  - add Whitelist to AutoBlock using property sshd ValidFrom [SME: 9893]
# Line 628  e-smith server enhancement to configure Line 632  e-smith server enhancement to configure
632  %patch0 -p1  %patch0 -p1
633  %patch1 -p1  %patch1 -p1
634  %patch2 -p1  %patch2 -p1
635    %patch3 -p1
636    rm -rf  root/var/service root/service
637    
638  %build  %build
639  perl createlinks  perl createlinks
# Line 640  rm -rf $RPM_BUILD_ROOT Line 646  rm -rf $RPM_BUILD_ROOT
646  rm -f %{name}-%{version}-%{release}-filelist  rm -f %{name}-%{version}-%{release}-filelist
647    
648  /sbin/e-smith/genfilelist \  /sbin/e-smith/genfilelist \
649      --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)' \  
650      --dir '/var/log/sshd' 'attr(2750,root,nofiles)' \      --dir '/var/log/sshd' 'attr(2750,root,nofiles)' \
651      --dir '/var/empty/sshd' 'attr(0711,root,root)' \      --dir '/var/empty/sshd' 'attr(0711,root,root)' \
652      $RPM_BUILD_ROOT \      $RPM_BUILD_ROOT \
# Line 659  rm -rf $RPM_BUILD_ROOT Line 659  rm -rf $RPM_BUILD_ROOT
659    
660  %files -f %{name}-%{version}-%{release}-filelist  %files -f %{name}-%{version}-%{release}-filelist
661  %defattr(-,root,root)  %defattr(-,root,root)
662    
663    %pre
664    if [ $1 -gt 1 ] ; then
665      if [ -e /var/service/sshd/run ] ; then
666           /usr/bin/sv d sshd
667           /usr/bin/sv d sshd/log
668      fi
669    fi


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed