#
# This change is to remove some misleading error messages when running
# "gmake install". OpenSSH mixes the building and running together. Some
# system setup checking for running the program needs to be removed, because
# they are not suitable in a build system. This is for Solaris only, so we
# will not contribute back this change to the upstream community.
#
--- orig/Makefile.in Wed Mar 27 16:56:36 2013
+++ new/Makefile.in Wed Mar 27 17:05:06 2013
@@ -237,7 +237,16 @@
install-nosysconf: $(CONFIGFILES) $(MANPAGES) $(TARGETS) install-files
check-config:
- -$(DESTDIR)$(sbindir)/sshd -t -f $(DESTDIR)$(sysconfdir)/sshd_config
+# On Solaris, to workaround OpenSSH's unlucky mixing of 'building ssh' and
+# 'running ssh', on build machine the following requisites shouldn't be
+# enforced:
+# 1) existence of privsep user sshd
+# 2) existence of privsep directory /var/empty
+# 3) read permissions for /etc/ssh/ssh_host_[rsa,dsa]_key
+#
+# -$(DESTDIR)$(sbindir)/sshd -t -f $(DESTDIR)$(sysconfdir)/sshd_config
+#
+ @echo 'Oracle Solaris: skipping check-config'
install-files:
$(srcdir)/mkinstalldirs $(DESTDIR)$(bindir)