Makefile revision 3431
0N/A#
0N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
0N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
0N/A# CDDL HEADER END
0N/A#
0N/A# Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
0N/A#
0N/Ainclude ../../make-rules/shared-macros.mk
0N/A
0N/ACOMPONENT_NAME= openssh
0N/ACOMPONENT_VERSION= 6.5p1
0N/AHUMAN_VERSION= $(COMPONENT_VERSION)
0N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
0N/A
0N/A# Version for IPS. The encoding rules are:
0N/A# OpenSSH <x>.<y>p<n> => IPS <x>.<y>.0.<n>
0N/A# OpenSSH <x>.<y>.<z>p<n> => IPS <x>.<y>.<z>.<n>
0N/AIPS_COMPONENT_VERSION= 6.5.0.1
0N/A
0N/ACOMPONENT_PROJECT_URL= http://www.openssh.org/
0N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
0N/ACOMPONENT_ARCHIVE_HASH= sha256:a1195ed55db945252d5a1730d4a2a2a5c1c9a6aa01ef2e5af750a962623d9027
0N/ACOMPONENT_ARCHIVE_URL= http://mirror.team-cymru.org/pub/OpenBSD/OpenSSH/portable/$(COMPONENT_ARCHIVE)
0N/ACOMPONENT_BUGDB=utility/openssh
0N/A
0N/ATPNO= 16633
0N/A
0N/Ainclude ../../make-rules/prep.mk
0N/Ainclude ../../make-rules/configure.mk
0N/Ainclude ../../make-rules/ips.mk
0N/A
0N/A# Enable ASLR for this component
0N/AASLR_MODE = $(ASLR_ENABLE)
0N/A
0N/ACFLAGS += -DSET_USE_PAM
0N/ACFLAGS += -DDEPRECATE_SUNSSH_OPT
0N/ACFLAGS += -DKRB5_BUILD_FIX
0N/ACFLAGS += -DAUE_openssh=6172
0N/ACFLAGS += -DDTRACE_SFTP
0N/ACFLAGS += -DDISABLE_BANNER
0N/ACFLAGS += -DPAM_ENHANCEMENT
0N/ACFLAGS += -DPAM_BUGFIX
0N/ACFLAGS += -DOPTION_DEFAULT_VALUE
0N/A
0N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
0N/A
0N/A# We need to disable lazyloading of dynamic dependent libraries. During the
0N/A# pre-authentication phase, sshd will chroot to /var/empty which doesn't
0N/A# contain any files. If we use lazyloading, sshd will fail to find any
0N/A# libraries that it needs.
0N/ALDFLAGS += -B direct -z nolazyload
0N/A
0N/A# Just $(BUILD_64) option was not propogating the 64 bit flags to all the
0N/A# necessary places. Hence the -m64 option is added to LDFLAGS for
0N/A# CONFIGURE_OPTIONS.64.
0N/ACONFIGURE_OPTIONS.64 += LDFLAGS="$(LDFLAGS) -m64"
0N/A
0N/A# Build with BSM audit. Do not check if getaudit and getaudit_addr are in
0N/A# libbsm, because they are no longer in libbsm and not needed any way.
0N/ACONFIGURE_OPTIONS += --with-audit=bsm
0N/ACONFIGURE_OPTIONS += "ac_cv_lib_bsm_getaudit=yes"
0N/ACONFIGURE_OPTIONS += "ac_cv_func_getaudit=yes"
0N/ACONFIGURE_OPTIONS += "ac_cv_func_getaudit_addr=yes"
0N/A
0N/ACONFIGURE_OPTIONS += --with-libedit
0N/ACONFIGURE_OPTIONS += --with-kerberos5
0N/ACONFIGURE_OPTIONS += --with-pam
0N/ACONFIGURE_OPTIONS += --with-sandbox=no
0N/ACONFIGURE_OPTIONS += --with-solaris-contracts
0N/ACONFIGURE_OPTIONS += --with-solaris-projects
0N/ACONFIGURE_OPTIONS += --with-tcp-wrappers
0N/ACONFIGURE_OPTIONS += --with-4in6
0N/ACONFIGURE_OPTIONS += --enable-strip=no
0N/ACONFIGURE_OPTIONS += --without-rpath
0N/ACONFIGURE_OPTIONS += --libexecdir=/usr/lib/ssh
CONFIGURE_OPTIONS += --sbindir=/usr/lib/ssh
CONFIGURE_OPTIONS += --sysconfdir=/etc/ssh
CONFIGURE_OPTIONS += --disable-lastlog
# 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_64)
install: $(INSTALL_64)
# 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