Makefile revision 6067
5fbced719b71e659322b4ce3e4a39c9b039674c7Bob Halley# CDDL HEADER START
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# The contents of this file are subject to the terms of the
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# Common Development and Distribution License (the "License").
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# You may not use this file except in compliance with the License.
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# See the License for the specific language governing permissions
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# and limitations under the License.
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
15a44745412679c30a6d022733925af70a38b715David Lawrence# information: Portions Copyright [yyyy] [name of copyright owner]
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson# CDDL HEADER END
2da2220fe7af2c45724b50b0187523b1fab0cf08Rob Austein# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence# Version for IPS. The encoding rules are:
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence# OpenSSH <x>.<y>p<n> => IPS <x>.<y>.0.<n>
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas Gustafsson# OpenSSH <x>.<y>.<z>p<n> => IPS <x>.<y>.<z>.<n>
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas GustafssonCOMPONENT_PROJECT_URL= http://www.openssh.org/
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas GustafssonCOMPONENT_ARCHIVE_HASH= sha256:a72781d1a043876a224ff1b0032daa4094d87565a68528759c1c2cab5482548c
5a6e6c2c9b2f6cf426aa2a682aa800765e26d540Andreas GustafssonCOMPONENT_ARCHIVE_URL= http://mirrors.sonic.net/pub/OpenBSD/OpenSSH/portable/$(COMPONENT_ARCHIVE)
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence# Because of set up requirements, test suite is in stc gate.
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence# 11.3 has conflicts with ON's SunSSH package, which had not yet added
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence# mediated links, thus cannot be updated to.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# We need to disable lazyloading of dynamic dependent libraries. During the
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# pre-authentication phase, sshd will chroot to /var/empty which doesn't
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# contain any files. If we use lazyloading, sshd will fail to find any
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# libraries that it needs.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Enable nxheap and nxstack security extensions
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Fix 64-bit linking via compiler.
e107074f370ee86275bd64ab8bcaa429fec1c7e2Mark AndrewsCONFIGURE_OPTIONS += --with-xauth=$(USRBINDIR)/xauth
e107074f370ee86275bd64ab8bcaa429fec1c7e2Mark AndrewsCONFIGURE_OPTIONS += --libexecdir=$(USRLIBDIR)/ssh
e107074f370ee86275bd64ab8bcaa429fec1c7e2Mark Andrews# Copy the sftp dtrace provider file and the header file to source directory
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews $(LN) -fs $(COMPONENT_DIR)/dtrace_sftp/*.[dh] $(SOURCE_DIR); \
f4a7d04843eb62c92f2d4ff338da49ae86e3279bDavid Lawrence# Copy Solaris specific source files and generate configuration script
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsREQUIRED_PACKAGES += service/security/kerberos-5
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsREQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime