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