Makefile revision 3477
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# CDDL HEADER START
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# The contents of this file are subject to the terms of the
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Common Development and Distribution License (the "License").
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# You may not use this file except in compliance with the License.
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
83a28ca274521e15086fc39febde507bcc4e145eMark Andrews# See the License for the specific language governing permissions
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# and limitations under the License.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# When distributing Covered Code, include this CDDL HEADER in each
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
e939674d53a127ddeeaf4b41fd72933f0b493308Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# fields enclosed by brackets "[]" replaced with your own identifying
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# information: Portions Copyright [yyyy] [name of copyright owner]
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# CDDL HEADER END
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
2a31bd531072824ef252c18303859d6af7451b00Francis DupontCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Version for IPS. The encoding rules are:
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# OpenSSH <x>.<y>p<n> => IPS <x>.<y>.0.<n>
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# OpenSSH <x>.<y>.<z>p<n> => IPS <x>.<y>.<z>.<n>
ca4e44ebe8f3b29a426fe047c4192262ca660c6fAutomatic UpdaterCOMPONENT_PROJECT_URL= http://www.openssh.org/
99d8f5a70440ee8b63ab1745d713b96dde890546Tinderbox UserCOMPONENT_ARCHIVE_HASH= sha256:a1195ed55db945252d5a1730d4a2a2a5c1c9a6aa01ef2e5af750a962623d9027
6ea2385360e9e2167e65f9286447da9eea189457Tinderbox UserCOMPONENT_ARCHIVE_URL= http://mirror.team-cymru.org/pub/OpenBSD/OpenSSH/portable/$(COMPONENT_ARCHIVE)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# Enable ASLR for this component
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# We need to disable lazyloading of dynamic dependent libraries. During the
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# pre-authentication phase, sshd will chroot to /var/empty which doesn't
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# contain any files. If we use lazyloading, sshd will fail to find any
e939674d53a127ddeeaf4b41fd72933f0b493308Mark Andrews# libraries that it needs.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Just $(BUILD_64) option was not propogating the 64 bit flags to all the
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# necessary places. Hence the -m64 option is added to LDFLAGS for
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# CONFIGURE_OPTIONS.64.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Build with BSM audit. Do not check if getaudit and getaudit_addr are in
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# libbsm, because they are no longer in libbsm and not needed any way.
2a31bd531072824ef252c18303859d6af7451b00Francis DupontCONFIGURE_OPTIONS += "ac_cv_lib_bsm_getaudit=yes"
30eec077db2bdcb6f2a0dc388a3cdde2ede75ec1Mark AndrewsCONFIGURE_OPTIONS += "ac_cv_func_getaudit_addr=yes"
1f821c10583d9cddbaf3626a96ff8cf10cdb645bFrancis DupontCONFIGURE_OPTIONS += --libexecdir=/usr/lib/ssh
30eec077db2bdcb6f2a0dc388a3cdde2ede75ec1Mark Andrews# Copy the sftp dtrace provider file and the header file to source directory
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont $(LN) -fs $(COMPONENT_DIR)/dtrace_sftp/*.[dh] $(SOURCE_DIR); \
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont# common targets
e939674d53a127ddeeaf4b41fd72933f0b493308Mark Andrews# Because of certain set up requirement, the regress test suite is ported to
e939674d53a127ddeeaf4b41fd72933f0b493308Mark Andrews# the STC gate.