blob: 30fef94b254b670ecb1d410ffd668469fed05930 [file] [log] [blame]
Damien Millerd4a8b7e1999-10-27 13:42:43 +10001Summary: OpenSSH free Secure Shell (SSH) implementation
2Name: openssh
Damien Miller38c60881999-11-13 13:09:31 +11003Version: 1.2pre12
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
Damien Millerc6d5ce81999-11-15 16:01:07 +110010Obsoletes: ssh
Damien Miller36682061999-11-15 17:19:24 +110011
12%package clients
13Summary: OpenSSH Secure Shell protocol clients
14Requires: openssh
15Group: System Environment/Daemons
Damien Millerc6d5ce81999-11-15 16:01:07 +110016Obsoletes: ssh-clients
Damien Millerd4a8b7e1999-10-27 13:42:43 +100017
Damien Miller3f51bf51999-11-09 14:46:02 +110018%package server
Damien Miller36682061999-11-15 17:19:24 +110019Summary: OpenSSH Secure Shell protocol server (sshd)
Damien Miller3f51bf51999-11-09 14:46:02 +110020Requires: openssh chkconfig >= 0.9
21Group: System Environment/Daemons
Damien Millerc6d5ce81999-11-15 16:01:07 +110022Obsoletes: ssh-server
Damien Miller3f51bf51999-11-09 14:46:02 +110023
24%package askpass
Damien Miller36682061999-11-15 17:19:24 +110025Summary: OpenSSH GNOME passphrase dialog
Damien Miller3f51bf51999-11-09 14:46:02 +110026Group: Applications/Internet
27Requires: openssh
Damien Miller36682061999-11-15 17:19:24 +110028Obsoletes: ssh-extras
Damien Millerc6d5ce81999-11-15 16:01:07 +110029Obsoletes: ssh-askpass
Damien Miller3f51bf51999-11-09 14:46:02 +110030
Damien Millerd4a8b7e1999-10-27 13:42:43 +100031%description
32Ssh (Secure Shell) a program for logging into a remote machine and for
33executing commands in a remote machine. It is intended to replace
34rlogin and rsh, and provide secure encrypted communications between
35two untrusted hosts over an insecure network. X11 connections and
36arbitrary TCP/IP ports can also be forwarded over the secure channel.
37
38OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
39up to date in terms of security and features, as well as removing all
40patented algorithms to seperate libraries (OpenSSL).
41
Damien Miller36682061999-11-15 17:19:24 +110042This package includes the core files necessary for both the OpenSSH
43client and server. To make this package useful, you should also
44install openssh-clients, openssh-server, or both.
45
46%description clients
47Ssh (Secure Shell) a program for logging into a remote machine and for
48executing commands in a remote machine. It is intended to replace
49rlogin and rsh, and provide secure encrypted communications between
50two untrusted hosts over an insecure network. X11 connections and
51arbitrary TCP/IP ports can also be forwarded over the secure channel.
52
53OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
54up to date in terms of security and features, as well as removing all
55patented algorithms to seperate libraries (OpenSSL).
56
Damien Miller3f51bf51999-11-09 14:46:02 +110057This package includes the clients necessary to make encrypted connections
58to SSH servers.
59
60%description server
61Ssh (Secure Shell) a program for logging into a remote machine and for
62executing commands in a remote machine. It is intended to replace
63rlogin and rsh, and provide secure encrypted communications between
64two untrusted hosts over an insecure network. X11 connections and
65arbitrary TCP/IP ports can also be forwarded over the secure channel.
66
67OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
68up to date in terms of security and features, as well as removing all
69patented algorithms to seperate libraries (OpenSSL).
70
Damien Miller36682061999-11-15 17:19:24 +110071This package contains the secure shell daemon. The sshd is the server
72part of the secure shell protocol and allows ssh clients to connect to
73your host.
Damien Miller3f51bf51999-11-09 14:46:02 +110074
75%description askpass
76Ssh (Secure Shell) a program for logging into a remote machine and for
77executing commands in a remote machine. It is intended to replace
78rlogin and rsh, and provide secure encrypted communications between
79two untrusted hosts over an insecure network. X11 connections and
80arbitrary TCP/IP ports can also be forwarded over the secure channel.
81
82OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
83up to date in terms of security and features, as well as removing all
84patented algorithms to seperate libraries (OpenSSL).
85
86This package contains the GNOME passphrase dialog.
87
Damien Millerd4a8b7e1999-10-27 13:42:43 +100088%changelog
Damien Miller36682061999-11-15 17:19:24 +110089* Mon Nov 15 1999 Damien Miller <djm@mindrot.org>
90- Split subpackages further based on patch from jim knoble <jmknoble@pobox.com>
Damien Miller38c60881999-11-13 13:09:31 +110091* Sat Nov 13 1999 Damien Miller <djm@mindrot.org>
Damien Millerc6d5ce81999-11-15 16:01:07 +110092- Added 'Obsoletes' directives
Damien Miller742d2cb1999-11-09 14:28:26 +110093* Tue Nov 09 1999 Damien Miller <djm@ibs.com.au>
94- Use make install
Damien Miller3f51bf51999-11-09 14:46:02 +110095- Subpackages
Damien Miller356a0b01999-11-08 15:30:59 +110096* Mon Nov 08 1999 Damien Miller <djm@ibs.com.au>
97- Added links for slogin
98- Fixed perms on manpages
Damien Miller2bbb9d01999-10-30 09:46:20 +100099* Sat Oct 30 1999 Damien Miller <djm@ibs.com.au>
100- Renamed init script
Damien Miller070f7a11999-10-29 10:29:29 +1000101* Fri Oct 29 1999 Damien Miller <djm@ibs.com.au>
102- Back to old binary names
Damien Miller06230761999-10-28 14:03:14 +1000103* Thu Oct 28 1999 Damien Miller <djm@ibs.com.au>
104- Use autoconf
105- New binary names
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000106* Wed Oct 27 1999 Damien Miller <djm@ibs.com.au>
107- Initial RPMification, based on Jan "Yenya" Kasprzak's <kas@fi.muni.cz> spec.
108
109%prep
110
Damien Millerab5e0d01999-11-11 12:55:45 +1100111%setup
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000112
113%build
114
Damien Miller742d2cb1999-11-09 14:28:26 +1100115CFLAGS="$RPM_OPT_FLAGS" \
Damien Miller973fb021999-11-09 14:48:48 +1100116 ./configure --prefix=/usr --sysconfdir=/etc/ssh --with-gnome-askpass
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000117
Damien Millercdb8b1d1999-11-09 14:31:49 +1100118make
119
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000120%install
121rm -rf $RPM_BUILD_ROOT
Damien Miller742d2cb1999-11-09 14:28:26 +1100122make install prefix="$RPM_BUILD_ROOT/usr"
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000123
Damien Miller2b72a4a1999-11-09 14:34:31 +1100124install -d $RPM_BUILD_ROOT/etc/ssh
125install -d $RPM_BUILD_ROOT/etc/pam.d/
126install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
Damien Millera37010e1999-10-29 09:18:29 +1000127install -m644 sshd.pam $RPM_BUILD_ROOT/etc/pam.d/sshd
Damien Miller2bbb9d01999-10-30 09:46:20 +1000128install -m755 sshd.init.redhat $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd
Damien Millera37010e1999-10-29 09:18:29 +1000129install -m600 ssh_config $RPM_BUILD_ROOT/etc/ssh/ssh_config
130install -m600 sshd_config $RPM_BUILD_ROOT/etc/ssh/sshd_config
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000131
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000132%clean
133rm -rf $RPM_BUILD_ROOT
134
Damien Miller3f51bf51999-11-09 14:46:02 +1100135%post server
Damien Millera37010e1999-10-29 09:18:29 +1000136/sbin/chkconfig --add sshd
137if [ ! -f /etc/ssh/ssh_host_key -o ! -s /etc/ssh/ssh_host_key ]; then
138 /usr/bin/ssh-keygen -b 1024 -f /etc/ssh/ssh_host_key -N '' >&2
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000139fi
Damien Millera37010e1999-10-29 09:18:29 +1000140if test -r /var/run/sshd.pid
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000141then
Damien Millera37010e1999-10-29 09:18:29 +1000142 /etc/rc.d/init.d/sshd restart >&2
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000143fi
144
Damien Miller3f51bf51999-11-09 14:46:02 +1100145%preun server
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000146if [ "$1" = 0 ]
147then
Damien Millera37010e1999-10-29 09:18:29 +1000148 /etc/rc.d/init.d/sshd stop >&2
149 /sbin/chkconfig --del sshd
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000150fi
151
152%files
153%defattr(-,root,root)
Damien Miller06230761999-10-28 14:03:14 +1000154%doc COPYING.Ylonen ChangeLog ChangeLog.Ylonen OVERVIEW
Damien Millere2db1e11999-10-30 14:50:37 +1000155%doc README README.Ylonen
Damien Miller36682061999-11-15 17:19:24 +1100156%attr(0755,root,root) /usr/bin/ssh-keygen
157%attr(0755,root,root) /usr/bin/scp
158%attr(0644,root,root) /usr/man/man1/ssh-keygen.1
159%attr(0644,root,root) /usr/man/man1/scp.1
160%attr(0755,root,root) %dir /etc/ssh
161
162%files clients
163%defattr(-,root,root)
Damien Millerb77870f1999-11-10 12:48:08 +1100164%attr(4755,root,root) /usr/bin/ssh
Damien Miller29d68521999-10-28 14:34:49 +1000165%attr(0755,root,root) /usr/bin/ssh-agent
Damien Miller29d68521999-10-28 14:34:49 +1000166%attr(0755,root,root) /usr/bin/ssh-add
Damien Miller356a0b01999-11-08 15:30:59 +1100167%attr(0644,root,root) /usr/man/man1/ssh.1
168%attr(0644,root,root) /usr/man/man1/ssh-agent.1
Damien Miller356a0b01999-11-08 15:30:59 +1100169%attr(0644,root,root) /usr/man/man1/ssh-add.1
Damien Miller3f51bf51999-11-09 14:46:02 +1100170%attr(0644,root,root) %config /etc/ssh/ssh_config
Damien Miller36682061999-11-15 17:19:24 +1100171%attr(-,root,root) /usr/bin/slogin
172%attr(-,root,root) /usr/man/man1/slogin.1
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000173
Damien Miller3f51bf51999-11-09 14:46:02 +1100174%files server
175%defattr(-,root,root)
176%attr(0755,root,root) /usr/sbin/sshd
177%attr(0644,root,root) /usr/man/man8/sshd.8
Damien Millera37010e1999-10-29 09:18:29 +1000178%attr(0600,root,root) %config /etc/ssh/sshd_config
179%attr(0600,root,root) %config /etc/pam.d/sshd
180%attr(0755,root,root) %config /etc/rc.d/init.d/sshd
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000181
Damien Miller3f51bf51999-11-09 14:46:02 +1100182%files askpass
183%defattr(-,root,root)
Damien Miller18ac1711999-11-19 12:43:19 +1100184%attr(0755,root,root) /usr/libexec/ssh/ssh-askpass
Damien Miller36682061999-11-15 17:19:24 +1100185%attr(0755,root,root) %dir /usr/lib/ssh
186