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