Makefile revision 2788
70N/A#
70N/A# CDDL HEADER START
70N/A#
70N/A# The contents of this file are subject to the terms of the
70N/A# Common Development and Distribution License (the "License").
70N/A# You may not use this file except in compliance with the License.
70N/A#
70N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
70N/A# or http://www.opensolaris.org/os/licensing.
70N/A# See the License for the specific language governing permissions
70N/A# and limitations under the License.
70N/A#
70N/A# When distributing Covered Code, include this CDDL HEADER in each
70N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
70N/A# If applicable, add the following below this CDDL HEADER, with the
70N/A# fields enclosed by brackets "[]" replaced with your own identifying
70N/A# information: Portions Copyright [yyyy] [name of copyright owner]
70N/A#
70N/A# CDDL HEADER END
70N/A#
70N/A# Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
70N/A#
70N/Ainclude ../../make-rules/shared-macros.mk
70N/A
70N/ACOMPONENT_NAME= openssh
70N/ACOMPONENT_VERSION= 6.5p1
70N/AHUMAN_VERSION= $(COMPONENT_VERSION)
70N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
70N/A
70N/A# Version for IPS. The encoding rules are:
70N/A# OpenSSH <x>.<y>p<n> => IPS <x>.<y>.0.<n>
70N/A# OpenSSH <x>.<y>.<z>p<n> => IPS <x>.<y>.<z>.<n>
70N/AIPS_COMPONENT_VERSION= 6.5.0.1
70N/A
70N/ACOMPONENT_PROJECT_URL= http://www.openssh.org/
70N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
70N/ACOMPONENT_ARCHIVE_HASH= sha256:a1195ed55db945252d5a1730d4a2a2a5c1c9a6aa01ef2e5af750a962623d9027
70N/ACOMPONENT_ARCHIVE_URL= http://mirror.team-cymru.org/pub/OpenBSD/OpenSSH/portable/$(COMPONENT_ARCHIVE)
70N/ACOMPONENT_BUGDB=utility/openssh
70N/A
70N/Ainclude ../../make-rules/prep.mk
70N/Ainclude ../../make-rules/configure.mk
70N/Ainclude ../../make-rules/ips.mk
70N/A
70N/A# Enable ASLR for this component
70N/AASLR_MODE = $(ASLR_ENABLE)
70N/A
70N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS) -DSET_USE_PAM -DDEPRECATE_SUNSSH_OPT -DLASTLOG_FIX -DKRB5_BUILD_FIX -DAUE_openssh=6172 -DDTRACE_SFTP"
70N/A
70N/A# We need to disable lazyloading of dynamic dependent libraries. During the
70N/A# pre-authentication phase, sshd will chroot to /var/empty which doesn't
70N/A# contain any files. If we use lazyloading, sshd will fail to find any
70N/A# libraries that it needs.
70N/ACONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS) -B direct -z nolazyload"
70N/A
70N/A# Build with BSM audit. Do not check if getaudit and getaudit_addr are in
70N/A# libbsm, because they are no longer in libbsm and not needed any way.
70N/ACONFIGURE_OPTIONS += --with-audit=bsm
70N/ACONFIGURE_OPTIONS += "ac_cv_lib_bsm_getaudit=yes"
70N/ACONFIGURE_OPTIONS += "ac_cv_func_getaudit=yes"
CONFIGURE_OPTIONS += "ac_cv_func_getaudit_addr=yes"
CONFIGURE_OPTIONS += --with-libedit
CONFIGURE_OPTIONS += --with-kerberos5
CONFIGURE_OPTIONS += --with-pam
CONFIGURE_OPTIONS += --with-sandbox=no
CONFIGURE_OPTIONS += --with-solaris-contracts
CONFIGURE_OPTIONS += --with-solaris-projects
CONFIGURE_OPTIONS += --with-tcp-wrappers
CONFIGURE_OPTIONS += --with-4in6
CONFIGURE_OPTIONS += --enable-strip=no
CONFIGURE_OPTIONS += --without-rpath
CONFIGURE_OPTIONS += --libexecdir=/usr/lib/ssh
CONFIGURE_OPTIONS += --sbindir=/usr/lib/ssh
CONFIGURE_OPTIONS += --sysconfdir=/etc/ssh
# Copy the sftp dtrace provider file and the header file to source directory
COMPONENT_PRE_BUILD_ACTION = \
( echo "Copying dtrace sftp files..."; \
$(LN) -fs $(COMPONENT_DIR)/dtrace_sftp/*.[dh] $(SOURCE_DIR); \
)
# common targets
build: $(BUILD_32)
install: $(INSTALL_32)
# Because of certain set up requirement, the regress test suite is ported to
# the STC gate.
test: $(NO_TESTS)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk