Description: Secure Shell Name: ssh Version: 1.2.14 Release: 2i Copyright: See COPYRIGHT file Group: Applications/Networking Source: ftp://ftp.funet.fi/pub/unix/security/login/ssh/ssh-1.2.14.tar.gz %prep %setup ./configure --prefix=/usr %build make 'CFLAGS=-O2' %install make install cat > /etc/rc.d/init.d/sshd.init << EOF #!/bin/sh # # sshd This shell script takes care of starting and stopping sshd. # # Source function library. . /etc/rc.d/init.d/functions # Source networking configuration. . /etc/sysconfig/network # Check that networking is up. [ \${NETWORKING} = "no" ] && exit 0 [ -f /usr/sbin/sshd ] || exit 0 # See how we were called. case "\$1" in start) # Start daemons. echo -n "Starting sshd: " daemon sshd echo ;; stop) # Stop daemons. echo -n "Shutting down sshd: " killproc sshd echo "done" ;; *) echo "Usage: sshd.init {start|stop}" exit 1 esac exit 0 EOF chmod 755 /etc/rc.d/init.d/sshd.init rm -f /etc/rc.d/rc1.d/K45ssh /etc/rc.d/rc2.d/S55ssh /etc/rc.d/rc3.d/S55ssh /etc/rc.d/rc5.d/S55ssh /etc/rc.d/rc6.d/K45ssh ln -s /etc/rc.d/init.d/sshd.init /etc/rc.d/rc1.d/K45ssh ln -s /etc/rc.d/init.d/sshd.init /etc/rc.d/rc2.d/S55ssh ln -s /etc/rc.d/init.d/sshd.init /etc/rc.d/rc3.d/S55ssh ln -s /etc/rc.d/init.d/sshd.init /etc/rc.d/rc5.d/S55ssh ln -s /etc/rc.d/init.d/sshd.init /etc/rc.d/rc6.d/K45ssh %post if test -f /etc/ssh_host_key; then echo "You already have a host key in /etc/ssh_host_key." else echo "Generating 1024 bit host key." /usr/bin/ssh-keygen -b 1024 -f /etc/ssh_host_key -N '' fi %files %config /etc/ssh_config %config /etc/sshd_config %doc README README.SECURID RFC RFC.nroff TODO COPYING /usr/bin/ssh /usr/bin/ssh-add /usr/bin/ssh-agent /usr/bin/ssh-askpass /usr/bin/ssh-keygen /usr/bin/make-ssh-known-hosts /usr/bin/slogin /usr/bin/scp /usr/man/man1/ssh-add.1 /usr/man/man1/ssh-agent.1 /usr/man/man1/ssh-keygen.1 /usr/man/man1/ssh.1 /usr/man/man1/slogin.1 /usr/man/man1/make-ssh-known-hosts.1 /usr/man/man1/scp.1 /usr/man/man8/sshd.8 /usr/sbin/sshd /etc/rc.d/init.d/sshd.init /etc/rc.d/rc1.d/K45ssh /etc/rc.d/rc2.d/S55ssh /etc/rc.d/rc3.d/S55ssh /etc/rc.d/rc5.d/S55ssh /etc/rc.d/rc6.d/K45ssh .