2007-01-07 17:26:05 +01:00
|
|
|
#
|
2011-02-01 15:14:14 +01:00
|
|
|
# spec file for package openssh
|
2007-01-07 17:26:05 +01:00
|
|
|
#
|
2019-01-04 07:19:36 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-07 17:26:05 +01:00
|
|
|
#
|
2008-08-23 01:32:08 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-07-22 20:28:13 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-07 17:26:05 +01:00
|
|
|
#
|
|
|
|
|
2011-12-26 08:09:33 +01:00
|
|
|
|
2016-04-06 13:34:51 +02:00
|
|
|
%define sandbox_seccomp 0
|
2019-01-28 11:41:40 +01:00
|
|
|
%ifnarch ppc
|
2014-02-18 14:04:57 +01:00
|
|
|
%define sandbox_seccomp 1
|
|
|
|
%endif
|
2018-12-11 17:01:09 +01:00
|
|
|
|
|
|
|
%if 0%{?suse_version} >= 1500
|
|
|
|
%bcond_without tirpc
|
|
|
|
%else
|
2018-10-17 10:57:56 +02:00
|
|
|
%bcond_with tirpc
|
2018-05-02 14:05:42 +02:00
|
|
|
%endif
|
2018-12-11 17:01:09 +01:00
|
|
|
|
2019-01-04 07:19:36 +01:00
|
|
|
%define _fwdir %{_sysconfdir}/sysconfig/SuSEfirewall2.d
|
|
|
|
%define _fwdefdir %{_fwdir}/services
|
2016-04-06 13:34:51 +02:00
|
|
|
%define _appdefdir %( grep "configdirspec=" $( which xmkmf ) | sed -r 's,^[^=]+=.*-I(.*)/config.*$,\\1/app-defaults,' )
|
2018-10-17 10:57:56 +02:00
|
|
|
%define CHECKSUM_SUFFIX .hmac
|
|
|
|
%define CHECKSUM_HMAC_KEY "HMAC_KEY:OpenSSH-FIPS@SLE"
|
|
|
|
#Compat macro for new _fillupdir macro introduced in Nov 2017
|
|
|
|
%if ! %{defined _fillupdir}
|
|
|
|
%define _fillupdir %{_localstatedir}/adm/fillup-templates
|
2016-09-30 22:34:19 +02:00
|
|
|
%endif
|
2018-10-17 10:57:56 +02:00
|
|
|
Name: openssh
|
2018-10-22 11:08:19 +02:00
|
|
|
Version: 7.9p1
|
2011-12-21 18:59:28 +01:00
|
|
|
Release: 0
|
2007-01-07 17:26:05 +01:00
|
|
|
Summary: Secure Shell Client and Server (Remote Login Program)
|
2018-04-06 06:49:00 +02:00
|
|
|
License: BSD-2-Clause AND MIT
|
2011-12-21 18:59:28 +01:00
|
|
|
Group: Productivity/Networking/SSH
|
2018-10-17 10:57:56 +02:00
|
|
|
URL: http://www.openssh.com/
|
|
|
|
Source0: http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-%{version}.tar.gz
|
|
|
|
Source1: http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-%{version}.tar.gz.asc
|
2007-01-07 17:26:05 +01:00
|
|
|
Source2: sshd.pamd
|
2016-05-30 03:36:18 +02:00
|
|
|
Source3: README.SUSE
|
2013-09-19 06:09:33 +02:00
|
|
|
Source4: README.kerberos
|
|
|
|
Source5: ssh.reg
|
|
|
|
Source6: ssh-askpass
|
|
|
|
Source7: sshd.fw
|
|
|
|
Source8: sysconfig.ssh
|
|
|
|
Source9: sshd-gen-keys-start
|
|
|
|
Source10: sshd.service
|
2016-05-30 03:36:18 +02:00
|
|
|
Source11: README.FIPS
|
2018-01-12 01:42:53 +01:00
|
|
|
Source12: cavs_driver-ssh.pl
|
2019-01-28 09:02:07 +01:00
|
|
|
Patch0: openssh-7.7p1-allow_root_password_login.patch
|
2018-10-17 10:57:56 +02:00
|
|
|
Patch1: openssh-7.7p1-X11_trusted_forwarding.patch
|
|
|
|
Patch3: openssh-7.7p1-enable_PAM_by_default.patch
|
|
|
|
Patch4: openssh-7.7p1-eal3.patch
|
|
|
|
Patch6: openssh-7.7p1-send_locale.patch
|
|
|
|
Patch7: openssh-7.7p1-hostname_changes_when_forwarding_X.patch
|
|
|
|
Patch8: openssh-7.7p1-remove_xauth_cookies_on_exit.patch
|
|
|
|
Patch9: openssh-7.7p1-pts_names_formatting.patch
|
|
|
|
Patch10: openssh-7.7p1-pam_check_locks.patch
|
2018-10-19 15:24:01 +02:00
|
|
|
# https://bugzilla.mindrot.org/show_bug.cgi?id=2752
|
2018-10-17 10:57:56 +02:00
|
|
|
Patch14: openssh-7.7p1-seccomp_stat.patch
|
2018-10-19 15:24:01 +02:00
|
|
|
# https://bugzilla.mindrot.org/show_bug.cgi?id=2752
|
2018-10-17 10:57:56 +02:00
|
|
|
Patch15: openssh-7.7p1-seccomp_ipc_flock.patch
|
2018-10-19 15:24:01 +02:00
|
|
|
# https://bugzilla.mindrot.org/show_bug.cgi?id=2752
|
2018-10-17 10:57:56 +02:00
|
|
|
Patch16: openssh-7.7p1-seccomp_ioctl_s390_EP11.patch
|
2018-10-19 15:44:30 +02:00
|
|
|
# Local FIPS patchset
|
2018-10-17 10:57:56 +02:00
|
|
|
Patch17: openssh-7.7p1-fips.patch
|
2018-10-19 15:44:30 +02:00
|
|
|
# Local cavs patchset
|
2018-10-17 10:57:56 +02:00
|
|
|
Patch18: openssh-7.7p1-cavstest-ctr.patch
|
2018-10-19 15:44:30 +02:00
|
|
|
# Local cavs patchset
|
2018-10-17 10:57:56 +02:00
|
|
|
Patch19: openssh-7.7p1-cavstest-kdf.patch
|
2018-10-19 15:44:30 +02:00
|
|
|
# Local FIPS patchset
|
2018-10-17 10:57:56 +02:00
|
|
|
Patch20: openssh-7.7p1-fips_checks.patch
|
|
|
|
Patch21: openssh-7.7p1-seed-prng.patch
|
2018-10-19 15:24:01 +02:00
|
|
|
# https://bugzilla.mindrot.org/show_bug.cgi?id=2641
|
2018-10-17 10:57:56 +02:00
|
|
|
Patch22: openssh-7.7p1-systemd-notify.patch
|
|
|
|
Patch23: openssh-7.7p1-gssapi_key_exchange.patch
|
2018-10-19 15:44:30 +02:00
|
|
|
# https://bugzilla.mindrot.org/show_bug.cgi?id=1402
|
2018-10-17 10:57:56 +02:00
|
|
|
Patch24: openssh-7.7p1-audit.patch
|
2018-10-19 15:44:30 +02:00
|
|
|
# Local patch to disable runtime abi SSL checks, quite pointless for us
|
2018-10-17 10:57:56 +02:00
|
|
|
Patch26: openssh-7.7p1-disable_openssl_abi_check.patch
|
2018-10-19 15:24:01 +02:00
|
|
|
# https://bugzilla.mindrot.org/show_bug.cgi?id=2641
|
2018-10-17 10:57:56 +02:00
|
|
|
Patch27: openssh-7.7p1-no_fork-no_pid_file.patch
|
|
|
|
Patch28: openssh-7.7p1-host_ident.patch
|
2018-10-19 15:12:48 +02:00
|
|
|
# https://bugzilla.mindrot.org/show_bug.cgi?id=1844
|
2018-10-17 10:57:56 +02:00
|
|
|
Patch29: openssh-7.7p1-sftp_force_permissions.patch
|
2018-10-19 15:24:01 +02:00
|
|
|
# https://bugzilla.mindrot.org/show_bug.cgi?id=2143
|
2018-10-17 10:57:56 +02:00
|
|
|
Patch30: openssh-7.7p1-X_forward_with_disabled_ipv6.patch
|
|
|
|
Patch31: openssh-7.7p1-ldap.patch
|
2018-10-19 15:24:01 +02:00
|
|
|
# https://bugzilla.mindrot.org/show_bug.cgi?id=2213
|
2018-10-17 10:57:56 +02:00
|
|
|
Patch32: openssh-7.7p1-IPv6_X_forwarding.patch
|
|
|
|
Patch33: openssh-7.7p1-sftp_print_diagnostic_messages.patch
|
2018-11-26 15:06:38 +01:00
|
|
|
Patch34: openssh-openssl-1_0_0-compatibility.patch
|
2019-01-11 18:55:43 +01:00
|
|
|
Patch35: openssh-7.9p1-CVE-2018-20685.patch
|
2019-02-15 10:16:16 +01:00
|
|
|
Patch36: openssh-CVE-2019-6109-sanitize-scp-filenames.patch
|
|
|
|
Patch37: openssh-CVE-2019-6109-force-progressmeter-update.patch
|
|
|
|
Patch38: openssh-CVE-2019-6111-scp-client-wildcard.patch
|
2019-02-19 09:15:17 +01:00
|
|
|
Patch39: openssh-7.9p1-brace-expansion.patch
|
2019-03-12 11:22:15 +01:00
|
|
|
Patch40: 0001-upstream-Fix-two-race-conditions-in-sshd-relating-to.patch
|
2018-10-17 10:57:56 +02:00
|
|
|
BuildRequires: audit-devel
|
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: groff
|
|
|
|
BuildRequires: libedit-devel
|
|
|
|
BuildRequires: libselinux-devel
|
|
|
|
BuildRequires: openldap2-devel
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: pam-devel
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
BuildRequires: pkgconfig(libsystemd)
|
2019-01-28 09:02:07 +01:00
|
|
|
Requires(post): %fillup_prereq
|
2018-10-17 10:57:56 +02:00
|
|
|
Requires(pre): pwdutils
|
|
|
|
Recommends: %{name}-helpers = %{version}-%{release}
|
2016-05-30 03:36:18 +02:00
|
|
|
Recommends: audit
|
|
|
|
Recommends: xauth
|
2018-10-17 10:57:56 +02:00
|
|
|
Conflicts: %{name}-fips < %{version}-%{release}
|
|
|
|
Conflicts: %{name}-fips > %{version}-%{release}
|
|
|
|
Conflicts: nonfreessh
|
|
|
|
%{?systemd_requires}
|
|
|
|
%if %{with tirpc}
|
|
|
|
BuildRequires: libtirpc-devel
|
|
|
|
%endif
|
2019-01-28 09:02:07 +01:00
|
|
|
%if 0%{?suse_version} >= 1550
|
|
|
|
BuildRequires: pkgconfig(krb5)
|
|
|
|
%else
|
|
|
|
BuildRequires: krb5-mini-devel
|
|
|
|
%endif
|
2011-12-26 08:09:33 +01:00
|
|
|
|
2007-01-07 17:26:05 +01:00
|
|
|
%description
|
|
|
|
SSH (Secure Shell) is a program for logging into and executing commands
|
2007-07-27 02:01:43 +02:00
|
|
|
on a remote machine. It is intended to replace rsh (rlogin and rsh) and
|
|
|
|
provides openssl (secure encrypted communication) between two untrusted
|
|
|
|
hosts over an insecure network.
|
|
|
|
|
|
|
|
xorg-x11 (X Window System) connections and arbitrary TCP/IP ports can
|
|
|
|
also be forwarded over the secure channel.
|
2007-01-07 17:26:05 +01:00
|
|
|
|
2014-01-31 13:18:41 +01:00
|
|
|
%package helpers
|
|
|
|
Summary: OpenSSH AuthorizedKeysCommand helpers
|
2013-09-19 06:09:33 +02:00
|
|
|
Group: Productivity/Networking/SSH
|
2016-05-30 03:36:18 +02:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
2013-09-19 06:09:33 +02:00
|
|
|
|
2014-01-31 13:18:41 +01:00
|
|
|
%description helpers
|
|
|
|
Helper applications for OpenSSH which retrieve keys from various sources.
|
2013-09-19 06:09:33 +02:00
|
|
|
|
2014-04-14 23:53:01 +02:00
|
|
|
%package fips
|
2016-05-30 03:36:18 +02:00
|
|
|
Summary: OpenSSH FIPS cryptomodule HMACs
|
2014-04-14 23:53:01 +02:00
|
|
|
Group: Productivity/Networking/SSH
|
2016-05-30 03:36:18 +02:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
2018-10-17 10:57:56 +02:00
|
|
|
Conflicts: %{name} < %{version}-%{release}
|
|
|
|
Conflicts: %{name} > %{version}-%{release}
|
2016-05-30 03:36:18 +02:00
|
|
|
Obsoletes: %{name}-hmac
|
2014-04-14 23:53:01 +02:00
|
|
|
|
|
|
|
%description fips
|
|
|
|
Hashes that together with the main package form the FIPS certifiable
|
|
|
|
cryptomodule.
|
|
|
|
|
2018-01-12 01:42:53 +01:00
|
|
|
%package cavs
|
|
|
|
Summary: OpenSSH FIPS cryptomodule CAVS tests
|
|
|
|
Group: Productivity/Networking/SSH
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description cavs
|
|
|
|
FIPS140 CAVS tests related parts of the OpenSSH package
|
2016-05-30 03:36:18 +02:00
|
|
|
|
2007-01-07 17:26:05 +01:00
|
|
|
%prep
|
2018-10-17 10:57:56 +02:00
|
|
|
%setup -q
|
2016-05-30 03:36:18 +02:00
|
|
|
cp %{SOURCE3} %{SOURCE4} %{SOURCE11} .
|
2007-01-07 17:26:05 +01:00
|
|
|
|
2018-10-17 10:57:56 +02:00
|
|
|
%autopatch -p1
|
|
|
|
|
2019-01-04 07:19:36 +01:00
|
|
|
# set libexec dir in the LDAP patch
|
2018-05-01 01:44:41 +02:00
|
|
|
sed -i.libexec 's,@LIBEXECDIR@,%{_libexecdir}/ssh,' \
|
|
|
|
$( grep -Rl @LIBEXECDIR@ \
|
2018-10-17 10:57:56 +02:00
|
|
|
$( grep "^+++" openssh-7.7p1-ldap.patch | sed -r 's@^.+/([^/\t ]+).*$@\1@' )
|
2018-05-01 01:44:41 +02:00
|
|
|
)
|
2016-04-06 13:34:51 +02:00
|
|
|
|
2018-01-12 01:42:53 +01:00
|
|
|
%build
|
2011-09-07 17:50:44 +02:00
|
|
|
autoreconf -fiv
|
2018-10-17 10:57:56 +02:00
|
|
|
%ifarch s390 s390x %{sparc}
|
2007-01-07 17:26:05 +01:00
|
|
|
PIEFLAGS="-fPIE"
|
|
|
|
%else
|
|
|
|
PIEFLAGS="-fpie"
|
|
|
|
%endif
|
2013-09-19 06:09:33 +02:00
|
|
|
CFLAGS="%{optflags} $PIEFLAGS -fstack-protector"
|
|
|
|
CXXFLAGS="%{optflags} $PIEFLAGS -fstack-protector"
|
|
|
|
LDFLAGS="-pie -Wl,--as-needed"
|
2019-01-04 07:19:36 +01:00
|
|
|
#CPPFLAGS="%%{optflags} -DUSE_INTERNAL_B64"
|
2013-09-19 06:09:33 +02:00
|
|
|
export LDFLAGS CFLAGS CXXFLAGS CPPFLAGS
|
2016-05-30 03:36:18 +02:00
|
|
|
%configure \
|
2011-10-19 04:18:13 +02:00
|
|
|
--sysconfdir=%{_sysconfdir}/ssh \
|
|
|
|
--libexecdir=%{_libexecdir}/ssh \
|
2011-02-04 11:44:51 +01:00
|
|
|
--with-selinux \
|
2013-09-19 06:09:33 +02:00
|
|
|
--with-pid-dir=/run \
|
2018-01-12 13:57:27 +01:00
|
|
|
--with-systemd \
|
2013-09-19 06:09:33 +02:00
|
|
|
--with-ssl-engine \
|
2011-02-04 11:44:51 +01:00
|
|
|
--with-pam \
|
2013-09-19 06:09:33 +02:00
|
|
|
--with-kerberos5=%{_prefix} \
|
2018-10-17 10:57:56 +02:00
|
|
|
--with-privsep-path=%{_localstatedir}/lib/empty \
|
2014-02-14 15:54:10 +01:00
|
|
|
%if %{sandbox_seccomp}
|
|
|
|
--with-sandbox=seccomp_filter \
|
|
|
|
%else
|
2011-10-19 04:18:13 +02:00
|
|
|
--with-sandbox=rlimit \
|
2013-09-19 06:09:33 +02:00
|
|
|
%endif
|
2011-02-04 11:44:51 +01:00
|
|
|
--disable-strip \
|
2013-09-19 06:09:33 +02:00
|
|
|
--with-audit=linux \
|
|
|
|
--with-ldap \
|
|
|
|
--with-xauth=%{_bindir}/xauth \
|
|
|
|
--with-libedit \
|
2018-10-17 11:24:31 +02:00
|
|
|
--target=%{_target_cpu}-suse-linux
|
2013-09-19 06:09:33 +02:00
|
|
|
|
2014-02-14 15:54:10 +01:00
|
|
|
make %{?_smp_mflags}
|
2013-09-19 06:09:33 +02:00
|
|
|
|
2007-01-07 17:26:05 +01:00
|
|
|
%install
|
2018-10-17 10:57:56 +02:00
|
|
|
%make_install
|
2014-02-14 15:54:10 +01:00
|
|
|
|
2011-10-19 04:18:13 +02:00
|
|
|
install -d -m 755 %{buildroot}%{_sysconfdir}/pam.d
|
2018-10-17 10:57:56 +02:00
|
|
|
install -d -m 755 %{buildroot}%{_localstatedir}/lib/sshd
|
2013-09-19 06:09:33 +02:00
|
|
|
install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/pam.d/sshd
|
2011-10-19 04:18:13 +02:00
|
|
|
install -d -m 755 %{buildroot}%{_sysconfdir}/slp.reg.d/
|
2013-09-19 06:09:33 +02:00
|
|
|
install -m 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/slp.reg.d/
|
2014-02-14 15:54:10 +01:00
|
|
|
install -D -m 0644 %{SOURCE10} %{buildroot}%{_unitdir}/sshd.service
|
2018-10-17 10:57:56 +02:00
|
|
|
ln -s service %{buildroot}%{_sbindir}/rcsshd
|
2018-01-12 13:57:27 +01:00
|
|
|
install -d -m 755 %{buildroot}%{_fillupdir}
|
|
|
|
install -m 644 %{SOURCE8} %{buildroot}%{_fillupdir}
|
2007-01-07 17:26:05 +01:00
|
|
|
# install shell script to automate the process of adding your public key to a remote machine
|
2011-10-19 04:18:13 +02:00
|
|
|
install -m 755 contrib/ssh-copy-id %{buildroot}%{_bindir}
|
2011-11-02 16:44:39 +01:00
|
|
|
install -m 644 contrib/ssh-copy-id.1 %{buildroot}%{_mandir}/man1
|
2018-10-17 10:57:56 +02:00
|
|
|
sed -i -e s@%{_prefix}/libexec@%{_libexecdir}@g %{buildroot}%{_sysconfdir}/ssh/sshd_config
|
2013-09-19 06:09:33 +02:00
|
|
|
|
2019-08-19 11:45:46 +02:00
|
|
|
%if 0%{?suse_version} < 1550
|
2018-12-11 17:01:09 +01:00
|
|
|
# install firewall definitions
|
2011-11-02 16:44:39 +01:00
|
|
|
mkdir -p %{buildroot}%{_fwdefdir}
|
2013-09-19 06:09:33 +02:00
|
|
|
install -m 644 %{SOURCE7} %{buildroot}%{_fwdefdir}/sshd
|
2019-08-19 11:45:46 +02:00
|
|
|
%endif
|
2013-09-19 06:09:33 +02:00
|
|
|
|
|
|
|
# askpass wrapper
|
|
|
|
sed -e "s,@LIBEXECDIR@,%{_libexecdir},g" < %{SOURCE6} > %{buildroot}%{_libexecdir}/ssh/ssh-askpass
|
2018-01-12 01:42:53 +01:00
|
|
|
sed -e "s,@LIBEXECDIR@,%{_libexecdir},g" < %{SOURCE12} > %{buildroot}%{_libexecdir}/ssh/cavs_driver-ssh.pl
|
2013-09-19 06:09:33 +02:00
|
|
|
rm -f %{buildroot}%{_datadir}/Ssh.bin
|
2014-02-14 15:54:10 +01:00
|
|
|
# sshd keys generator wrapper
|
2013-09-19 06:09:33 +02:00
|
|
|
install -D -m 0755 %{SOURCE9} %{buildroot}%{_sbindir}/sshd-gen-keys-start
|
2007-01-07 17:26:05 +01:00
|
|
|
|
2014-04-14 23:53:01 +02:00
|
|
|
# the hmac hashes - taken from openssl
|
|
|
|
#
|
|
|
|
# re-define the __os_install_post macro: the macro strips
|
|
|
|
# the binaries and thereby invalidates any hashes created earlier.
|
|
|
|
#
|
2019-01-04 07:19:36 +01:00
|
|
|
# this shows up earlier because otherwise the %%expand of
|
2014-04-14 23:53:01 +02:00
|
|
|
# the macro is too late.
|
|
|
|
%{expand:%%global __os_install_post {%__os_install_post
|
|
|
|
for b in \
|
|
|
|
%{_bindir}/ssh \
|
|
|
|
%{_sbindir}/sshd \
|
|
|
|
%{_libexecdir}/ssh/sftp-server \
|
|
|
|
; do
|
2016-05-30 03:36:18 +02:00
|
|
|
openssl dgst -sha256 -binary -hmac %{CHECKSUM_HMAC_KEY} < %{buildroot}$b > %{buildroot}$b%{CHECKSUM_SUFFIX}
|
2014-04-14 23:53:01 +02:00
|
|
|
done
|
|
|
|
|
|
|
|
}}
|
|
|
|
|
2007-01-07 17:26:05 +01:00
|
|
|
%pre
|
2012-11-13 11:18:36 +01:00
|
|
|
getent group sshd >/dev/null || %{_sbindir}/groupadd -r sshd
|
2018-10-17 10:57:56 +02:00
|
|
|
getent passwd sshd >/dev/null || %{_sbindir}/useradd -r -g sshd -d %{_localstatedir}/lib/sshd -s /bin/false -c "SSH daemon" sshd
|
2011-11-29 20:55:10 +01:00
|
|
|
%service_add_pre sshd.service
|
2011-10-19 04:18:13 +02:00
|
|
|
|
2007-01-07 17:26:05 +01:00
|
|
|
%post
|
2014-02-14 15:54:10 +01:00
|
|
|
%{fillup_only -n ssh sshd}
|
2011-11-29 20:55:10 +01:00
|
|
|
%service_add_post sshd.service
|
2018-10-17 10:57:56 +02:00
|
|
|
%set_permissions %{_sysconfdir}/ssh/sshd_config
|
2007-01-07 17:26:05 +01:00
|
|
|
|
|
|
|
%preun
|
2011-11-29 20:55:10 +01:00
|
|
|
%service_del_preun sshd.service
|
2007-01-07 17:26:05 +01:00
|
|
|
|
|
|
|
%postun
|
2016-05-30 03:36:18 +02:00
|
|
|
# The openssh-fips trigger script for openssh will normally restart sshd once
|
|
|
|
# it gets installed, so only restart the service here is openssh-fips is not
|
|
|
|
# present
|
|
|
|
rpm -q openssh-fips >& /dev/null && DISABLE_RESTART_ON_UPDATE=yes
|
2014-02-14 15:54:10 +01:00
|
|
|
%service_del_postun sshd.service
|
2007-01-07 17:26:05 +01:00
|
|
|
|
2016-05-30 03:36:18 +02:00
|
|
|
%triggerin -n openssh-fips -- %{name} = %{version}-%{release}
|
|
|
|
%restart_on_update sshd
|
|
|
|
|
2018-01-12 13:57:27 +01:00
|
|
|
%verifyscript
|
2018-10-17 10:57:56 +02:00
|
|
|
%verify_permissions -e %{_sysconfdir}/ssh/sshd_config
|
2018-01-12 13:57:27 +01:00
|
|
|
|
2007-01-07 17:26:05 +01:00
|
|
|
%files
|
2016-05-30 03:36:18 +02:00
|
|
|
%exclude %{_bindir}/ssh%{CHECKSUM_SUFFIX}
|
|
|
|
%exclude %{_sbindir}/sshd%{CHECKSUM_SUFFIX}
|
|
|
|
%exclude %{_libexecdir}/ssh/sftp-server%{CHECKSUM_SUFFIX}
|
|
|
|
%exclude %{_libexecdir}/ssh/cavs*
|
2018-10-17 10:57:56 +02:00
|
|
|
%dir %attr(755,root,root) %{_localstatedir}/lib/sshd
|
2018-04-06 06:49:00 +02:00
|
|
|
%license LICENCE
|
|
|
|
%doc README.SUSE README.kerberos README.FIPS ChangeLog OVERVIEW README TODO CREDITS
|
2011-10-19 04:18:13 +02:00
|
|
|
%attr(0755,root,root) %dir %{_sysconfdir}/ssh
|
|
|
|
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/ssh/moduli
|
2013-09-19 06:09:33 +02:00
|
|
|
%verify(not mode) %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/ssh/ssh_config
|
2018-01-12 13:57:27 +01:00
|
|
|
%verify(not mode) %attr(0600,root,root) %config(noreplace) %{_sysconfdir}/ssh/sshd_config
|
2013-09-19 06:09:33 +02:00
|
|
|
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/pam.d/sshd
|
2018-10-17 10:57:56 +02:00
|
|
|
%attr(0644,root,root) %{_unitdir}/sshd.service
|
2013-09-19 06:09:33 +02:00
|
|
|
%attr(0755,root,root) %{_bindir}/*
|
|
|
|
%attr(0755,root,root) %{_sbindir}/*
|
2011-10-19 04:18:13 +02:00
|
|
|
%attr(0755,root,root) %dir %{_libexecdir}/ssh
|
2016-09-30 22:34:19 +02:00
|
|
|
%exclude %{_libexecdir}/ssh/ssh-ldap*
|
2013-09-19 06:09:33 +02:00
|
|
|
%attr(0755,root,root) %{_libexecdir}/ssh/*
|
2018-10-17 10:57:56 +02:00
|
|
|
%attr(0444,root,root) %{_mandir}/man1/*
|
|
|
|
%attr(0444,root,root) %{_mandir}/man5/*
|
|
|
|
%attr(0444,root,root) %{_mandir}/man8/*
|
2019-01-28 09:02:07 +01:00
|
|
|
%exclude %{_mandir}/man5/ssh-ldap*
|
|
|
|
%exclude %{_mandir}/man8/ssh-ldap*
|
2011-10-19 04:18:13 +02:00
|
|
|
%dir %{_sysconfdir}/slp.reg.d
|
|
|
|
%config %{_sysconfdir}/slp.reg.d/ssh.reg
|
2018-01-12 13:57:27 +01:00
|
|
|
%{_fillupdir}/sysconfig.ssh
|
2019-08-19 11:45:46 +02:00
|
|
|
%if 0%{?suse_version} < 1550
|
2019-01-04 07:19:36 +01:00
|
|
|
%dir %{_fwdir}
|
|
|
|
%dir %{_fwdefdir}
|
2013-09-19 06:09:33 +02:00
|
|
|
%config %{_fwdefdir}/sshd
|
2019-08-19 11:45:46 +02:00
|
|
|
%endif
|
2013-09-19 06:09:33 +02:00
|
|
|
|
2014-01-31 13:18:41 +01:00
|
|
|
%files helpers
|
2013-09-19 06:09:33 +02:00
|
|
|
%attr(0755,root,root) %dir %{_sysconfdir}/ssh
|
2018-05-01 01:44:41 +02:00
|
|
|
%verify(not mode) %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/ssh/ldap.conf
|
2013-09-19 06:09:33 +02:00
|
|
|
%attr(0755,root,root) %dir %{_libexecdir}/ssh
|
2018-05-01 01:44:41 +02:00
|
|
|
%attr(0755,root,root) %{_libexecdir}/ssh/ssh-ldap*
|
2019-01-28 09:02:07 +01:00
|
|
|
%attr(0444,root,root) %{_mandir}/man5/ssh-ldap*
|
|
|
|
%attr(0444,root,root) %{_mandir}/man8/ssh-ldap*
|
2018-05-01 01:44:41 +02:00
|
|
|
%doc HOWTO.ldap-keys openssh-lpk-openldap.schema openssh-lpk-sun.schema
|
2007-01-07 17:26:05 +01:00
|
|
|
|
2014-04-14 23:53:01 +02:00
|
|
|
%files fips
|
2016-05-30 03:36:18 +02:00
|
|
|
%attr(0444,root,root) %{_bindir}/ssh%{CHECKSUM_SUFFIX}
|
|
|
|
%attr(0444,root,root) %{_sbindir}/sshd%{CHECKSUM_SUFFIX}
|
|
|
|
%attr(0444,root,root) %{_libexecdir}/ssh/sftp-server%{CHECKSUM_SUFFIX}
|
|
|
|
|
2018-01-12 01:42:53 +01:00
|
|
|
%files cavs
|
|
|
|
%attr(0755,root,root) %{_libexecdir}/ssh/cavs*
|
2014-04-14 23:53:01 +02:00
|
|
|
|
2007-02-22 14:37:20 +01:00
|
|
|
%changelog
|