blob: ac9330947e516177a188e10c8e997334fcd60eab [file] [log] [blame]
Damien Miller36884401999-12-26 12:26:21 +11001# Version of OpenSSH
Damien Miller676092f2000-09-05 14:16:18 +11002%define oversion 2.2.0p2
Damien Miller36884401999-12-26 12:26:21 +11003
4# Version of ssh-askpass
Damien Miller96f0c722000-09-26 12:09:48 +11005%define aversion 1.0.2
Damien Miller36884401999-12-26 12:26:21 +11006
Damien Miller5a119bc2000-07-12 14:34:11 +10007# Do we want to disable building of x11-askpass? (1=yes 0=no)
8%define no_x11_askpass 0
9
10# Do we want to disable building of gnome-askpass? (1=yes 0=no)
11%define no_gnome_askpass 0
12
Damien Millerd4a8b7e1999-10-27 13:42:43 +100013Summary: OpenSSH free Secure Shell (SSH) implementation
14Name: openssh
Damien Miller36884401999-12-26 12:26:21 +110015Version: %{oversion}
Damien Millerd4a8b7e1999-10-27 13:42:43 +100016Release: 1
Damien Millerab8d1922000-08-08 16:53:28 +100017Packager: Damien Miller <djm@mindrot.org>
Damien Miller11402af2000-05-07 18:05:59 +100018URL: http://www.openssh.com/
Damien Millerab8d1922000-08-08 16:53:28 +100019Source0: ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-%{oversion}.tar.gz
Damien Miller50f14f82000-09-01 14:14:37 +110020Source1: http://www.ntrnet.net/~jmknoble/software/x11-ssh-askpass/x11-ssh-askpass-%{aversion}.tar.gz
Damien Millerd4a8b7e1999-10-27 13:42:43 +100021Copyright: BSD
22Group: Applications/Internet
23BuildRoot: /tmp/openssh-%{version}-buildroot
Damien Millerc6d5ce81999-11-15 16:01:07 +110024Obsoletes: ssh
Damien Miller1383bd82000-04-06 12:32:37 +100025PreReq: openssl >= 0.9.5a
26Requires: openssl >= 0.9.5a
Damien Millerc0d73901999-12-27 09:23:58 +110027BuildPreReq: perl
Damien Miller36884401999-12-26 12:26:21 +110028BuildPreReq: openssl-devel
Damien Milleraca55fe1999-12-07 16:31:18 +110029BuildPreReq: tcp_wrappers
Damien Millerab8d1922000-08-08 16:53:28 +100030%if ! %{no_gnome_askpass}
Damien Miller36884401999-12-26 12:26:21 +110031BuildPreReq: gnome-libs-devel
Damien Miller5a119bc2000-07-12 14:34:11 +100032%endif
Damien Miller36682061999-11-15 17:19:24 +110033
34%package clients
35Summary: OpenSSH Secure Shell protocol clients
36Requires: openssh
Damien Millerab8d1922000-08-08 16:53:28 +100037Group: Applications/Internet
Damien Millerc6d5ce81999-11-15 16:01:07 +110038Obsoletes: ssh-clients
Damien Millerd4a8b7e1999-10-27 13:42:43 +100039
Damien Miller3f51bf51999-11-09 14:46:02 +110040%package server
Damien Miller36682061999-11-15 17:19:24 +110041Summary: OpenSSH Secure Shell protocol server (sshd)
Damien Miller3f51bf51999-11-09 14:46:02 +110042Group: System Environment/Daemons
Damien Millerc6d5ce81999-11-15 16:01:07 +110043Obsoletes: ssh-server
Damien Milleraae10931999-12-26 19:38:17 +110044PreReq: openssh chkconfig >= 0.9
Damien Millerb27ef9e2000-09-30 14:29:44 +110045Requires: initscripts >= 4.16
Damien Miller3f51bf51999-11-09 14:46:02 +110046
47%package askpass
Damien Miller36884401999-12-26 12:26:21 +110048Summary: OpenSSH X11 passphrase dialog
49Group: Applications/Internet
50Requires: openssh
51Obsoletes: ssh-extras
Damien Miller36884401999-12-26 12:26:21 +110052
Damien Miller36884401999-12-26 12:26:21 +110053%package askpass-gnome
Damien Miller36682061999-11-15 17:19:24 +110054Summary: OpenSSH GNOME passphrase dialog
Damien Miller3f51bf51999-11-09 14:46:02 +110055Group: Applications/Internet
56Requires: openssh
Damien Miller36682061999-11-15 17:19:24 +110057Obsoletes: ssh-extras
Damien Miller3f51bf51999-11-09 14:46:02 +110058
Damien Millerd4a8b7e1999-10-27 13:42:43 +100059%description
60Ssh (Secure Shell) a program for logging into a remote machine and for
61executing commands in a remote machine. It is intended to replace
62rlogin and rsh, and provide secure encrypted communications between
63two untrusted hosts over an insecure network. X11 connections and
64arbitrary TCP/IP ports can also be forwarded over the secure channel.
65
66OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
67up to date in terms of security and features, as well as removing all
68patented algorithms to seperate libraries (OpenSSL).
69
Damien Miller36682061999-11-15 17:19:24 +110070This package includes the core files necessary for both the OpenSSH
71client and server. To make this package useful, you should also
72install openssh-clients, openssh-server, or both.
73
74%description clients
75Ssh (Secure Shell) a program for logging into a remote machine and for
76executing commands in a remote machine. It is intended to replace
77rlogin and rsh, and provide secure encrypted communications between
78two untrusted hosts over an insecure network. X11 connections and
79arbitrary TCP/IP ports can also be forwarded over the secure channel.
80
81OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
82up to date in terms of security and features, as well as removing all
83patented algorithms to seperate libraries (OpenSSL).
84
Damien Miller3f51bf51999-11-09 14:46:02 +110085This package includes the clients necessary to make encrypted connections
86to SSH servers.
87
88%description server
89Ssh (Secure Shell) a program for logging into a remote machine and for
90executing commands in a remote machine. It is intended to replace
91rlogin and rsh, and provide secure encrypted communications between
92two untrusted hosts over an insecure network. X11 connections and
93arbitrary TCP/IP ports can also be forwarded over the secure channel.
94
95OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
96up to date in terms of security and features, as well as removing all
97patented algorithms to seperate libraries (OpenSSL).
98
Damien Miller36682061999-11-15 17:19:24 +110099This package contains the secure shell daemon. The sshd is the server
100part of the secure shell protocol and allows ssh clients to connect to
101your host.
Damien Miller3f51bf51999-11-09 14:46:02 +1100102
Damien Miller36884401999-12-26 12:26:21 +1100103%description askpass
104Ssh (Secure Shell) a program for logging into a remote machine and for
105executing commands in a remote machine. It is intended to replace
106rlogin and rsh, and provide secure encrypted communications between
107two untrusted hosts over an insecure network. X11 connections and
108arbitrary TCP/IP ports can also be forwarded over the secure channel.
109
110OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
111up to date in terms of security and features, as well as removing all
112patented algorithms to seperate libraries (OpenSSL).
113
114This package contains Jim Knoble's <jmknoble@pobox.com> X11 passphrase
115dialog.
Damien Miller36884401999-12-26 12:26:21 +1100116
Damien Millerf6adfa91999-12-26 13:08:15 +1100117%description askpass-gnome
Damien Miller3f51bf51999-11-09 14:46:02 +1100118Ssh (Secure Shell) a program for logging into a remote machine and for
119executing commands in a remote machine. It is intended to replace
120rlogin and rsh, and provide secure encrypted communications between
121two untrusted hosts over an insecure network. X11 connections and
122arbitrary TCP/IP ports can also be forwarded over the secure channel.
123
124OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
125up to date in terms of security and features, as well as removing all
126patented algorithms to seperate libraries (OpenSSL).
127
128This package contains the GNOME passphrase dialog.
129
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000130%changelog
Damien Miller676092f2000-09-05 14:16:18 +1100131* Tue Sep 05 2000 Damien Miller <djm@mindrot.org>
132- Use RPM configure macro
Damien Millerab8d1922000-08-08 16:53:28 +1000133* Tue Aug 08 2000 Damien Miller <djm@mindrot.org>
134- Some surgery to sshd.init (generate keys at runtime)
135- Cleanup of groups and removal of keygen calls
Damien Miller5a119bc2000-07-12 14:34:11 +1000136* Wed Jul 12 2000 Damien Miller <djm@mindrot.org>
137- Make building of X11-askpass and gnome-askpass optional
Damien Millere69f18c2000-06-12 16:38:54 +1000138* Mon Jun 12 2000 Damien Miller <djm@mindrot.org>
139- Glob manpages to catch compressed files
Damien Millerddaffa42000-03-15 12:31:18 +1100140* Wed Mar 15 2000 Damien Miller <djm@ibs.com.au>
141- Updated for new location
142- Updated for new gnome-ssh-askpass build
Damien Miller36884401999-12-26 12:26:21 +1100143* Sun Dec 26 1999 Damien Miller <djm@mindrot.org>
144- Added Jim Knoble's <jmknoble@pobox.com> askpass
Damien Miller36682061999-11-15 17:19:24 +1100145* Mon Nov 15 1999 Damien Miller <djm@mindrot.org>
146- Split subpackages further based on patch from jim knoble <jmknoble@pobox.com>
Damien Miller38c60881999-11-13 13:09:31 +1100147* Sat Nov 13 1999 Damien Miller <djm@mindrot.org>
Damien Millerc6d5ce81999-11-15 16:01:07 +1100148- Added 'Obsoletes' directives
Damien Miller742d2cb1999-11-09 14:28:26 +1100149* Tue Nov 09 1999 Damien Miller <djm@ibs.com.au>
150- Use make install
Damien Miller3f51bf51999-11-09 14:46:02 +1100151- Subpackages
Damien Miller356a0b01999-11-08 15:30:59 +1100152* Mon Nov 08 1999 Damien Miller <djm@ibs.com.au>
153- Added links for slogin
154- Fixed perms on manpages
Damien Miller2bbb9d01999-10-30 09:46:20 +1000155* Sat Oct 30 1999 Damien Miller <djm@ibs.com.au>
156- Renamed init script
Damien Miller070f7a11999-10-29 10:29:29 +1000157* Fri Oct 29 1999 Damien Miller <djm@ibs.com.au>
158- Back to old binary names
Damien Miller06230761999-10-28 14:03:14 +1000159* Thu Oct 28 1999 Damien Miller <djm@ibs.com.au>
160- Use autoconf
161- New binary names
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000162* Wed Oct 27 1999 Damien Miller <djm@ibs.com.au>
163- Initial RPMification, based on Jan "Yenya" Kasprzak's <kas@fi.muni.cz> spec.
164
165%prep
166
Damien Miller676092f2000-09-05 14:16:18 +1100167%setup -q -a 1
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000168
169%build
170
Damien Miller606f8802000-09-16 15:39:56 +1100171%configure --sysconfdir=/etc/ssh --libexecdir=/usr/libexec/openssh \
172 --with-tcp-wrappers --with-rsh=/usr/bin/rsh
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000173
Damien Millercdb8b1d1999-11-09 14:31:49 +1100174make
175
Damien Miller5a119bc2000-07-12 14:34:11 +1000176%if ! %{no_x11_askpass}
Damien Miller36884401999-12-26 12:26:21 +1100177cd x11-ssh-askpass-%{aversion}
178xmkmf -a
179make
180cd ..
Damien Miller5a119bc2000-07-12 14:34:11 +1000181%endif
Damien Miller36884401999-12-26 12:26:21 +1100182
Damien Miller5a119bc2000-07-12 14:34:11 +1000183%if ! %{no_gnome_askpass}
Damien Millerddaffa42000-03-15 12:31:18 +1100184cd contrib
Damien Millerbb68c162000-03-15 12:38:13 +1100185gcc -O -g `gnome-config --cflags gnome gnomeui` \
Damien Millerddaffa42000-03-15 12:31:18 +1100186 gnome-ssh-askpass.c -o gnome-ssh-askpass \
187 `gnome-config --libs gnome gnomeui`
188cd ..
Damien Miller5a119bc2000-07-12 14:34:11 +1000189%endif
Damien Millerddaffa42000-03-15 12:31:18 +1100190
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000191%install
192rm -rf $RPM_BUILD_ROOT
Damien Miller7d7c60d2000-01-26 14:37:48 +1100193make install DESTDIR=$RPM_BUILD_ROOT/
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000194
Damien Miller2b72a4a1999-11-09 14:34:31 +1100195install -d $RPM_BUILD_ROOT/etc/pam.d/
196install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
Damien Miller606f8802000-09-16 15:39:56 +1100197install -d $RPM_BUILD_ROOT/usr/libexec/openssh
Damien Millerddaffa42000-03-15 12:31:18 +1100198install -m644 contrib/redhat/sshd.pam $RPM_BUILD_ROOT/etc/pam.d/sshd
199install -m755 contrib/redhat/sshd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000200
Damien Miller5a119bc2000-07-12 14:34:11 +1000201%if ! %{no_x11_askpass}
Damien Miller606f8802000-09-16 15:39:56 +1100202install -s x11-ssh-askpass-%{aversion}/x11-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/openssh/x11-ssh-askpass
203ln -s /usr/libexec/openssh/x11-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/openssh/ssh-askpass
Damien Miller5a119bc2000-07-12 14:34:11 +1000204%endif
Damien Miller36884401999-12-26 12:26:21 +1100205
Damien Miller5a119bc2000-07-12 14:34:11 +1000206%if ! %{no_gnome_askpass}
Damien Miller606f8802000-09-16 15:39:56 +1100207install -s contrib/gnome-ssh-askpass $RPM_BUILD_ROOT/usr/libexec/openssh/gnome-ssh-askpass
Damien Miller5a119bc2000-07-12 14:34:11 +1000208%endif
Damien Millerddaffa42000-03-15 12:31:18 +1100209
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000210%clean
211rm -rf $RPM_BUILD_ROOT
212
Damien Miller3f51bf51999-11-09 14:46:02 +1100213%post server
Damien Millera37010e1999-10-29 09:18:29 +1000214/sbin/chkconfig --add sshd
Damien Millerab8d1922000-08-08 16:53:28 +1000215if test -r /var/run/sshd.pid ; then
Damien Millera37010e1999-10-29 09:18:29 +1000216 /etc/rc.d/init.d/sshd restart >&2
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000217fi
218
Damien Miller3f51bf51999-11-09 14:46:02 +1100219%preun server
Damien Millerab8d1922000-08-08 16:53:28 +1000220if [ "$1" = 0 ] ; then
Damien Millera37010e1999-10-29 09:18:29 +1000221 /etc/rc.d/init.d/sshd stop >&2
222 /sbin/chkconfig --del sshd
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000223fi
224
225%files
226%defattr(-,root,root)
Damien Miller71795162000-04-16 12:57:38 +1000227%doc ChangeLog OVERVIEW COPYING.Ylonen README* INSTALL
Damien Millerc0d73901999-12-27 09:23:58 +1100228%doc CREDITS UPGRADING
Damien Miller36682061999-11-15 17:19:24 +1100229%attr(0755,root,root) /usr/bin/ssh-keygen
230%attr(0755,root,root) /usr/bin/scp
Damien Miller96002332000-09-23 14:00:09 +1100231%attr(0644,root,root) %{_mandir}/man1/ssh-keygen.1*
232%attr(0644,root,root) %{_mandir}/man1/scp.1*
Damien Miller36682061999-11-15 17:19:24 +1100233%attr(0755,root,root) %dir /etc/ssh
Damien Miller606f8802000-09-16 15:39:56 +1100234%attr(0755,root,root) %dir /usr/libexec/openssh
Damien Miller36682061999-11-15 17:19:24 +1100235
236%files clients
237%defattr(-,root,root)
Damien Millerb77870f1999-11-10 12:48:08 +1100238%attr(4755,root,root) /usr/bin/ssh
Damien Miller29d68521999-10-28 14:34:49 +1000239%attr(0755,root,root) /usr/bin/ssh-agent
Damien Miller29d68521999-10-28 14:34:49 +1000240%attr(0755,root,root) /usr/bin/ssh-add
Damien Miller96002332000-09-23 14:00:09 +1100241%attr(0644,root,root) %{_mandir}/man1/ssh.1*
242%attr(0644,root,root) %{_mandir}/man1/ssh-agent.1*
243%attr(0644,root,root) %{_mandir}/man1/ssh-add.1*
Damien Miller294df781999-11-23 10:11:29 +1100244%attr(0644,root,root) %config(noreplace) /etc/ssh/ssh_config
Damien Miller36682061999-11-15 17:19:24 +1100245%attr(-,root,root) /usr/bin/slogin
Damien Miller96002332000-09-23 14:00:09 +1100246%attr(-,root,root) %{_mandir}/man1/slogin.1*
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000247
Damien Miller3f51bf51999-11-09 14:46:02 +1100248%files server
249%defattr(-,root,root)
250%attr(0755,root,root) /usr/sbin/sshd
Damien Miller96002332000-09-23 14:00:09 +1100251%attr(0755,root,root) /usr/libexec/openssh/sftp-server
252%attr(0644,root,root) %{_mandir}/man8/sshd.8*
253%attr(0644,root,root) %{_mandir}/man8/sftp-server.8*
Damien Miller294df781999-11-23 10:11:29 +1100254%attr(0600,root,root) %config(noreplace) /etc/ssh/sshd_config
255%attr(0600,root,root) %config(noreplace) /etc/pam.d/sshd
Damien Millera37010e1999-10-29 09:18:29 +1000256%attr(0755,root,root) %config /etc/rc.d/init.d/sshd
Damien Millerd4a8b7e1999-10-27 13:42:43 +1000257
Damien Miller5a119bc2000-07-12 14:34:11 +1000258%if ! %{no_x11_askpass}
Damien Miller3f51bf51999-11-09 14:46:02 +1100259%files askpass
260%defattr(-,root,root)
Damien Millerbbdf9ab1999-12-26 13:16:54 +1100261%doc x11-ssh-askpass-%{aversion}/README
262%doc x11-ssh-askpass-%{aversion}/ChangeLog
263%doc x11-ssh-askpass-%{aversion}/SshAskpass*.ad
Damien Miller606f8802000-09-16 15:39:56 +1100264%attr(0755,root,root) /usr/libexec/openssh/ssh-askpass
265%attr(0755,root,root) /usr/libexec/openssh/x11-ssh-askpass
Damien Miller5a119bc2000-07-12 14:34:11 +1000266%endif
Damien Miller36682061999-11-15 17:19:24 +1100267
Damien Miller5a119bc2000-07-12 14:34:11 +1000268%if ! %{no_gnome_askpass}
Damien Miller36884401999-12-26 12:26:21 +1100269%files askpass-gnome
270%defattr(-,root,root)
Damien Miller606f8802000-09-16 15:39:56 +1100271%attr(0755,root,root) /usr/libexec/openssh/gnome-ssh-askpass
Damien Miller5a119bc2000-07-12 14:34:11 +1000272%endif