Makefile revision 3431
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
6510N/ACOMPONENT_VERSION= 6.5p1
6510N/AHUMAN_VERSION= $(COMPONENT_VERSION)
6510N/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>
6510N/A# OpenSSH <x>.<y>.<z>p<n> => IPS <x>.<y>.<z>.<n>
5432N/AIPS_COMPONENT_VERSION= 6.5.0.1
6510N/A
6510N/ACOMPONENT_PROJECT_URL= http://www.openssh.org/
6510N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
5432N/ACOMPONENT_ARCHIVE_HASH= sha256:a1195ed55db945252d5a1730d4a2a2a5c1c9a6aa01ef2e5af750a962623d9027
6510N/ACOMPONENT_ARCHIVE_URL= http://mirror.team-cymru.org/pub/OpenBSD/OpenSSH/portable/$(COMPONENT_ARCHIVE)
5432N/ACOMPONENT_BUGDB=utility/openssh
5432N/A
6510N/ATPNO= 16633
5432N/A
5432N/Ainclude ../../make-rules/prep.mk
6510N/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
6510N/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)"
5456N/A
5456N/A# We need to disable lazyloading of dynamic dependent libraries. During the
5456N/A# pre-authentication phase, sshd will chroot to /var/empty which doesn't
6510N/A# contain any files. If we use lazyloading, sshd will fail to find any
6510N/A# libraries that it needs.
6510N/ALDFLAGS += -B direct -z nolazyload
5456N/A
5456N/A# Just $(BUILD_64) option was not propogating the 64 bit flags to all the
6510N/A# necessary places. Hence the -m64 option is added to LDFLAGS for
6510N/A# CONFIGURE_OPTIONS.64.
6510N/ACONFIGURE_OPTIONS.64 += LDFLAGS="$(LDFLAGS) -m64"
6510N/A
5680N/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"
6510N/ACONFIGURE_OPTIONS += "ac_cv_func_getaudit_addr=yes"
5432N/A
6510N/ACONFIGURE_OPTIONS += --with-libedit
6510N/ACONFIGURE_OPTIONS += --with-kerberos5
6510N/ACONFIGURE_OPTIONS += --with-pam
5680N/ACONFIGURE_OPTIONS += --with-sandbox=no
5680N/ACONFIGURE_OPTIONS += --with-solaris-contracts
5432N/ACONFIGURE_OPTIONS += --with-solaris-projects
6510N/ACONFIGURE_OPTIONS += --with-tcp-wrappers
6510N/ACONFIGURE_OPTIONS += --with-4in6
6510N/ACONFIGURE_OPTIONS += --enable-strip=no
6510N/ACONFIGURE_OPTIONS += --without-rpath
6510N/ACONFIGURE_OPTIONS += --libexecdir=/usr/lib/ssh
6510N/ACONFIGURE_OPTIONS += --sbindir=/usr/lib/ssh
6510N/ACONFIGURE_OPTIONS += --sysconfdir=/etc/ssh
6510N/ACONFIGURE_OPTIONS += --disable-lastlog
6510N/A
6510N/A# Copy the sftp dtrace provider file and the header file to source directory
6510N/ACOMPONENT_PRE_BUILD_ACTION = \
6510N/A ( echo "Copying dtrace sftp files..."; \
6510N/A $(LN) -fs $(COMPONENT_DIR)/dtrace_sftp/*.[dh] $(SOURCE_DIR); \
6510N/A )
6510N/A
6510N/A# common targets
6510N/Abuild: $(BUILD_64)
6510N/A
6510N/Ainstall: $(INSTALL_64)
6510N/A
6510N/A# Because of certain set up requirement, the regress test suite is ported to
6510N/A# the STC gate.
6510N/Atest: $(NO_TESTS)
6510N/A
6510N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
6510N/A
6510N/Ainclude ../../make-rules/depend.mk
6510N/A