2005-10-30 00:55:45 +00:00
|
|
|
# Default values for additional components
|
|
|
|
%define build_x11_askpass 1
|
|
|
|
|
|
|
|
# Define the UID/GID to use for privilege separation
|
|
|
|
%define sshd_gid 65
|
|
|
|
%define sshd_uid 71
|
|
|
|
|
|
|
|
# The version of x11-ssh-askpass to use
|
|
|
|
%define xversion 1.2.4.1
|
|
|
|
|
|
|
|
# Allow the ability to override defaults with -D skip_xxx=1
|
|
|
|
%{?skip_x11_askpass:%define build_x11_askpass 0}
|
|
|
|
|
|
|
|
Summary: OpenSSH, a free Secure Shell (SSH) protocol implementation
|
|
|
|
Name: openssh
|
2020-09-27 07:25:01 +00:00
|
|
|
Version: 8.4p1
|
2016-10-20 19:55:58 +00:00
|
|
|
URL: https://www.openssh.com/
|
2005-10-30 00:55:45 +00:00
|
|
|
Release: 1
|
|
|
|
Source0: openssh-%{version}.tar.gz
|
|
|
|
Source1: x11-ssh-askpass-%{xversion}.tar.gz
|
|
|
|
License: BSD
|
|
|
|
Group: Productivity/Networking/SSH
|
|
|
|
BuildRoot: %{_tmppath}/openssh-%{version}-buildroot
|
|
|
|
PreReq: openssl
|
|
|
|
Obsoletes: ssh
|
|
|
|
Provides: ssh
|
1999-11-22 23:11:29 +00:00
|
|
|
#
|
1999-12-07 05:20:49 +00:00
|
|
|
# (Build[ing] Prereq[uisites] only work for RPM 2.95 and newer.)
|
|
|
|
# building prerequisites -- stuff for
|
|
|
|
# OpenSSL (openssl-devel),
|
|
|
|
# and Gnome (glibdev, gtkdev, and gnlibsd)
|
1999-11-22 23:11:29 +00:00
|
|
|
#
|
2005-10-30 00:55:45 +00:00
|
|
|
BuildPrereq: openssl
|
2011-08-12 01:02:35 +00:00
|
|
|
BuildPrereq: zlib-devel
|
2005-10-30 00:55:45 +00:00
|
|
|
#BuildPrereq: glibdev
|
|
|
|
#BuildPrereq: gtkdev
|
|
|
|
#BuildPrereq: gnlibsd
|
|
|
|
|
|
|
|
%package askpass
|
|
|
|
Summary: A passphrase dialog for OpenSSH and the X window System.
|
|
|
|
Group: Productivity/Networking/SSH
|
|
|
|
Requires: openssh = %{version}
|
|
|
|
Obsoletes: ssh-extras
|
|
|
|
Provides: openssh:${_libdir}/ssh/ssh-askpass
|
|
|
|
|
|
|
|
%if %{build_x11_askpass}
|
|
|
|
BuildPrereq: XFree86-devel
|
|
|
|
%endif
|
1999-11-15 06:19:24 +00:00
|
|
|
|
1999-10-27 03:42:43 +00:00
|
|
|
%description
|
2005-10-30 00:55:45 +00:00
|
|
|
Ssh (Secure Shell) is a program for logging into a remote machine and for
|
1999-10-27 03:42:43 +00:00
|
|
|
executing commands in a remote machine. It is intended to replace
|
|
|
|
rlogin and rsh, and provide secure encrypted communications between
|
|
|
|
two untrusted hosts over an insecure network. X11 connections and
|
|
|
|
arbitrary TCP/IP ports can also be forwarded over the secure channel.
|
|
|
|
|
|
|
|
OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
|
2003-11-21 12:48:55 +00:00
|
|
|
up to date in terms of security and features, as well as removing all
|
2018-04-10 00:19:02 +00:00
|
|
|
patented algorithms to separate libraries (OpenSSL).
|
1999-10-27 03:42:43 +00:00
|
|
|
|
2000-09-16 05:30:55 +00:00
|
|
|
This package includes all files necessary for both the OpenSSH
|
2005-10-30 00:55:45 +00:00
|
|
|
client and server.
|
|
|
|
|
|
|
|
%description askpass
|
|
|
|
Ssh (Secure Shell) is a program for logging into a remote machine and for
|
|
|
|
executing commands in a remote machine. It is intended to replace
|
|
|
|
rlogin and rsh, and provide secure encrypted communications between
|
|
|
|
two untrusted hosts over an insecure network. X11 connections and
|
|
|
|
arbitrary TCP/IP ports can also be forwarded over the secure channel.
|
|
|
|
|
|
|
|
OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
|
|
|
|
up to date in terms of security and features, as well as removing all
|
2018-04-10 00:19:02 +00:00
|
|
|
patented algorithms to separate libraries (OpenSSL).
|
2005-10-30 00:55:45 +00:00
|
|
|
|
|
|
|
This package contains an X Window System passphrase dialog for OpenSSH.
|
1999-11-09 03:46:02 +00:00
|
|
|
|
1999-10-27 03:42:43 +00:00
|
|
|
%changelog
|
2020-07-20 03:09:25 +00:00
|
|
|
* Mon Jul 20 2020 Damien Miller <djm@mindrto.org>
|
|
|
|
- Add ssh-sk-helper and corresponding manual page.
|
2005-10-30 00:55:45 +00:00
|
|
|
* Wed Oct 26 2005 Iain Morgan <imorgan@nas.nasa.gov>
|
|
|
|
- Removed accidental inclusion of --without-zlib-version-check
|
|
|
|
* Tue Oct 25 2005 Iain Morgan <imorgan@nas.nasa.gov>
|
|
|
|
- Overhaul to deal with newer versions of SuSE and OpenSSH
|
2000-06-12 06:38:54 +00:00
|
|
|
* Mon Jun 12 2000 Damien Miller <djm@mindrot.org>
|
|
|
|
- Glob manpages to catch compressed files
|
2000-03-15 01:31:18 +00:00
|
|
|
* Wed Mar 15 2000 Damien Miller <djm@ibs.com.au>
|
|
|
|
- Updated for new location
|
|
|
|
- Updated for new gnome-ssh-askpass build
|
1999-12-27 05:43:42 +00:00
|
|
|
* Sun Dec 26 1999 Chris Saia <csaia@wtower.com>
|
|
|
|
- Made symlink to gnome-ssh-askpass called ssh-askpass
|
1999-12-07 05:20:49 +00:00
|
|
|
* Wed Nov 24 1999 Chris Saia <csaia@wtower.com>
|
|
|
|
- Removed patches that included /etc/pam.d/sshd, /sbin/init.d/rc.sshd, and
|
|
|
|
/var/adm/fillup-templates/rc.config.sshd, since Damien merged these into
|
|
|
|
his released tarfile
|
|
|
|
- Changed permissions on ssh_config in the install procedure to 644 from 600
|
|
|
|
even though it was correct in the %files section and thus right in the RPMs
|
|
|
|
- Postinstall script for the server now only prints "Generating SSH host
|
|
|
|
key..." if we need to actually do this, in order to eliminate a confusing
|
|
|
|
message if an SSH host key is already in place
|
|
|
|
- Marked all manual pages as %doc(umentation)
|
1999-11-22 23:11:29 +00:00
|
|
|
* Mon Nov 22 1999 Chris Saia <csaia@wtower.com>
|
|
|
|
- Added flag to configure daemon with TCP Wrappers support
|
|
|
|
- Added building prerequisites (works in RPM 3.0 and newer)
|
|
|
|
* Thu Nov 18 1999 Chris Saia <csaia@wtower.com>
|
|
|
|
- Made this package correct for SuSE.
|
|
|
|
- Changed instances of pam_pwdb.so to pam_unix.so, since it works more properly
|
|
|
|
with SuSE, and lib_pwdb.so isn't installed by default.
|
1999-11-15 06:19:24 +00:00
|
|
|
* Mon Nov 15 1999 Damien Miller <djm@mindrot.org>
|
|
|
|
- Split subpackages further based on patch from jim knoble <jmknoble@pobox.com>
|
1999-11-13 02:09:31 +00:00
|
|
|
* Sat Nov 13 1999 Damien Miller <djm@mindrot.org>
|
1999-11-15 05:01:07 +00:00
|
|
|
- Added 'Obsoletes' directives
|
1999-11-09 03:28:26 +00:00
|
|
|
* Tue Nov 09 1999 Damien Miller <djm@ibs.com.au>
|
|
|
|
- Use make install
|
1999-11-09 03:46:02 +00:00
|
|
|
- Subpackages
|
1999-11-08 04:30:59 +00:00
|
|
|
* Mon Nov 08 1999 Damien Miller <djm@ibs.com.au>
|
|
|
|
- Added links for slogin
|
|
|
|
- Fixed perms on manpages
|
1999-10-29 23:46:20 +00:00
|
|
|
* Sat Oct 30 1999 Damien Miller <djm@ibs.com.au>
|
|
|
|
- Renamed init script
|
1999-10-29 00:29:29 +00:00
|
|
|
* Fri Oct 29 1999 Damien Miller <djm@ibs.com.au>
|
|
|
|
- Back to old binary names
|
1999-10-28 04:03:14 +00:00
|
|
|
* Thu Oct 28 1999 Damien Miller <djm@ibs.com.au>
|
|
|
|
- Use autoconf
|
|
|
|
- New binary names
|
1999-10-27 03:42:43 +00:00
|
|
|
* Wed Oct 27 1999 Damien Miller <djm@ibs.com.au>
|
|
|
|
- Initial RPMification, based on Jan "Yenya" Kasprzak's <kas@fi.muni.cz> spec.
|
|
|
|
|
|
|
|
%prep
|
1999-12-07 05:32:10 +00:00
|
|
|
|
2005-10-30 00:55:45 +00:00
|
|
|
%if %{build_x11_askpass}
|
|
|
|
%setup -q -a 1
|
|
|
|
%else
|
1999-12-07 05:32:10 +00:00
|
|
|
%setup -q
|
2005-10-30 00:55:45 +00:00
|
|
|
%endif
|
1999-10-27 03:42:43 +00:00
|
|
|
|
|
|
|
%build
|
1999-11-09 03:28:26 +00:00
|
|
|
CFLAGS="$RPM_OPT_FLAGS" \
|
2005-10-30 00:55:45 +00:00
|
|
|
%configure --prefix=/usr \
|
|
|
|
--sysconfdir=%{_sysconfdir}/ssh \
|
|
|
|
--mandir=%{_mandir} \
|
|
|
|
--with-privsep-path=/var/lib/empty \
|
2001-09-18 05:12:10 +00:00
|
|
|
--with-pam \
|
2005-10-30 00:55:45 +00:00
|
|
|
--libexecdir=%{_libdir}/ssh
|
1999-11-09 03:31:49 +00:00
|
|
|
make
|
|
|
|
|
2005-10-30 00:55:45 +00:00
|
|
|
%if %{build_x11_askpass}
|
|
|
|
cd x11-ssh-askpass-%{xversion}
|
|
|
|
%configure --mandir=/usr/X11R6/man \
|
|
|
|
--libexecdir=%{_libdir}/ssh
|
|
|
|
xmkmf -a
|
|
|
|
make
|
2000-03-15 01:31:18 +00:00
|
|
|
cd ..
|
2005-10-30 00:55:45 +00:00
|
|
|
%endif
|
2000-03-15 01:31:18 +00:00
|
|
|
|
1999-10-27 03:42:43 +00:00
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2000-01-26 03:37:48 +00:00
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT/
|
1999-11-09 03:34:31 +00:00
|
|
|
install -d $RPM_BUILD_ROOT/etc/pam.d/
|
2005-10-30 00:55:45 +00:00
|
|
|
install -d $RPM_BUILD_ROOT/etc/init.d/
|
1999-12-07 05:20:49 +00:00
|
|
|
install -d $RPM_BUILD_ROOT/var/adm/fillup-templates
|
2000-09-16 04:39:56 +00:00
|
|
|
install -m644 contrib/sshd.pam.generic $RPM_BUILD_ROOT/etc/pam.d/sshd
|
2005-10-30 00:55:45 +00:00
|
|
|
install -m744 contrib/suse/rc.sshd $RPM_BUILD_ROOT/etc/init.d/sshd
|
|
|
|
install -m744 contrib/suse/sysconfig.ssh \
|
1999-12-07 05:20:49 +00:00
|
|
|
$RPM_BUILD_ROOT/var/adm/fillup-templates
|
1999-10-28 23:18:29 +00:00
|
|
|
|
2005-10-30 00:55:45 +00:00
|
|
|
%if %{build_x11_askpass}
|
|
|
|
cd x11-ssh-askpass-%{xversion}
|
|
|
|
make install install.man BINDIR=%{_libdir}/ssh DESTDIR=$RPM_BUILD_ROOT/
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/Ssh.bin
|
|
|
|
%endif
|
|
|
|
|
1999-10-27 03:42:43 +00:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2005-10-30 00:55:45 +00:00
|
|
|
%pre
|
|
|
|
/usr/sbin/groupadd -g %{sshd_gid} -o -r sshd 2> /dev/null || :
|
|
|
|
/usr/sbin/useradd -r -o -g sshd -u %{sshd_uid} -s /bin/false -c "SSH Privilege Separation User" -d /var/lib/sshd sshd 2> /dev/null || :
|
|
|
|
|
2000-09-16 05:30:55 +00:00
|
|
|
%post
|
2011-08-12 01:02:35 +00:00
|
|
|
/usr/bin/ssh-keygen -A
|
|
|
|
%{fillup_and_insserv -n -y ssh sshd}
|
2005-10-30 00:55:45 +00:00
|
|
|
%run_permissions
|
|
|
|
|
|
|
|
%verifyscript
|
|
|
|
%verify_permissions -e /etc/ssh/sshd_config -e /etc/ssh/ssh_config -e /usr/bin/ssh
|
1999-10-27 03:42:43 +00:00
|
|
|
|
2000-09-16 05:30:55 +00:00
|
|
|
%preun
|
2005-10-30 00:55:45 +00:00
|
|
|
%stop_on_removal sshd
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%restart_on_update sshd
|
|
|
|
%{insserv_cleanup}
|
1999-10-27 03:42:43 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2009-02-21 07:03:04 +00:00
|
|
|
%doc ChangeLog OVERVIEW README* PROTOCOL*
|
2008-06-28 06:01:35 +00:00
|
|
|
%doc TODO CREDITS LICENCE
|
2005-10-30 00:55:45 +00:00
|
|
|
%attr(0755,root,root) %dir %{_sysconfdir}/ssh
|
|
|
|
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/ssh/ssh_config
|
|
|
|
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/ssh/sshd_config
|
|
|
|
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/ssh/moduli
|
|
|
|
%attr(0644,root,root) %config(noreplace) /etc/pam.d/sshd
|
|
|
|
%attr(0755,root,root) %config /etc/init.d/sshd
|
|
|
|
%attr(0755,root,root) %{_bindir}/ssh-keygen
|
|
|
|
%attr(0755,root,root) %{_bindir}/scp
|
|
|
|
%attr(0755,root,root) %{_bindir}/ssh
|
|
|
|
%attr(0755,root,root) %{_bindir}/ssh-agent
|
|
|
|
%attr(0755,root,root) %{_bindir}/ssh-add
|
|
|
|
%attr(0755,root,root) %{_bindir}/ssh-keyscan
|
|
|
|
%attr(0755,root,root) %{_bindir}/sftp
|
|
|
|
%attr(0755,root,root) %{_sbindir}/sshd
|
|
|
|
%attr(0755,root,root) %dir %{_libdir}/ssh
|
|
|
|
%attr(0755,root,root) %{_libdir}/ssh/sftp-server
|
|
|
|
%attr(4711,root,root) %{_libdir}/ssh/ssh-keysign
|
2010-02-24 07:21:45 +00:00
|
|
|
%attr(0755,root,root) %{_libdir}/ssh/ssh-pkcs11-helper
|
2020-07-20 03:09:25 +00:00
|
|
|
%attr(0755,root,root) %{_libdir}/ssh/ssh-sk-helper
|
2005-10-30 00:55:45 +00:00
|
|
|
%attr(0644,root,root) %doc %{_mandir}/man1/scp.1*
|
|
|
|
%attr(0644,root,root) %doc %{_mandir}/man1/sftp.1*
|
|
|
|
%attr(0644,root,root) %doc %{_mandir}/man1/ssh.1*
|
|
|
|
%attr(0644,root,root) %doc %{_mandir}/man1/ssh-add.1*
|
|
|
|
%attr(0644,root,root) %doc %{_mandir}/man1/ssh-agent.1*
|
|
|
|
%attr(0644,root,root) %doc %{_mandir}/man1/ssh-keygen.1*
|
|
|
|
%attr(0644,root,root) %doc %{_mandir}/man1/ssh-keyscan.1*
|
2008-06-26 06:01:56 +00:00
|
|
|
%attr(0644,root,root) %doc %{_mandir}/man5/moduli.5*
|
2005-10-30 00:55:45 +00:00
|
|
|
%attr(0644,root,root) %doc %{_mandir}/man5/ssh_config.5*
|
|
|
|
%attr(0644,root,root) %doc %{_mandir}/man5/sshd_config.5*
|
|
|
|
%attr(0644,root,root) %doc %{_mandir}/man8/sftp-server.8*
|
|
|
|
%attr(0644,root,root) %doc %{_mandir}/man8/ssh-keysign.8*
|
2010-02-24 07:21:45 +00:00
|
|
|
%attr(0644,root,root) %doc %{_mandir}/man8/ssh-pkcs11-helper.8*
|
2020-07-20 03:09:25 +00:00
|
|
|
%attr(0644,root,root) %doc %{_mandir}/man8/ssh-sk-helper.8*
|
2005-10-30 00:55:45 +00:00
|
|
|
%attr(0644,root,root) %doc %{_mandir}/man8/sshd.8*
|
|
|
|
%attr(0644,root,root) /var/adm/fillup-templates/sysconfig.ssh
|
1999-10-27 03:42:43 +00:00
|
|
|
|
2005-10-30 00:55:45 +00:00
|
|
|
%if %{build_x11_askpass}
|
|
|
|
%files askpass
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc x11-ssh-askpass-%{xversion}/README
|
|
|
|
%doc x11-ssh-askpass-%{xversion}/ChangeLog
|
|
|
|
%doc x11-ssh-askpass-%{xversion}/SshAskpass*.ad
|
|
|
|
%attr(0755,root,root) %{_libdir}/ssh/ssh-askpass
|
|
|
|
%attr(0755,root,root) %{_libdir}/ssh/x11-ssh-askpass
|
|
|
|
%attr(0644,root,root) %doc /usr/X11R6/man/man1/ssh-askpass.1x*
|
|
|
|
%attr(0644,root,root) %doc /usr/X11R6/man/man1/x11-ssh-askpass.1x*
|
|
|
|
%attr(0644,root,root) %config /usr/X11R6/lib/X11/app-defaults/SshAskpass
|
|
|
|
%endif
|