Makefile revision 2247
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#
2247N/A# Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
2247N/A#
2247N/Ainclude ../../make-rules/shared-macros.mk
2247N/A
2247N/ACOMPONENT_NAME= openssh
2247N/ACOMPONENT_VERSION= 6.0
2247N/ACOMPONENT_PORTABLE_VERSION = $(COMPONENT_VERSION)p1
2247N/ACOMPONENT_PROJECT_URL= http://www.openssh.org/
2247N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_PORTABLE_VERSION)
2247N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
2247N/ACOMPONENT_ARCHIVE_HASH= sha256:589d48e952d6c017e667873486b5df63222f9133d417d0002bd6429d9bd882de
2247N/ACOMPONENT_ARCHIVE_URL= http://mirror.team-cymru.org/pub/OpenBSD/OpenSSH/portable/$(COMPONENT_ARCHIVE)
2247N/ACOMPONENT_BUGDB=utility/openssh
2247N/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
2247N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS) -DSET_USE_PAM -DDEPRECATE_SUNSSH_OPT -DLASTLOG_FIX -DKRB5_BUILD_FIX -DAUE_openssh=6172"
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
2247N/ACONFIGURE_OPTIONS += --with-audit=bsm
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
2247N/ACONFIGURE_OPTIONS += --libexecdir=/usr/lib/ssh
2247N/ACONFIGURE_OPTIONS += --sbindir=/usr/lib/ssh
2247N/ACONFIGURE_OPTIONS += --sysconfdir=/etc/ssh
2247N/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