# _without_gnome - without gnome-askpass utility
# _without_gtk - without gtk (2.x)
# _with_ldap - with ldap support
-# _with_kerberos5 - with kerberos5 support
+# _with_kerberos5 - with kerberos5 support
#
# default to gtk2-based gnome-askpass
Summary(ru): OpenSSH - Ó×ÏÂÏÄÎÁÑ ÒÅÁÌÉÚÁÃÉÑ ÐÒÏÔÏËÏÌÁ Secure Shell (SSH)
Summary(uk): OpenSSH - צÌØÎÁ ÒÅÁ̦ÚÁÃ¦Ñ ÐÒÏÔÏËÏÌÕ Secure Shell (SSH)
Name: openssh
-Version: 3.6.1p2%{?_with_ldap:ldap}
-Release: 3.2
+Version: 3.6.1p2
+Release: 4%{?_with_ldap:ldap}
Epoch: 2
License: BSD
Group: Applications/Networking
Patch4: %{name}-sigpipe.patch
# http://ldappubkey.gcu-squad.org/
Patch5: ldappubkey-ossh3.6-v2.patch
-Patch6: openssh-heimdal.patch
+Patch6: %{name}-heimdal.patch
URL: http://www.openssh.com/
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: %{__perl}
%{!?_without_gtk:BuildRequires: pkgconfig}
BuildRequires: zlib-devel
-PreReq: openssl >= 0.9.7
PreReq: FHS >= 2.1-24
+PreReq: openssl >= 0.9.7
Obsoletes: ssh
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Summary(uk): OpenSSH - ÓÅÒ×ÅÒ ÐÒÏÔÏËÏÌÕ Secure Shell (sshd)
Group: Networking/Daemons
PreReq: %{name} = %{epoch}:%{version}
-PreReq: rc-scripts >= 0.3.1-3
+PreReq: rc-scripts >= 0.3.1-14
Requires(pre): /bin/id
Requires(pre): /usr/sbin/useradd
-Requires(post): /sbin/chkconfig
+Requires(post,preun): /sbin/chkconfig
Requires(post): chkconfig >= 0.9
Requires(post): grep
Requires(postun): /usr/sbin/userdel
# Get network config
. /etc/sysconfig/network
+SERVICE_LIMITS_HARD="-u unlimited"
+SERVICE_LIMITS_SOFT="-c 0"
+
# Get service config
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd
# Check if the service is already running?
if [ ! -f /var/lock/subsys/sshd ]; then
msg_starting OpenSSH
- ULIMIT_C="-S -c 0"
daemon /usr/sbin/sshd
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/sshd