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