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