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