xref: /freebsd/crypto/openssh/contrib/redhat/openssh.spec (revision 24e4dcf4ba5e9dedcf89efd358ea3e1fe5867020)
1%global ver 10.0p1
2%global rel 1%{?dist}
3
4# OpenSSH privilege separation requires a user & group ID
5%global sshd_uid    74
6%global sshd_gid    74
7
8# Version of ssh-askpass
9%global aversion 1.2.4.1
10
11# Do we want to disable building of x11-askpass? (1=yes 0=no)
12%global no_x11_askpass 0
13
14# Do we want to disable building of gnome-askpass? (1=yes 0=no)
15%global no_gnome_askpass 0
16
17# Do we want to link against a static libcrypto? (1=yes 0=no)
18%global static_libcrypto 0
19
20# Do we want smartcard support (1=yes 0=no)
21%global scard 0
22
23# Use GTK2 instead of GNOME in gnome-ssh-askpass
24%global gtk2 1
25
26%global without_openssl 0
27# build without openssl where 1.1.1 is not available
28%if %{defined fedora} && 0%{?fedora} <= 28
29%global without_openssl 1
30%endif
31%if %{defined rhel} && 0%{?rhel} <= 7
32%global without_openssl 1
33%endif
34
35# Do we want kerberos5 support (1=yes 0=no)
36%global kerberos5 1
37
38# Reserve options to override askpass settings with:
39# rpm -ba|--rebuild --define 'skip_xxx 1'
40%{?skip_x11_askpass:%global no_x11_askpass 1}
41%{?skip_gnome_askpass:%global no_gnome_askpass 1}
42
43# Add option to build without GTK2 for older platforms with only GTK+.
44# RedHat <= 7.2 and Red Hat Advanced Server 2.1 are examples.
45# rpm -ba|--rebuild --define 'no_gtk2 1'
46%{?no_gtk2:%global gtk2 0}
47
48# Options for static OpenSSL link:
49# rpm -ba|--rebuild --define "static_openssl 1"
50%{?static_openssl:%global static_libcrypto 1}
51
52# Options for Smartcard support: (needs libsectok and openssl-engine)
53# rpm -ba|--rebuild --define "smartcard 1"
54%{?smartcard:%global scard 1}
55
56# Is this a build for the rescue CD (without PAM)? (1=yes 0=no)
57%global rescue 0
58%{?build_rescue:%global rescue 1}
59
60# Turn off some stuff for resuce builds
61%if %{rescue}
62%global kerberos5 0
63%endif
64
65Summary: The OpenSSH implementation of SSH protocol version 2.
66Name: openssh
67Version: %{ver}
68%if %{rescue}
69Release: %{rel}rescue
70%else
71Release: %{rel}
72%endif
73URL: https://www.openssh.com/portable.html
74Source0: https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-%{version}.tar.gz
75Source1: http://www.jmknoble.net/software/x11-ssh-askpass/x11-ssh-askpass-%{aversion}.tar.gz
76License: BSD
77Group: Applications/Internet
78BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
79Obsoletes: ssh
80Requires: initscripts >= 5.20
81BuildRequires: perl
82%if ! %{without_openssl}
83BuildRequires: openssl-devel >= 1.1.1
84%endif
85BuildRequires: /bin/login
86BuildRequires: glibc-devel, pam
87%if ! %{no_x11_askpass}
88BuildRequires: /usr/include/X11/Xlib.h
89# Xt development tools
90BuildRequires: libXt-devel
91# Provides xmkmf
92BuildRequires: imake
93# Rely on relatively recent gtk
94BuildRequires: gtk2-devel
95%endif
96%if ! %{no_gnome_askpass}
97BuildRequires: pkgconfig
98%endif
99%if %{kerberos5}
100BuildRequires: krb5-devel
101BuildRequires: krb5-libs
102%endif
103
104%package clients
105Summary: OpenSSH clients.
106Requires: openssh = %{version}-%{release}
107Group: Applications/Internet
108Obsoletes: ssh-clients
109
110%package server
111Summary: The OpenSSH server daemon.
112Group: System Environment/Daemons
113Obsoletes: ssh-server
114Requires: openssh = %{version}-%{release}, chkconfig >= 0.9
115Requires: /etc/pam.d/system-auth
116
117%package askpass
118Summary: A passphrase dialog for OpenSSH and X.
119Group: Applications/Internet
120Requires: openssh = %{version}-%{release}
121Obsoletes: ssh-extras
122
123%package askpass-gnome
124Summary: A passphrase dialog for OpenSSH, X, and GNOME.
125Group: Applications/Internet
126Requires: openssh = %{version}-%{release}
127Obsoletes: ssh-extras
128
129%description
130SSH (Secure SHell) is a program for logging into and executing
131commands on a remote machine. SSH is intended to replace rlogin and
132rsh, and to provide secure encrypted communications between two
133untrusted hosts over an insecure network. X11 connections and
134arbitrary TCP/IP ports can also be forwarded over the secure channel.
135
136OpenSSH is OpenBSD's version of the last free version of SSH, bringing
137it up to date in terms of security and features, as well as removing
138all patented algorithms to separate libraries.
139
140This package includes the core files necessary for both the OpenSSH
141client and server. To make this package useful, you should also
142install openssh-clients, openssh-server, or both.
143
144%description clients
145OpenSSH is a free version of SSH (Secure SHell), a program for logging
146into and executing commands on a remote machine. This package includes
147the clients necessary to make encrypted connections to SSH servers.
148You'll also need to install the openssh package on OpenSSH clients.
149
150%description server
151OpenSSH is a free version of SSH (Secure SHell), a program for logging
152into and executing commands on a remote machine. This package contains
153the secure shell daemon (sshd). The sshd daemon allows SSH clients to
154securely connect to your SSH server. You also need to have the openssh
155package installed.
156
157%description askpass
158OpenSSH is a free version of SSH (Secure SHell), a program for logging
159into and executing commands on a remote machine. This package contains
160an X11 passphrase dialog for OpenSSH.
161
162%description askpass-gnome
163OpenSSH is a free version of SSH (Secure SHell), a program for logging
164into and executing commands on a remote machine. This package contains
165an X11 passphrase dialog for OpenSSH and the GNOME GUI desktop
166environment.
167
168%prep
169
170%if ! %{no_x11_askpass}
171%setup -q -a 1
172%else
173%setup -q
174%endif
175
176%build
177%if %{rescue}
178CFLAGS="$RPM_OPT_FLAGS -Os"; export CFLAGS
179%endif
180
181%configure \
182	--sysconfdir=%{_sysconfdir}/ssh \
183	--libexecdir=%{_libexecdir}/openssh \
184	--datadir=%{_datadir}/openssh \
185	--with-default-path=/usr/local/bin:/bin:/usr/bin \
186	--with-superuser-path=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin \
187	--with-privsep-path=%{_var}/empty/sshd \
188	--mandir=%{_mandir} \
189	--with-mantype=man \
190	--disable-strip \
191%if %{without_openssl}
192	--without-openssl \
193%endif
194%if %{scard}
195	--with-smartcard \
196%endif
197%if %{rescue}
198	--without-pam \
199%else
200	--with-pam \
201%endif
202%if %{kerberos5}
203	 --with-kerberos5=$K5DIR \
204%endif
205
206
207%if %{static_libcrypto}
208perl -pi -e "s|-lcrypto|%{_libdir}/libcrypto.a|g" Makefile
209%endif
210
211make
212
213%if ! %{no_x11_askpass}
214pushd x11-ssh-askpass-%{aversion}
215%configure --libexecdir=%{_libexecdir}/openssh
216xmkmf -a
217make
218popd
219%endif
220
221# Define a variable to toggle gnome1/gtk2 building.  This is necessary
222# because RPM doesn't handle nested %if statements.
223%if %{gtk2}
224	gtk2=yes
225%else
226	gtk2=no
227%endif
228
229%if ! %{no_gnome_askpass}
230pushd contrib
231if [ $gtk2 = yes ] ; then
232	make gnome-ssh-askpass2
233	mv gnome-ssh-askpass2 gnome-ssh-askpass
234else
235	make gnome-ssh-askpass1
236	mv gnome-ssh-askpass1 gnome-ssh-askpass
237fi
238popd
239%endif
240
241%install
242rm -rf $RPM_BUILD_ROOT
243mkdir -p -m755 $RPM_BUILD_ROOT%{_sysconfdir}/ssh
244mkdir -p -m755 $RPM_BUILD_ROOT%{_libexecdir}/openssh
245mkdir -p -m755 $RPM_BUILD_ROOT%{_var}/empty/sshd
246
247make install DESTDIR=$RPM_BUILD_ROOT
248
249install -d $RPM_BUILD_ROOT/etc/pam.d/
250install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
251install -d $RPM_BUILD_ROOT%{_libexecdir}/openssh
252install -m644 contrib/redhat/sshd.pam  $RPM_BUILD_ROOT/etc/pam.d/sshd
253install -m755 contrib/redhat/sshd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd
254
255%if ! %{no_x11_askpass}
256install x11-ssh-askpass-%{aversion}/x11-ssh-askpass $RPM_BUILD_ROOT%{_libexecdir}/openssh/x11-ssh-askpass
257ln -s x11-ssh-askpass $RPM_BUILD_ROOT%{_libexecdir}/openssh/ssh-askpass
258%endif
259
260%if ! %{no_gnome_askpass}
261install contrib/gnome-ssh-askpass $RPM_BUILD_ROOT%{_libexecdir}/openssh/gnome-ssh-askpass
262%endif
263
264%if ! %{scard}
265	 rm -f $RPM_BUILD_ROOT/usr/share/openssh/Ssh.bin
266%endif
267
268%if ! %{no_gnome_askpass}
269install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/
270install -m 755 contrib/redhat/gnome-ssh-askpass.csh $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/
271install -m 755 contrib/redhat/gnome-ssh-askpass.sh $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/
272%endif
273
274perl -pi -e "s|$RPM_BUILD_ROOT||g" $RPM_BUILD_ROOT%{_mandir}/man*/*
275
276%clean
277rm -rf $RPM_BUILD_ROOT
278
279%triggerun server -- ssh-server
280if [ "$1" != 0 -a -r /var/run/sshd.pid ] ; then
281	touch /var/run/sshd.restart
282fi
283
284%triggerun server -- openssh-server < 2.5.0p1
285# Count the number of HostKey and HostDsaKey statements we have.
286gawk	'BEGIN {IGNORECASE=1}
287	 /^hostkey/ || /^hostdsakey/ {sawhostkey = sawhostkey + 1}
288	 END {exit sawhostkey}' /etc/ssh/sshd_config
289# And if we only found one, we know the client was relying on the old default
290# behavior, which loaded the the SSH2 DSA host key when HostDsaKey wasn't
291# specified.  Now that HostKey is used for both SSH1 and SSH2 keys, specifying
292# one nullifies the default, which would have loaded both.
293if [ $? -eq 1 ] ; then
294	echo HostKey /etc/ssh/ssh_host_rsa_key >> /etc/ssh/sshd_config
295	echo HostKey /etc/ssh/ssh_host_dsa_key >> /etc/ssh/sshd_config
296fi
297
298%triggerpostun server -- ssh-server
299if [ "$1" != 0 ] ; then
300	/sbin/chkconfig --add sshd
301	if test -f /var/run/sshd.restart ; then
302		rm -f /var/run/sshd.restart
303		/sbin/service sshd start > /dev/null 2>&1 || :
304	fi
305fi
306
307%pre server
308%{_sbindir}/groupadd -r -g %{sshd_gid} sshd 2>/dev/null || :
309%{_sbindir}/useradd -d /var/empty/sshd -s /bin/false -u %{sshd_uid} \
310	-g sshd -M -r sshd 2>/dev/null || :
311
312%post server
313/sbin/chkconfig --add sshd
314
315%postun server
316/sbin/service sshd condrestart > /dev/null 2>&1 || :
317
318%preun server
319if [ "$1" = 0 ]
320then
321	/sbin/service sshd stop > /dev/null 2>&1 || :
322	/sbin/chkconfig --del sshd
323fi
324
325%files
326%defattr(-,root,root)
327%doc CREDITS ChangeLog INSTALL LICENCE OVERVIEW README* PROTOCOL* TODO
328%attr(0755,root,root) %{_bindir}/scp
329%attr(0644,root,root) %{_mandir}/man1/scp.1*
330%attr(0755,root,root) %dir %{_sysconfdir}/ssh
331%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/ssh/moduli
332%if ! %{rescue}
333%attr(0755,root,root) %{_bindir}/ssh-keygen
334%attr(0644,root,root) %{_mandir}/man1/ssh-keygen.1*
335%attr(0755,root,root) %dir %{_libexecdir}/openssh
336%attr(4711,root,root) %{_libexecdir}/openssh/ssh-keysign
337%attr(0755,root,root) %{_libexecdir}/openssh/ssh-pkcs11-helper
338%attr(0755,root,root) %{_libexecdir}/openssh/ssh-sk-helper
339%attr(0644,root,root) %{_mandir}/man8/ssh-keysign.8*
340%attr(0644,root,root) %{_mandir}/man8/ssh-pkcs11-helper.8*
341%attr(0644,root,root) %{_mandir}/man8/ssh-sk-helper.8*
342%endif
343%if %{scard}
344%attr(0755,root,root) %dir %{_datadir}/openssh
345%attr(0644,root,root) %{_datadir}/openssh/Ssh.bin
346%endif
347
348%files clients
349%defattr(-,root,root)
350%attr(0755,root,root) %{_bindir}/ssh
351%attr(0644,root,root) %{_mandir}/man1/ssh.1*
352%attr(0644,root,root) %{_mandir}/man5/ssh_config.5*
353%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/ssh/ssh_config
354%if ! %{rescue}
355%attr(2755,root,nobody) %{_bindir}/ssh-agent
356%attr(0755,root,root) %{_bindir}/ssh-add
357%attr(0755,root,root) %{_bindir}/ssh-keyscan
358%attr(0755,root,root) %{_bindir}/sftp
359%attr(0644,root,root) %{_mandir}/man1/ssh-agent.1*
360%attr(0644,root,root) %{_mandir}/man1/ssh-add.1*
361%attr(0644,root,root) %{_mandir}/man1/ssh-keyscan.1*
362%attr(0644,root,root) %{_mandir}/man1/sftp.1*
363%endif
364
365%if ! %{rescue}
366%files server
367%defattr(-,root,root)
368%dir %attr(0111,root,root) %{_var}/empty/sshd
369%attr(0755,root,root) %{_sbindir}/sshd
370%attr(0755,root,root) %{_libexecdir}/openssh/sshd-session
371%attr(0755,root,root) %{_libexecdir}/openssh/sftp-server
372%attr(0644,root,root) %{_mandir}/man8/sshd.8*
373%attr(0644,root,root) %{_mandir}/man5/moduli.5*
374%attr(0644,root,root) %{_mandir}/man5/sshd_config.5*
375%attr(0644,root,root) %{_mandir}/man8/sftp-server.8*
376%attr(0755,root,root) %dir %{_sysconfdir}/ssh
377%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/ssh/sshd_config
378%attr(0600,root,root) %config(noreplace) /etc/pam.d/sshd
379%attr(0755,root,root) %config /etc/rc.d/init.d/sshd
380%endif
381
382%if ! %{no_x11_askpass}
383%files askpass
384%defattr(-,root,root)
385%doc x11-ssh-askpass-%{aversion}/README
386%doc x11-ssh-askpass-%{aversion}/ChangeLog
387%doc x11-ssh-askpass-%{aversion}/SshAskpass*.ad
388%{_libexecdir}/openssh/ssh-askpass
389%attr(0755,root,root) %{_libexecdir}/openssh/x11-ssh-askpass
390%endif
391
392%if ! %{no_gnome_askpass}
393%files askpass-gnome
394%defattr(-,root,root)
395%attr(0755,root,root) %config %{_sysconfdir}/profile.d/gnome-ssh-askpass.*
396%attr(0755,root,root) %{_libexecdir}/openssh/gnome-ssh-askpass
397%endif
398
399%changelog
400* Mon Oct 16 2023 Fabio Pedretti <pedretti.fabio@gmail.com>
401- Remove reference of dropped sshd.pam.old file
402- Update openssl-devel dependency to require >= 1.1.1
403- Build with --without-openssl elsewhere
404- Remove ancient build6x config, intended for RHL 6.x
405  (the distro predating Fedora, not RHEL)
406
407* Thu Oct 28 2021 Damien Miller <djm@mindrot.org>
408- Remove remaining traces of --with-md5-passwords
409
410* Mon Jul 20 2020 Damien Miller <djm@mindrot.org>
411- Add ssh-sk-helper and corresponding manual page.
412
413* Sat Feb 10 2018 Darren Tucker <dtucker@dtucker.net>
414- Update openssl-devel dependency to match current requirements.
415- Handle Fedora >=6 openssl 1.0 compat libs.
416- Remove SSH1 from description.
417- Don't strip binaries at build time so that debuginfo package can be
418  created.
419
420* Sun Nov 16 2014 Nico Kadel-Garcia <nakdel@gmail.com>
421- Add '--mandir' and '--with-mantype' for RHEL 5 compatibility
422- Add 'dist' option to 'ver' so package names reflect OS at build time
423- Always include x11-ssh-askpass tarball in SRPM
424- Add openssh-x11-aspass BuildRequires for libXT-devel, imake, gtk2-devel
425- Discard 'K5DIR' reporting, not usable inside 'mock' for RHEL 5 compatibility
426- Discard obsolete '--with-rsh' configure option
427- Update openssl-devel dependency to 0.9.8f, as found in autoconf
428
429* Wed Jul 14 2010 Tim Rice <tim@multitalents.net>
430- test for skip_x11_askpass (line 77) should have been for no_x11_askpass
431
432* Mon Jun 2 2003 Damien Miller <djm@mindrot.org>
433- Remove noip6 option. This may be controlled at run-time in client config
434  file using new AddressFamily directive
435
436* Mon May 12 2003 Damien Miller <djm@mindrot.org>
437- Don't install profile.d scripts when not building with GNOME/GTK askpass
438  (patch from bet@rahul.net)
439
440* Tue Oct 01 2002 Damien Miller <djm@mindrot.org>
441- Install ssh-agent setgid nobody to prevent ptrace() key theft attacks
442
443* Mon Sep 30 2002 Damien Miller <djm@mindrot.org>
444- Use contrib/ Makefile for building askpass programs
445
446* Fri Jun 21 2002 Damien Miller <djm@mindrot.org>
447- Merge in spec changes from seba@iq.pl (Sebastian Pachuta)
448- Add new {ssh,sshd}_config.5 manpages
449- Add new ssh-keysign program and remove setuid from ssh client
450
451* Fri May 10 2002 Damien Miller <djm@mindrot.org>
452- Merge in spec changes from RedHat, reorgansie a little
453- Add Privsep user, group and directory
454
455* Thu Mar  7 2002 Nalin Dahyabhai <nalin@redhat.com> 3.1p1-2
456- bump and grind (through the build system)
457
458* Thu Mar  7 2002 Nalin Dahyabhai <nalin@redhat.com> 3.1p1-1
459- require sharutils for building (mindrot #137)
460- require db1-devel only when building for 6.x (#55105), which probably won't
461  work anyway (3.1 requires OpenSSL 0.9.6 to build), but what the heck
462- require pam-devel by file (not by package name) again
463- add Markus's patch to compile with OpenSSL 0.9.5a (from
464  http://bugzilla.mindrot.org/show_bug.cgi?id=141) and apply it if we're
465  building for 6.x
466
467* Thu Mar  7 2002 Nalin Dahyabhai <nalin@redhat.com> 3.1p1-0
468- update to 3.1p1
469
470* Tue Mar  5 2002 Nalin Dahyabhai <nalin@redhat.com> SNAP-20020305
471- update to SNAP-20020305
472- drop debug patch, fixed upstream
473
474* Wed Feb 20 2002 Nalin Dahyabhai <nalin@redhat.com> SNAP-20020220
475- update to SNAP-20020220 for testing purposes (you've been warned, if there's
476  anything to be warned about, gss patches won't apply, I don't mind)
477
478* Wed Feb 13 2002 Nalin Dahyabhai <nalin@redhat.com> 3.0.2p1-3
479- add patches from Simon Wilkinson and Nicolas Williams for GSSAPI key
480  exchange, authentication, and named key support
481
482* Wed Jan 23 2002 Nalin Dahyabhai <nalin@redhat.com> 3.0.2p1-2
483- remove dependency on db1-devel, which has just been swallowed up whole
484  by gnome-libs-devel
485
486* Sat Dec 29 2001 Nalin Dahyabhai <nalin@redhat.com>
487- adjust build dependencies so that build6x actually works right (fix
488  from Hugo van der Kooij)
489
490* Tue Dec  4 2001 Nalin Dahyabhai <nalin@redhat.com> 3.0.2p1-1
491- update to 3.0.2p1
492
493* Fri Nov 16 2001 Nalin Dahyabhai <nalin@redhat.com> 3.0.1p1-1
494- update to 3.0.1p1
495
496* Tue Nov 13 2001 Nalin Dahyabhai <nalin@redhat.com>
497- update to current CVS (not for use in distribution)
498
499* Thu Nov  8 2001 Nalin Dahyabhai <nalin@redhat.com> 3.0p1-1
500- merge some of Damien Miller <djm@mindrot.org> changes from the upstream
501  3.0p1 spec file and init script
502
503* Wed Nov  7 2001 Nalin Dahyabhai <nalin@redhat.com>
504- update to 3.0p1
505- update to x11-ssh-askpass 1.2.4.1
506- change build dependency on a file from pam-devel to the pam-devel package
507- replace primes with moduli
508
509* Thu Sep 27 2001 Nalin Dahyabhai <nalin@redhat.com> 2.9p2-9
510- incorporate fix from Markus Friedl's advisory for IP-based authorization bugs
511
512* Thu Sep 13 2001 Bernhard Rosenkraenzer <bero@redhat.com> 2.9p2-8
513- Merge changes to rescue build from current sysadmin survival cd
514
515* Thu Sep  6 2001 Nalin Dahyabhai <nalin@redhat.com> 2.9p2-7
516- fix scp's server's reporting of file sizes, and build with the proper
517  preprocessor define to get large-file capable open(), stat(), etc.
518  (sftp has been doing this correctly all along) (#51827)
519- configure without --with-ipv4-default on RHL 7.x and newer (#45987,#52247)
520- pull cvs patch to fix support for /etc/nologin for non-PAM logins (#47298)
521- mark profile.d scriptlets as config files (#42337)
522- refer to Jason Stone's mail for zsh workaround for exit-hanging quasi-bug
523- change a couple of log() statements to debug() statements (#50751)
524- pull cvs patch to add -t flag to sshd (#28611)
525- clear fd_sets correctly (one bit per FD, not one byte per FD) (#43221)
526
527* Mon Aug 20 2001 Nalin Dahyabhai <nalin@redhat.com> 2.9p2-6
528- add db1-devel as a BuildPrerequisite (noted by Hans Ecke)
529
530* Thu Aug 16 2001 Nalin Dahyabhai <nalin@redhat.com>
531- pull cvs patch to fix remote port forwarding with protocol 2
532
533* Thu Aug  9 2001 Nalin Dahyabhai <nalin@redhat.com>
534- pull cvs patch to add session initialization to no-pty sessions
535- pull cvs patch to not cut off challengeresponse auth needlessly
536- refuse to do X11 forwarding if xauth isn't there, handy if you enable
537  it by default on a system that doesn't have X installed (#49263)
538
539* Wed Aug  8 2001 Nalin Dahyabhai <nalin@redhat.com>
540- don't apply patches to code we don't intend to build (spotted by Matt Galgoci)
541
542* Mon Aug  6 2001 Nalin Dahyabhai <nalin@redhat.com>
543- pass OPTIONS correctly to initlog (#50151)
544
545* Wed Jul 25 2001 Nalin Dahyabhai <nalin@redhat.com>
546- switch to x11-ssh-askpass 1.2.2
547
548* Wed Jul 11 2001 Nalin Dahyabhai <nalin@redhat.com>
549- rebuild in new environment
550
551* Mon Jun 25 2001 Nalin Dahyabhai <nalin@redhat.com>
552- disable the gssapi patch
553
554* Mon Jun 18 2001 Nalin Dahyabhai <nalin@redhat.com>
555- update to 2.9p2
556- refresh to a new version of the gssapi patch
557
558* Thu Jun  7 2001 Nalin Dahyabhai <nalin@redhat.com>
559- change Copyright: BSD to License: BSD
560- add Markus Friedl's unverified patch for the cookie file deletion problem
561  so that we can verify it
562- drop patch to check if xauth is present (was folded into cookie patch)
563- don't apply gssapi patches for the errata candidate
564- clear supplemental groups list at startup
565
566* Fri May 25 2001 Nalin Dahyabhai <nalin@redhat.com>
567- fix an error parsing the new default sshd_config
568- add a fix from Markus Friedl (via openssh-unix-dev) for ssh-keygen not
569  dealing with comments right
570
571* Thu May 24 2001 Nalin Dahyabhai <nalin@redhat.com>
572- add in Simon Wilkinson's GSSAPI patch to give it some testing in-house,
573  to be removed before the next beta cycle because it's a big departure
574  from the upstream version
575
576* Thu May  3 2001 Nalin Dahyabhai <nalin@redhat.com>
577- finish marking strings in the init script for translation
578- modify init script to source /etc/sysconfig/sshd and pass $OPTIONS to sshd
579  at startup (change merged from openssh.com init script, originally by
580  Pekka Savola)
581- refuse to do X11 forwarding if xauth isn't there, handy if you enable
582  it by default on a system that doesn't have X installed
583
584* Wed May  2 2001 Nalin Dahyabhai <nalin@redhat.com>
585- update to 2.9
586- drop various patches that came from or went upstream or to or from CVS
587
588* Wed Apr 18 2001 Nalin Dahyabhai <nalin@redhat.com>
589- only require initscripts 5.00 on 6.2 (reported by Peter Bieringer)
590
591* Sun Apr  8 2001 Preston Brown <pbrown@redhat.com>
592- remove explicit openssl requirement, fixes builddistro issue
593- make initscript stop() function wait until sshd really dead to avoid
594  races in condrestart
595
596* Mon Apr  2 2001 Nalin Dahyabhai <nalin@redhat.com>
597- mention that challengereponse supports PAM, so disabling password doesn't
598  limit users to pubkey and rsa auth (#34378)
599- bypass the daemon() function in the init script and call initlog directly,
600  because daemon() won't start a daemon it detects is already running (like
601  open connections)
602- require the version of openssl we had when we were built
603
604* Fri Mar 23 2001 Nalin Dahyabhai <nalin@redhat.com>
605- make do_pam_setcred() smart enough to know when to establish creds and
606  when to reinitialize them
607- add in a couple of other fixes from Damien for inclusion in the errata
608
609* Thu Mar 22 2001 Nalin Dahyabhai <nalin@redhat.com>
610- update to 2.5.2p2
611- call setcred() again after initgroups, because the "creds" could actually
612  be group memberships
613
614* Tue Mar 20 2001 Nalin Dahyabhai <nalin@redhat.com>
615- update to 2.5.2p1 (includes endianness fixes in the rijndael implementation)
616- don't enable challenge-response by default until we find a way to not
617  have too many userauth requests (we may make up to six pubkey and up to
618  three password attempts as it is)
619- remove build dependency on rsh to match openssh.com's packages more closely
620
621* Sat Mar  3 2001 Nalin Dahyabhai <nalin@redhat.com>
622- remove dependency on openssl -- would need to be too precise
623
624* Fri Mar  2 2001 Nalin Dahyabhai <nalin@redhat.com>
625- rebuild in new environment
626
627* Mon Feb 26 2001 Nalin Dahyabhai <nalin@redhat.com>
628- Revert the patch to move pam_open_session.
629- Init script and spec file changes from Pekka Savola. (#28750)
630- Patch sftp to recognize '-o protocol' arguments. (#29540)
631
632* Thu Feb 22 2001 Nalin Dahyabhai <nalin@redhat.com>
633- Chuck the closing patch.
634- Add a trigger to add host keys for protocol 2 to the config file, now that
635  configuration file syntax requires us to specify it with HostKey if we
636  specify any other HostKey values, which we do.
637
638* Tue Feb 20 2001 Nalin Dahyabhai <nalin@redhat.com>
639- Redo patch to move pam_open_session after the server setuid()s to the user.
640- Rework the nopam patch to use be picked up by autoconf.
641
642* Mon Feb 19 2001 Nalin Dahyabhai <nalin@redhat.com>
643- Update for 2.5.1p1.
644- Add init script mods from Pekka Savola.
645- Tweak the init script to match the CVS contrib script more closely.
646- Redo patch to ssh-add to try to adding both identity and id_dsa to also try
647  adding id_rsa.
648
649* Fri Feb 16 2001 Nalin Dahyabhai <nalin@redhat.com>
650- Update for 2.5.0p1.
651- Use $RPM_OPT_FLAGS instead of -O when building gnome-ssh-askpass
652- Resync with parts of Damien Miller's openssh.spec from CVS, including
653  update of x11 askpass to 1.2.0.
654- Only require openssl (don't prereq) because we generate keys in the init
655  script now.
656
657* Tue Feb 13 2001 Nalin Dahyabhai <nalin@redhat.com>
658- Don't open a PAM session until we've forked and become the user (#25690).
659- Apply Andrew Bartlett's patch for letting pam_authenticate() know which
660  host the user is attempting a login from.
661- Resync with parts of Damien Miller's openssh.spec from CVS.
662- Don't expose KbdInt responses in debug messages (from CVS).
663- Detect and handle errors in rsa_{public,private}_decrypt (from CVS).
664
665* Wed Feb  7 2001 Trond Eivind Glomsrxd <teg@redhat.com>
666- i18n-tweak to initscript.
667
668* Tue Jan 23 2001 Nalin Dahyabhai <nalin@redhat.com>
669- More gettextizing.
670- Close all files after going into daemon mode (needs more testing).
671- Extract patch from CVS to handle auth banners (in the client).
672- Extract patch from CVS to handle compat weirdness.
673
674* Fri Jan 19 2001 Nalin Dahyabhai <nalin@redhat.com>
675- Finish with the gettextizing.
676
677* Thu Jan 18 2001 Nalin Dahyabhai <nalin@redhat.com>
678- Fix a bug in auth2-pam.c (#23877)
679- Gettextize the init script.
680
681* Wed Dec 20 2000 Nalin Dahyabhai <nalin@redhat.com>
682- Incorporate a switch for using PAM configs for 6.x, just in case.
683
684* Tue Dec  5 2000 Nalin Dahyabhai <nalin@redhat.com>
685- Incorporate Bero's changes for a build specifically for rescue CDs.
686
687* Wed Nov 29 2000 Nalin Dahyabhai <nalin@redhat.com>
688- Don't treat pam_setcred() failure as fatal unless pam_authenticate() has
689  succeeded, to allow public-key authentication after a failure with "none"
690  authentication.  (#21268)
691
692* Tue Nov 28 2000 Nalin Dahyabhai <nalin@redhat.com>
693- Update to x11-askpass 1.1.1. (#21301)
694- Don't second-guess fixpaths, which causes paths to get fixed twice. (#21290)
695
696* Mon Nov 27 2000 Nalin Dahyabhai <nalin@redhat.com>
697- Merge multiple PAM text messages into subsequent prompts when possible when
698  doing keyboard-interactive authentication.
699
700* Sun Nov 26 2000 Nalin Dahyabhai <nalin@redhat.com>
701- Disable the built-in MD5 password support.  We're using PAM.
702- Take a crack at doing keyboard-interactive authentication with PAM, and
703  enable use of it in the default client configuration so that the client
704  will try it when the server disallows password authentication.
705- Build with debugging flags.  Build root policies strip all binaries anyway.
706
707* Tue Nov 21 2000 Nalin Dahyabhai <nalin@redhat.com>
708- Use DESTDIR instead of %%makeinstall.
709- Remove /usr/X11R6/bin from the path-fixing patch.
710
711* Mon Nov 20 2000 Nalin Dahyabhai <nalin@redhat.com>
712- Add the primes file from the latest snapshot to the main package (#20884).
713- Add the dev package to the prereq list (#19984).
714- Remove the default path and mimic login's behavior in the server itself.
715
716* Fri Nov 17 2000 Nalin Dahyabhai <nalin@redhat.com>
717- Resync with conditional options in Damien Miller's .spec file for an errata.
718- Change libexecdir from %%{_libexecdir}/ssh to %%{_libexecdir}/openssh.
719
720* Tue Nov  7 2000 Nalin Dahyabhai <nalin@redhat.com>
721- Update to OpenSSH 2.3.0p1.
722- Update to x11-askpass 1.1.0.
723- Enable keyboard-interactive authentication.
724
725* Mon Oct 30 2000 Nalin Dahyabhai <nalin@redhat.com>
726- Update to ssh-askpass-x11 1.0.3.
727- Change authentication related messages to be private (#19966).
728
729* Tue Oct 10 2000 Nalin Dahyabhai <nalin@redhat.com>
730- Patch ssh-keygen to be able to list signatures for DSA public key files
731  it generates.
732
733* Thu Oct  5 2000 Nalin Dahyabhai <nalin@redhat.com>
734- Add BuildRequires on /usr/include/security/pam_appl.h to be sure we always
735  build PAM authentication in.
736- Try setting SSH_ASKPASS if gnome-ssh-askpass is installed.
737- Clean out no-longer-used patches.
738- Patch ssh-add to try to add both identity and id_dsa, and to error only
739  when neither exists.
740
741* Mon Oct  2 2000 Nalin Dahyabhai <nalin@redhat.com>
742- Update x11-askpass to 1.0.2. (#17835)
743- Add BuildRequiress for /bin/login and /usr/bin/rsh so that configure will
744  always find them in the right place. (#17909)
745- Set the default path to be the same as the one supplied by /bin/login, but
746  add /usr/X11R6/bin. (#17909)
747- Try to handle obsoletion of ssh-server more cleanly.  Package names
748  are different, but init script name isn't. (#17865)
749
750* Wed Sep  6 2000 Nalin Dahyabhai <nalin@redhat.com>
751- Update to 2.2.0p1. (#17835)
752- Tweak the init script to allow proper restarting. (#18023)
753
754* Wed Aug 23 2000 Nalin Dahyabhai <nalin@redhat.com>
755- Update to 20000823 snapshot.
756- Change subpackage requirements from %%{version} to %%{version}-%%{release}
757- Back out the pipe patch.
758
759* Mon Jul 17 2000 Nalin Dahyabhai <nalin@redhat.com>
760- Update to 2.1.1p4, which includes fixes for config file parsing problems.
761- Move the init script back.
762- Add Damien's quick fix for wackiness.
763
764* Wed Jul 12 2000 Nalin Dahyabhai <nalin@redhat.com>
765- Update to 2.1.1p3, which includes fixes for X11 forwarding and strtok().
766
767* Thu Jul  6 2000 Nalin Dahyabhai <nalin@redhat.com>
768- Move condrestart to server postun.
769- Move key generation to init script.
770- Actually use the right patch for moving the key generation to the init script.
771- Clean up the init script a bit.
772
773* Wed Jul  5 2000 Nalin Dahyabhai <nalin@redhat.com>
774- Fix X11 forwarding, from mail post by Chan Shih-Ping Richard.
775
776* Sun Jul  2 2000 Nalin Dahyabhai <nalin@redhat.com>
777- Update to 2.1.1p2.
778- Use of strtok() considered harmful.
779
780* Sat Jul  1 2000 Nalin Dahyabhai <nalin@redhat.com>
781- Get the build root out of the man pages.
782
783* Thu Jun 29 2000 Nalin Dahyabhai <nalin@redhat.com>
784- Add and use condrestart support in the init script.
785- Add newer initscripts as a prereq.
786
787* Tue Jun 27 2000 Nalin Dahyabhai <nalin@redhat.com>
788- Build in new environment (release 2)
789- Move -clients subpackage to Applications/Internet group
790
791* Fri Jun  9 2000 Nalin Dahyabhai <nalin@redhat.com>
792- Update to 2.2.1p1
793
794* Sat Jun  3 2000 Nalin Dahyabhai <nalin@redhat.com>
795- Patch to build with neither RSA nor RSAref.
796- Miscellaneous FHS-compliance tweaks.
797- Fix for possibly-compressed man pages.
798
799* Wed Mar 15 2000 Damien Miller <djm@ibs.com.au>
800- Updated for new location
801- Updated for new gnome-ssh-askpass build
802
803* Sun Dec 26 1999 Damien Miller <djm@mindrot.org>
804- Added Jim Knoble's <jmknoble@pobox.com> askpass
805
806* Mon Nov 15 1999 Damien Miller <djm@mindrot.org>
807- Split subpackages further based on patch from jim knoble <jmknoble@pobox.com>
808
809* Sat Nov 13 1999 Damien Miller <djm@mindrot.org>
810- Added 'Obsoletes' directives
811
812* Tue Nov 09 1999 Damien Miller <djm@ibs.com.au>
813- Use make install
814- Subpackages
815
816* Mon Nov 08 1999 Damien Miller <djm@ibs.com.au>
817- Added links for slogin
818- Fixed perms on manpages
819
820* Sat Oct 30 1999 Damien Miller <djm@ibs.com.au>
821- Renamed init script
822
823* Fri Oct 29 1999 Damien Miller <djm@ibs.com.au>
824- Back to old binary names
825
826* Thu Oct 28 1999 Damien Miller <djm@ibs.com.au>
827- Use autoconf
828- New binary names
829
830* Wed Oct 27 1999 Damien Miller <djm@ibs.com.au>
831- Initial RPMification, based on Jan "Yenya" Kasprzak's <kas@fi.muni.cz> spec.
832