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