blob: 39da099ef05481091e6e571635ce8e98ff8c8980 [file] [log] [blame]
Damien Millerd4a8b7e1999-10-27 13:42:43 +10001Summary: OpenSSH free Secure Shell (SSH) implementation
2Name: openssh
Damien Miller56825a11999-11-11 10:50:04 +11003Version: 1.2pre10
Damien Millerd4a8b7e1999-10-27 13:42:43 +10004Release: 1
5Packager: Damien Miller <djm@ibs.com.au>
Damien Miller56825a11999-11-11 10:50:04 +11006Source0: openssh-%{version}.tar.gz
Damien Millerd4a8b7e1999-10-27 13:42:43 +10007Copyright: BSD
8Group: Applications/Internet
9BuildRoot: /tmp/openssh-%{version}-buildroot
10
Damien Miller3f51bf51999-11-09 14:46:02 +110011%package server
12Summary: Secure Shell protocol server (sshd)
13Requires: openssh chkconfig >= 0.9
14Group: System Environment/Daemons
15
16%package askpass
17Summary: GNOME passphrase dialog
18Group: Applications/Internet
19Requires: openssh
20
Damien Millerd4a8b7e1999-10-27 13:42:43 +100021%description
22Ssh (Secure Shell) a program for logging into a remote machine and for
23executing commands in a remote machine. It is intended to replace
24rlogin and rsh, and provide secure encrypted communications between
25two untrusted hosts over an insecure network. X11 connections and
26arbitrary TCP/IP ports can also be forwarded over the secure channel.
27
28OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
29up to date in terms of security and features, as well as removing all
30patented algorithms to seperate libraries (OpenSSL).
31
Damien Miller3f51bf51999-11-09 14:46:02 +110032This package includes the clients necessary to make encrypted connections
33to SSH servers.
34
35%description server
36Ssh (Secure Shell) a program for logging into a remote machine and for
37executing commands in a remote machine. It is intended to replace
38rlogin and rsh, and provide secure encrypted communications between
39two untrusted hosts over an insecure network. X11 connections and
40arbitrary TCP/IP ports can also be forwarded over the secure channel.
41
42OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
43up to date in terms of security and features, as well as removing all
44patented algorithms to seperate libraries (OpenSSL).
45
46This package contains the secure shell daemon and its documentation.
47The sshd is the server part of the secure shell protocol and allows
48ssh clients to connect to your host.
49
50%description askpass
51Ssh (Secure Shell) a program for logging into a remote machine and for
52executing commands in a remote machine. It is intended to replace
53rlogin and rsh, and provide secure encrypted communications between
54two untrusted hosts over an insecure network. X11 connections and
55arbitrary TCP/IP ports can also be forwarded over the secure channel.
56
57OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
58up to date in terms of security and features, as well as removing all
59patented algorithms to seperate libraries (OpenSSL).
60
61This package contains the GNOME passphrase dialog.
62
Damien Millerd4a8b7e1999-10-27 13:42:43 +100063%changelog
Damien Miller742d2cb1999-11-09 14:28:26 +110064* Tue Nov 09 1999 Damien Miller <djm@ibs.com.au>
65- Use make install
Damien Miller3f51bf51999-11-09 14:46:02 +110066- Subpackages
Damien Miller356a0b01999-11-08 15:30:59 +110067* Mon Nov 08 1999 Damien Miller <djm@ibs.com.au>
68- Added links for slogin
69- Fixed perms on manpages
Damien Miller2bbb9d01999-10-30 09:46:20 +100070* Sat Oct 30 1999 Damien Miller <djm@ibs.com.au>
71- Renamed init script
Damien Miller070f7a11999-10-29 10:29:29 +100072* Fri Oct 29 1999 Damien Miller <djm@ibs.com.au>
73- Back to old binary names
Damien Miller06230761999-10-28 14:03:14 +100074* Thu Oct 28 1999 Damien Miller <djm@ibs.com.au>
75- Use autoconf
76- New binary names
Damien Millerd4a8b7e1999-10-27 13:42:43 +100077* Wed Oct 27 1999 Damien Miller <djm@ibs.com.au>
78- Initial RPMification, based on Jan "Yenya" Kasprzak's <kas@fi.muni.cz> spec.
79
80%prep
81
82%setup -n openssh
83
84%build
85
Damien Miller742d2cb1999-11-09 14:28:26 +110086CFLAGS="$RPM_OPT_FLAGS" \
Damien Miller973fb021999-11-09 14:48:48 +110087 ./configure --prefix=/usr --sysconfdir=/etc/ssh --with-gnome-askpass
Damien Millerd4a8b7e1999-10-27 13:42:43 +100088
Damien Millercdb8b1d1999-11-09 14:31:49 +110089make
90
Damien Millerd4a8b7e1999-10-27 13:42:43 +100091%install
92rm -rf $RPM_BUILD_ROOT
Damien Miller742d2cb1999-11-09 14:28:26 +110093make install prefix="$RPM_BUILD_ROOT/usr"
Damien Millerd4a8b7e1999-10-27 13:42:43 +100094
Damien Miller2b72a4a1999-11-09 14:34:31 +110095install -d $RPM_BUILD_ROOT/etc/ssh
96install -d $RPM_BUILD_ROOT/etc/pam.d/
97install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
Damien Millera37010e1999-10-29 09:18:29 +100098install -m644 sshd.pam $RPM_BUILD_ROOT/etc/pam.d/sshd
Damien Miller2bbb9d01999-10-30 09:46:20 +100099install -m755 sshd.init.redhat $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd
Damien Millera37010e1999-10-29 09:18:29 +1000100install -m600 ssh_config $RPM_BUILD_ROOT/etc/ssh/ssh_config
101install -m600 sshd_config $RPM_BUILD_ROOT/etc/ssh/sshd_config
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000102
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000103%clean
104rm -rf $RPM_BUILD_ROOT
105
Damien Miller3f51bf51999-11-09 14:46:02 +1100106%post server
Damien Millera37010e1999-10-29 09:18:29 +1000107/sbin/chkconfig --add sshd
108if [ ! -f /etc/ssh/ssh_host_key -o ! -s /etc/ssh/ssh_host_key ]; then
109 /usr/bin/ssh-keygen -b 1024 -f /etc/ssh/ssh_host_key -N '' >&2
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000110fi
Damien Millera37010e1999-10-29 09:18:29 +1000111if test -r /var/run/sshd.pid
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000112then
Damien Millera37010e1999-10-29 09:18:29 +1000113 /etc/rc.d/init.d/sshd restart >&2
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000114fi
115
Damien Miller3f51bf51999-11-09 14:46:02 +1100116%preun server
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000117if [ "$1" = 0 ]
118then
Damien Millera37010e1999-10-29 09:18:29 +1000119 /etc/rc.d/init.d/sshd stop >&2
120 /sbin/chkconfig --del sshd
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000121fi
122
123%files
124%defattr(-,root,root)
Damien Miller06230761999-10-28 14:03:14 +1000125%doc COPYING.Ylonen ChangeLog ChangeLog.Ylonen OVERVIEW
Damien Millere2db1e11999-10-30 14:50:37 +1000126%doc README README.Ylonen
Damien Millerb77870f1999-11-10 12:48:08 +1100127%attr(4755,root,root) /usr/bin/ssh
Damien Miller29d68521999-10-28 14:34:49 +1000128%attr(0755,root,root) /usr/bin/ssh-agent
129%attr(0755,root,root) /usr/bin/ssh-keygen
130%attr(0755,root,root) /usr/bin/ssh-add
131%attr(0755,root,root) /usr/bin/scp
Damien Millerb77870f1999-11-10 12:48:08 +1100132%attr(-,root,root) /usr/bin/slogin
Damien Miller356a0b01999-11-08 15:30:59 +1100133%attr(0644,root,root) /usr/man/man1/ssh.1
134%attr(0644,root,root) /usr/man/man1/ssh-agent.1
135%attr(0644,root,root) /usr/man/man1/ssh-keygen.1
136%attr(0644,root,root) /usr/man/man1/ssh-add.1
137%attr(0644,root,root) /usr/man/man1/scp.1
Damien Millerb77870f1999-11-10 12:48:08 +1100138%attr(-,root,root) /usr/man/man1/slogin.1
Damien Miller3f51bf51999-11-09 14:46:02 +1100139%attr(0644,root,root) %config /etc/ssh/ssh_config
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000140
Damien Miller3f51bf51999-11-09 14:46:02 +1100141%files server
142%defattr(-,root,root)
143%attr(0755,root,root) /usr/sbin/sshd
144%attr(0644,root,root) /usr/man/man8/sshd.8
Damien Millera37010e1999-10-29 09:18:29 +1000145%attr(0600,root,root) %config /etc/ssh/sshd_config
146%attr(0600,root,root) %config /etc/pam.d/sshd
147%attr(0755,root,root) %config /etc/rc.d/init.d/sshd
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000148
Damien Miller3f51bf51999-11-09 14:46:02 +1100149%files askpass
150%defattr(-,root,root)
151%attr(0755,root,root) /usr/lib/ssh/ssh-askpass