Makefile revision 3930
5895N/A#
5895N/A# CDDL HEADER START
5895N/A#
5895N/A# The contents of this file are subject to the terms of the
5895N/A# Common Development and Distribution License (the "License").
5895N/A# You may not use this file except in compliance with the License.
5895N/A#
5895N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5895N/A# or http://www.opensolaris.org/os/licensing.
5895N/A# See the License for the specific language governing permissions
5895N/A# and limitations under the License.
5895N/A#
5895N/A# When distributing Covered Code, include this CDDL HEADER in each
5895N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5895N/A# If applicable, add the following below this CDDL HEADER, with the
5895N/A# fields enclosed by brackets "[]" replaced with your own identifying
5895N/A# information: Portions Copyright [yyyy] [name of copyright owner]
5895N/A#
5895N/A# CDDL HEADER END
5895N/A#
5895N/A# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
5895N/A#
5895N/Ainclude ../../make-rules/shared-macros.mk
5895N/A
5895N/ACOMPONENT_NAME= openssh
5895N/ACOMPONENT_VERSION= 6.5p1
5895N/AHUMAN_VERSION= $(COMPONENT_VERSION)
6869N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
6869N/A
6869N/A# Version for IPS. The encoding rules are:
5895N/A# OpenSSH <x>.<y>p<n> => IPS <x>.<y>.0.<n>
5895N/A# OpenSSH <x>.<y>.<z>p<n> => IPS <x>.<y>.<z>.<n>
5895N/AIPS_COMPONENT_VERSION= 6.5.0.1
5895N/A
6125N/ACOMPONENT_PROJECT_URL= http://www.openssh.org/
5895N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
5895N/ACOMPONENT_ARCHIVE_HASH= sha256:a1195ed55db945252d5a1730d4a2a2a5c1c9a6aa01ef2e5af750a962623d9027
5895N/ACOMPONENT_ARCHIVE_URL= http://mirror.team-cymru.org/pub/OpenBSD/OpenSSH/portable/$(COMPONENT_ARCHIVE)
5895N/ACOMPONENT_BUGDB=utility/openssh
5895N/A
5895N/ATPNO_OPENSSH= 16633
5895N/ATPNO_GSSKEX= 20377
5895N/A
5895N/Ainclude $(WS_MAKE_RULES)/prep.mk
5895N/Ainclude $(WS_MAKE_RULES)/configure.mk
5895N/Ainclude $(WS_MAKE_RULES)/ips.mk
6255N/A
6255N/A# Enable ASLR for this component
6255N/AASLR_MODE = $(ASLR_ENABLE)
6255N/A
6255N/ACOMPILER= gcc
6255N/A
6255N/ACFLAGS += -DSET_USE_PAM
5895N/ACFLAGS += -DDEPRECATE_SUNSSH_OPT
5895N/ACFLAGS += -DKRB5_BUILD_FIX
5895N/ACFLAGS += -DDTRACE_SFTP
5895N/ACFLAGS += -DDISABLE_BANNER
5895N/ACFLAGS += -DPAM_ENHANCEMENT
5895N/ACFLAGS += -DPAM_BUGFIX
5895N/ACFLAGS += -DOPTION_DEFAULT_VALUE
5895N/A
5895N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
5895N/A
5895N/A# We need to disable lazyloading of dynamic dependent libraries. During the
5895N/A# pre-authentication phase, sshd will chroot to /var/empty which doesn't
5895N/A# contain any files. If we use lazyloading, sshd will fail to find any
5895N/A# libraries that it needs.
5895N/ALDFLAGS += -B direct -z nolazyload
5895N/A
5895N/A# Just $(BUILD_64) option was not propogating the 64 bit flags to all the
5895N/A# necessary places. Hence the -m64 option is added to LDFLAGS for
5895N/A# CONFIGURE_OPTIONS.64.
5895N/ACONFIGURE_OPTIONS.64 += LDFLAGS="$(LDFLAGS) -m64"
5895N/A
5895N/ACONFIGURE_OPTIONS += --with-audit=solaris
6125N/ACONFIGURE_OPTIONS += --with-libedit
5895N/ACONFIGURE_OPTIONS += --with-kerberos5
5895N/ACONFIGURE_OPTIONS += --with-pam
5895N/ACONFIGURE_OPTIONS += --with-sandbox=no
6125N/ACONFIGURE_OPTIONS += --with-solaris-contracts
CONFIGURE_OPTIONS += --with-solaris-projects
CONFIGURE_OPTIONS += --with-tcp-wrappers
CONFIGURE_OPTIONS += --with-4in6
CONFIGURE_OPTIONS += --enable-strip=no
CONFIGURE_OPTIONS += --without-rpath
CONFIGURE_OPTIONS += --libexecdir=/usr/lib/ssh
CONFIGURE_OPTIONS += --sbindir=/usr/lib/ssh
CONFIGURE_OPTIONS += --sysconfdir=/etc/ssh
CONFIGURE_OPTIONS += --bindir=/usr/bin
CONFIGURE_OPTIONS += --disable-lastlog
# Copy the sftp dtrace provider file and the header file to source directory
COMPONENT_PRE_BUILD_ACTION = \
( echo "Copying dtrace sftp files..."; \
$(LN) -fs $(COMPONENT_DIR)/dtrace_sftp/*.[dh] $(SOURCE_DIR); \
)
# Copy source files that are not yet part of a patch
COMPONENT_PREP_ACTION += ($(CP) sources/*.c $(@D)/)
# common targets
configure: $(CONFIGURE_64)
build: $(BUILD_64)
install: $(INSTALL_64)
# 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