summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-rw-r--r--contrib/aix/README1
-rwxr-xr-xcontrib/aix/buildbff.sh1
-rwxr-xr-xcontrib/aix/inventory.sh1
-rw-r--r--contrib/cygwin/Makefile11
-rw-r--r--contrib/findssl.sh2
-rw-r--r--contrib/redhat/openssh.spec69
-rwxr-xr-xcontrib/redhat/sshd.init1
-rwxr-xr-xcontrib/redhat/sshd.init.old17
-rw-r--r--contrib/suse/openssh.spec2
9 files changed, 59 insertions, 46 deletions
diff --git a/contrib/aix/README b/contrib/aix/README
index 4a11ae703..1aa591978 100644
--- a/contrib/aix/README
+++ b/contrib/aix/README
@@ -47,4 +47,3 @@ you get to keep both pieces.
47 - Darren Tucker (dtucker at zip dot com dot au) 47 - Darren Tucker (dtucker at zip dot com dot au)
48 2002/03/01 48 2002/03/01
49 49
50$Id: README,v 1.4 2003/08/25 05:01:04 dtucker Exp $
diff --git a/contrib/aix/buildbff.sh b/contrib/aix/buildbff.sh
index 81d8cc301..00b384dc7 100755
--- a/contrib/aix/buildbff.sh
+++ b/contrib/aix/buildbff.sh
@@ -1,7 +1,6 @@
1#!/bin/sh 1#!/bin/sh
2# 2#
3# buildbff.sh: Create AIX SMIT-installable OpenSSH packages 3# buildbff.sh: Create AIX SMIT-installable OpenSSH packages
4# $Id: buildbff.sh,v 1.13 2011/05/05 03:48:41 djm Exp $
5# 4#
6# Author: Darren Tucker (dtucker at zip dot com dot au) 5# Author: Darren Tucker (dtucker at zip dot com dot au)
7# This file is placed in the public domain and comes with absolutely 6# This file is placed in the public domain and comes with absolutely
diff --git a/contrib/aix/inventory.sh b/contrib/aix/inventory.sh
index e2641e79c..7d76f4971 100755
--- a/contrib/aix/inventory.sh
+++ b/contrib/aix/inventory.sh
@@ -1,7 +1,6 @@
1#!/bin/sh 1#!/bin/sh
2# 2#
3# inventory.sh 3# inventory.sh
4# $Id: inventory.sh,v 1.6 2003/11/21 12:48:56 djm Exp $
5# 4#
6# Originally written by Ben Lindstrom, modified by Darren Tucker to use perl 5# Originally written by Ben Lindstrom, modified by Darren Tucker to use perl
7# This file is placed into the public domain. 6# This file is placed into the public domain.
diff --git a/contrib/cygwin/Makefile b/contrib/cygwin/Makefile
index a0261f48d..4b78cd950 100644
--- a/contrib/cygwin/Makefile
+++ b/contrib/cygwin/Makefile
@@ -13,6 +13,7 @@ defaultsdir=$(sysconfdir)/defaults/etc
13inetdefdir=$(defaultsdir)/inetd.d 13inetdefdir=$(defaultsdir)/inetd.d
14PRIVSEP_PATH=/var/empty 14PRIVSEP_PATH=/var/empty
15INSTALL=/usr/bin/install -c 15INSTALL=/usr/bin/install -c
16MKDIR_P=$(srcdir)/mkinstalldirs
16 17
17DESTDIR= 18DESTDIR=
18 19
@@ -23,7 +24,7 @@ all:
23 @echo 24 @echo
24 25
25move-config-files: $(DESTDIR)$(sysconfdir)/ssh_config $(DESTDIR)$(sysconfdir)/sshd_config 26move-config-files: $(DESTDIR)$(sysconfdir)/ssh_config $(DESTDIR)$(sysconfdir)/sshd_config
26 $(srcdir)/mkinstalldirs $(DESTDIR)$(defaultsdir) 27 $(MKDIR_P) $(DESTDIR)$(defaultsdir)
27 mv $(DESTDIR)$(sysconfdir)/ssh_config $(DESTDIR)$(defaultsdir) 28 mv $(DESTDIR)$(sysconfdir)/ssh_config $(DESTDIR)$(defaultsdir)
28 mv $(DESTDIR)$(sysconfdir)/sshd_config $(DESTDIR)$(defaultsdir) 29 mv $(DESTDIR)$(sysconfdir)/sshd_config $(DESTDIR)$(defaultsdir)
29 30
@@ -31,11 +32,11 @@ remove-empty-dir:
31 rm -rf $(DESTDIR)$(PRIVSEP_PATH) 32 rm -rf $(DESTDIR)$(PRIVSEP_PATH)
32 33
33install-inetd-config: 34install-inetd-config:
34 $(srcdir)/mkinstalldirs $(DESTDIR)$(inetdefdir) 35 $(MKDIR_P) $(DESTDIR)$(inetdefdir)
35 $(INSTALL) -m 644 sshd-inetd $(DESTDIR)$(inetdefdir)/sshd-inetd 36 $(INSTALL) -m 644 sshd-inetd $(DESTDIR)$(inetdefdir)/sshd-inetd
36 37
37install-sshdoc: 38install-sshdoc:
38 $(srcdir)/mkinstalldirs $(DESTDIR)$(sshdocdir) 39 $(MKDIR_P) $(DESTDIR)$(sshdocdir)
39 -$(INSTALL) -m 644 $(srcdir)/CREDITS $(DESTDIR)$(sshdocdir)/CREDITS 40 -$(INSTALL) -m 644 $(srcdir)/CREDITS $(DESTDIR)$(sshdocdir)/CREDITS
40 -$(INSTALL) -m 644 $(srcdir)/ChangeLog $(DESTDIR)$(sshdocdir)/ChangeLog 41 -$(INSTALL) -m 644 $(srcdir)/ChangeLog $(DESTDIR)$(sshdocdir)/ChangeLog
41 -$(INSTALL) -m 644 $(srcdir)/LICENCE $(DESTDIR)$(sshdocdir)/LICENCE 42 -$(INSTALL) -m 644 $(srcdir)/LICENCE $(DESTDIR)$(sshdocdir)/LICENCE
@@ -52,13 +53,13 @@ install-sshdoc:
52 -$(INSTALL) -m 644 $(srcdir)/TODO $(DESTDIR)$(sshdocdir)/TODO 53 -$(INSTALL) -m 644 $(srcdir)/TODO $(DESTDIR)$(sshdocdir)/TODO
53 54
54install-cygwindoc: README 55install-cygwindoc: README
55 $(srcdir)/mkinstalldirs $(DESTDIR)$(cygdocdir) 56 $(MKDIR_P) $(DESTDIR)$(cygdocdir)
56 $(INSTALL) -m 644 README $(DESTDIR)$(cygdocdir)/openssh.README 57 $(INSTALL) -m 644 README $(DESTDIR)$(cygdocdir)/openssh.README
57 58
58install-doc: install-sshdoc install-cygwindoc 59install-doc: install-sshdoc install-cygwindoc
59 60
60install-scripts: ssh-host-config ssh-user-config 61install-scripts: ssh-host-config ssh-user-config
61 $(srcdir)/mkinstalldirs $(DESTDIR)$(bindir) 62 $(MKDIR_P) $(DESTDIR)$(bindir)
62 $(INSTALL) -m 755 ssh-host-config $(DESTDIR)$(bindir)/ssh-host-config 63 $(INSTALL) -m 755 ssh-host-config $(DESTDIR)$(bindir)/ssh-host-config
63 $(INSTALL) -m 755 ssh-user-config $(DESTDIR)$(bindir)/ssh-user-config 64 $(INSTALL) -m 755 ssh-user-config $(DESTDIR)$(bindir)/ssh-user-config
64 65
diff --git a/contrib/findssl.sh b/contrib/findssl.sh
index 263fd2644..95a0d66df 100644
--- a/contrib/findssl.sh
+++ b/contrib/findssl.sh
@@ -1,7 +1,5 @@
1#!/bin/sh 1#!/bin/sh
2# 2#
3# $Id: findssl.sh,v 1.4 2007/02/19 11:44:25 dtucker Exp $
4#
5# findssl.sh 3# findssl.sh
6# Search for all instances of OpenSSL headers and libraries 4# Search for all instances of OpenSSL headers and libraries
7# and print their versions. 5# and print their versions.
diff --git a/contrib/redhat/openssh.spec b/contrib/redhat/openssh.spec
index a96a36e49..a0d5e2071 100644
--- a/contrib/redhat/openssh.spec
+++ b/contrib/redhat/openssh.spec
@@ -1,5 +1,5 @@
1%define ver 7.6p1 1%define ver 7.7p1
2%define rel 1 2%define rel 1%{?dist}
3 3
4# OpenSSH privilege separation requires a user & group ID 4# OpenSSH privilege separation requires a user & group ID
5%define sshd_uid 74 5%define sshd_uid 74
@@ -23,8 +23,19 @@
23# Use GTK2 instead of GNOME in gnome-ssh-askpass 23# Use GTK2 instead of GNOME in gnome-ssh-askpass
24%define gtk2 1 24%define gtk2 1
25 25
26# Is this build for RHL 6.x? 26# Use build6x options for older RHEL builds
27# RHEL 7 not yet supported
28%if 0%{?rhel} > 6
27%define build6x 0 29%define build6x 0
30%else
31%define build6x 1
32%endif
33
34%if 0%{?fedora} >= 26
35%define compat_openssl 1
36%else
37%define compat_openssl 0
38%endif
28 39
29# Do we want kerberos5 support (1=yes 0=no) 40# Do we want kerberos5 support (1=yes 0=no)
30%define kerberos5 1 41%define kerberos5 1
@@ -64,7 +75,7 @@
64%define kerberos5 0 75%define kerberos5 0
65%endif 76%endif
66 77
67Summary: The OpenSSH implementation of SSH protocol versions 1 and 2. 78Summary: The OpenSSH implementation of SSH protocol version 2.
68Name: openssh 79Name: openssh
69Version: %{ver} 80Version: %{ver}
70%if %{rescue} 81%if %{rescue}
@@ -74,9 +85,7 @@ Release: %{rel}
74%endif 85%endif
75URL: https://www.openssh.com/portable.html 86URL: https://www.openssh.com/portable.html
76Source0: https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-%{version}.tar.gz 87Source0: https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-%{version}.tar.gz
77%if ! %{no_x11_askpass}
78Source1: http://www.jmknoble.net/software/x11-ssh-askpass/x11-ssh-askpass-%{aversion}.tar.gz 88Source1: http://www.jmknoble.net/software/x11-ssh-askpass/x11-ssh-askpass-%{aversion}.tar.gz
79%endif
80License: BSD 89License: BSD
81Group: Applications/Internet 90Group: Applications/Internet
82BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot 91BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
@@ -86,7 +95,13 @@ PreReq: initscripts >= 5.00
86%else 95%else
87Requires: initscripts >= 5.20 96Requires: initscripts >= 5.20
88%endif 97%endif
89BuildRequires: perl, openssl-devel 98BuildRequires: perl
99%if %{compat_openssl}
100BuildRequires: compat-openssl10-devel
101%else
102BuildRequires: openssl-devel >= 1.0.1
103BuildRequires: openssl-devel < 1.1
104%endif
90BuildRequires: /bin/login 105BuildRequires: /bin/login
91%if ! %{build6x} 106%if ! %{build6x}
92BuildRequires: glibc-devel, pam 107BuildRequires: glibc-devel, pam
@@ -95,6 +110,12 @@ BuildRequires: /usr/include/security/pam_appl.h
95%endif 110%endif
96%if ! %{no_x11_askpass} 111%if ! %{no_x11_askpass}
97BuildRequires: /usr/include/X11/Xlib.h 112BuildRequires: /usr/include/X11/Xlib.h
113# Xt development tools
114BuildRequires: libXt-devel
115# Provides xmkmf
116BuildRequires: imake
117# Rely on relatively recent gtk
118BuildRequires: gtk2-devel
98%endif 119%endif
99%if ! %{no_gnome_askpass} 120%if ! %{no_gnome_askpass}
100BuildRequires: pkgconfig 121BuildRequires: pkgconfig
@@ -183,11 +204,6 @@ environment.
183CFLAGS="$RPM_OPT_FLAGS -Os"; export CFLAGS 204CFLAGS="$RPM_OPT_FLAGS -Os"; export CFLAGS
184%endif 205%endif
185 206
186%if %{kerberos5}
187K5DIR=`rpm -ql krb5-devel | grep 'include/krb5\.h' | sed 's,\/include\/krb5.h,,'`
188echo K5DIR=$K5DIR
189%endif
190
191%configure \ 207%configure \
192 --sysconfdir=%{_sysconfdir}/ssh \ 208 --sysconfdir=%{_sysconfdir}/ssh \
193 --libexecdir=%{_libexecdir}/openssh \ 209 --libexecdir=%{_libexecdir}/openssh \
@@ -196,6 +212,9 @@ echo K5DIR=$K5DIR
196 --with-superuser-path=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin \ 212 --with-superuser-path=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin \
197 --with-privsep-path=%{_var}/empty/sshd \ 213 --with-privsep-path=%{_var}/empty/sshd \
198 --with-md5-passwords \ 214 --with-md5-passwords \
215 --mandir=%{_mandir} \
216 --with-mantype=man \
217 --disable-strip \
199%if %{scard} 218%if %{scard}
200 --with-smartcard \ 219 --with-smartcard \
201%endif 220%endif
@@ -262,12 +281,12 @@ install -m644 contrib/redhat/sshd.pam $RPM_BUILD_ROOT/etc/pam.d/sshd
262install -m755 contrib/redhat/sshd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd 281install -m755 contrib/redhat/sshd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd
263 282
264%if ! %{no_x11_askpass} 283%if ! %{no_x11_askpass}
265install -s x11-ssh-askpass-%{aversion}/x11-ssh-askpass $RPM_BUILD_ROOT%{_libexecdir}/openssh/x11-ssh-askpass 284install x11-ssh-askpass-%{aversion}/x11-ssh-askpass $RPM_BUILD_ROOT%{_libexecdir}/openssh/x11-ssh-askpass
266ln -s x11-ssh-askpass $RPM_BUILD_ROOT%{_libexecdir}/openssh/ssh-askpass 285ln -s x11-ssh-askpass $RPM_BUILD_ROOT%{_libexecdir}/openssh/ssh-askpass
267%endif 286%endif
268 287
269%if ! %{no_gnome_askpass} 288%if ! %{no_gnome_askpass}
270install -s contrib/gnome-ssh-askpass $RPM_BUILD_ROOT%{_libexecdir}/openssh/gnome-ssh-askpass 289install contrib/gnome-ssh-askpass $RPM_BUILD_ROOT%{_libexecdir}/openssh/gnome-ssh-askpass
271%endif 290%endif
272 291
273%if ! %{scard} 292%if ! %{scard}
@@ -391,7 +410,7 @@ fi
391%doc x11-ssh-askpass-%{aversion}/README 410%doc x11-ssh-askpass-%{aversion}/README
392%doc x11-ssh-askpass-%{aversion}/ChangeLog 411%doc x11-ssh-askpass-%{aversion}/ChangeLog
393%doc x11-ssh-askpass-%{aversion}/SshAskpass*.ad 412%doc x11-ssh-askpass-%{aversion}/SshAskpass*.ad
394%attr(0755,root,root) %{_libexecdir}/openssh/ssh-askpass 413%{_libexecdir}/openssh/ssh-askpass
395%attr(0755,root,root) %{_libexecdir}/openssh/x11-ssh-askpass 414%attr(0755,root,root) %{_libexecdir}/openssh/x11-ssh-askpass
396%endif 415%endif
397 416
@@ -403,6 +422,22 @@ fi
403%endif 422%endif
404 423
405%changelog 424%changelog
425* Sat Feb 10 2018 Darren Tucker <dtucker@dtucker.net>
426- Update openssl-devel dependency to match current requirements.
427- Handle Fedora >=6 openssl 1.0 compat libs.
428- Remove SSH1 from description.
429- Don't strip binaries at build time so that debuginfo package can be
430 created.
431
432* Sun Nov 16 2014 Nico Kadel-Garcia <nakdel@gmail.com>
433- Add '--mandir' and '--with-mantype' for RHEL 5 compatibility
434- Add 'dist' option to 'ver' so package names reflect OS at build time
435- Always include x11-ssh-askpass tarball in SRPM
436- Add openssh-x11-aspass BuildRequires for libXT-devel, imake, gtk2-devel
437- Discard 'K5DIR' reporting, not usable inside 'mock' for RHEL 5 compatibility
438- Discard obsolete '--with-rsh' configure option
439- Update openssl-devel dependency to 0.9.8f, as found in autoconf
440
406* Wed Jul 14 2010 Tim Rice <tim@multitalents.net> 441* Wed Jul 14 2010 Tim Rice <tim@multitalents.net>
407- test for skip_x11_askpass (line 77) should have been for no_x11_askpass 442- test for skip_x11_askpass (line 77) should have been for no_x11_askpass
408 443
@@ -414,7 +449,7 @@ fi
414- Don't install profile.d scripts when not building with GNOME/GTK askpass 449- Don't install profile.d scripts when not building with GNOME/GTK askpass
415 (patch from bet@rahul.net) 450 (patch from bet@rahul.net)
416 451
417* Wed Oct 01 2002 Damien Miller <djm@mindrot.org> 452* Tue Oct 01 2002 Damien Miller <djm@mindrot.org>
418- Install ssh-agent setgid nobody to prevent ptrace() key theft attacks 453- Install ssh-agent setgid nobody to prevent ptrace() key theft attacks
419 454
420* Mon Sep 30 2002 Damien Miller <djm@mindrot.org> 455* Mon Sep 30 2002 Damien Miller <djm@mindrot.org>
@@ -460,7 +495,7 @@ fi
460- remove dependency on db1-devel, which has just been swallowed up whole 495- remove dependency on db1-devel, which has just been swallowed up whole
461 by gnome-libs-devel 496 by gnome-libs-devel
462 497
463* Sun Dec 29 2001 Nalin Dahyabhai <nalin@redhat.com> 498* Sat Dec 29 2001 Nalin Dahyabhai <nalin@redhat.com>
464- adjust build dependencies so that build6x actually works right (fix 499- adjust build dependencies so that build6x actually works right (fix
465 from Hugo van der Kooij) 500 from Hugo van der Kooij)
466 501
diff --git a/contrib/redhat/sshd.init b/contrib/redhat/sshd.init
index 40c8dfd9f..8ee5fcd3b 100755
--- a/contrib/redhat/sshd.init
+++ b/contrib/redhat/sshd.init
@@ -40,7 +40,6 @@ start()
40 # Create keys if necessary 40 # Create keys if necessary
41 /usr/bin/ssh-keygen -A 41 /usr/bin/ssh-keygen -A
42 if [ -x /sbin/restorecon ]; then 42 if [ -x /sbin/restorecon ]; then
43 /sbin/restorecon /etc/ssh/ssh_host_key.pub
44 /sbin/restorecon /etc/ssh/ssh_host_rsa_key.pub 43 /sbin/restorecon /etc/ssh/ssh_host_rsa_key.pub
45 /sbin/restorecon /etc/ssh/ssh_host_dsa_key.pub 44 /sbin/restorecon /etc/ssh/ssh_host_dsa_key.pub
46 /sbin/restorecon /etc/ssh/ssh_host_ecdsa_key.pub 45 /sbin/restorecon /etc/ssh/ssh_host_ecdsa_key.pub
diff --git a/contrib/redhat/sshd.init.old b/contrib/redhat/sshd.init.old
index 0deb6080e..8a30f7da4 100755
--- a/contrib/redhat/sshd.init.old
+++ b/contrib/redhat/sshd.init.old
@@ -24,7 +24,6 @@ prog="sshd"
24# Some functions to make the below more readable 24# Some functions to make the below more readable
25KEYGEN=/usr/bin/ssh-keygen 25KEYGEN=/usr/bin/ssh-keygen
26SSHD=/usr/sbin/sshd 26SSHD=/usr/sbin/sshd
27RSA1_KEY=/etc/ssh/ssh_host_key
28RSA_KEY=/etc/ssh/ssh_host_rsa_key 27RSA_KEY=/etc/ssh/ssh_host_rsa_key
29DSA_KEY=/etc/ssh/ssh_host_dsa_key 28DSA_KEY=/etc/ssh/ssh_host_dsa_key
30PID_FILE=/var/run/sshd.pid 29PID_FILE=/var/run/sshd.pid
@@ -61,21 +60,6 @@ my_failure() {
61 ;; 60 ;;
62 esac 61 esac
63} 62}
64do_rsa1_keygen() {
65 if [ ! -s $RSA1_KEY ]; then
66 echo -n "Generating SSH1 RSA host key: "
67 if $KEYGEN -q -t rsa1 -f $RSA1_KEY -C '' -N '' >&/dev/null; then
68 chmod 600 $RSA1_KEY
69 chmod 644 $RSA1_KEY.pub
70 my_success "RSA1 key generation"
71 echo
72 else
73 my_failure "RSA1 key generation"
74 echo
75 exit 1
76 fi
77 fi
78}
79do_rsa_keygen() { 63do_rsa_keygen() {
80 if [ ! -s $RSA_KEY ]; then 64 if [ ! -s $RSA_KEY ]; then
81 echo -n "Generating SSH2 RSA host key: " 65 echo -n "Generating SSH2 RSA host key: "
@@ -119,7 +103,6 @@ do_restart_sanity_check() {
119case "$1" in 103case "$1" in
120 start) 104 start)
121 # Create keys if necessary 105 # Create keys if necessary
122 do_rsa1_keygen;
123 do_rsa_keygen; 106 do_rsa_keygen;
124 do_dsa_keygen; 107 do_dsa_keygen;
125 108
diff --git a/contrib/suse/openssh.spec b/contrib/suse/openssh.spec
index fdb3578cb..d9c4298f1 100644
--- a/contrib/suse/openssh.spec
+++ b/contrib/suse/openssh.spec
@@ -13,7 +13,7 @@
13 13
14Summary: OpenSSH, a free Secure Shell (SSH) protocol implementation 14Summary: OpenSSH, a free Secure Shell (SSH) protocol implementation
15Name: openssh 15Name: openssh
16Version: 7.6p1 16Version: 7.7p1
17URL: https://www.openssh.com/ 17URL: https://www.openssh.com/
18Release: 1 18Release: 1
19Source0: openssh-%{version}.tar.gz 19Source0: openssh-%{version}.tar.gz