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