Makefile revision 5308
5321N/A#
5321N/A# CDDL HEADER START
5321N/A#
5321N/A# The contents of this file are subject to the terms of the
5321N/A# Common Development and Distribution License (the "License").
5321N/A# You may not use this file except in compliance with the License.
5321N/A#
5321N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5321N/A# or http://www.opensolaris.org/os/licensing.
5321N/A# See the License for the specific language governing permissions
5321N/A# and limitations under the License.
5321N/A#
5321N/A# When distributing Covered Code, include this CDDL HEADER in each
5321N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5321N/A# If applicable, add the following below this CDDL HEADER, with the
5321N/A# fields enclosed by brackets "[]" replaced with your own identifying
5321N/A# information: Portions Copyright [yyyy] [name of copyright owner]
5321N/A#
5321N/A# CDDL HEADER END
5321N/A#
5680N/A# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
5680N/A#
5323N/Ainclude ../../make-rules/shared-macros.mk
5321N/A
5321N/ACOMPONENT_NAME= openssh
5641N/ACOMPONENT_VERSION= 7.1p2
5814N/AHUMAN_VERSION= $(COMPONENT_VERSION)
5321N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
5348N/A
5348N/A# Version for IPS. The encoding rules are:
5348N/A# OpenSSH <x>.<y>p<n> => IPS <x>.<y>.0.<n>
5641N/A# OpenSSH <x>.<y>.<z>p<n> => IPS <x>.<y>.<z>.<n>
5348N/AIPS_COMPONENT_VERSION= 7.1.0.1
6662N/A
6662N/ACOMPONENT_PROJECT_URL= http://www.openssh.org/
6662N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
6662N/ACOMPONENT_ARCHIVE_HASH= sha256:dd75f024dcf21e06a0d6421d582690bf987a1f6323e32ad6619392f3bfde6bbd
5321N/ACOMPONENT_ARCHIVE_URL= http://mirror.team-cymru.org/pub/OpenBSD/OpenSSH/portable/$(COMPONENT_ARCHIVE)
6662N/ACOMPONENT_BUGDB=utility/openssh
6662N/A
6662N/ATPNO_OPENSSH= 26419
5321N/ATPNO_GSSKEX= 20377
5321N/A
6662N/Ainclude $(WS_MAKE_RULES)/prep.mk
5641N/Ainclude $(WS_MAKE_RULES)/configure.mk
5641N/Ainclude $(WS_MAKE_RULES)/ips.mk
5641N/A
5641N/A# Enable ASLR for this component
5641N/AASLR_MODE = $(ASLR_ENABLE)
5641N/A
5641N/ACOMPILER= gcc
5641N/A
5641N/ACFLAGS += -DSET_USE_PAM
5641N/ACFLAGS += -DDEPRECATE_SUNSSH_OPT
5321N/ACFLAGS += -DKRB5_BUILD_FIX
5641N/ACFLAGS += -DDTRACE_SFTP
5641N/ACFLAGS += -DDISABLE_BANNER
5641N/ACFLAGS += -DPAM_ENHANCEMENT
5641N/ACFLAGS += -DPAM_BUGFIX
5641N/ACFLAGS += -DOPTION_DEFAULT_VALUE
5641N/ACFLAGS += -DWITHOUT_ED25519
5641N/ACFLAGS += -DPER_SESSION_XAUTHFILE
5641N/ACFLAGS += -DWITHOUT_CAST128
5641N/ACFLAGS += -DENABLE_OPENSSL_FIPS
5641N/A
5641N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
5641N/A
5641N/A# We need to disable lazyloading of dynamic dependent libraries. During the
5641N/A# pre-authentication phase, sshd will chroot to /var/empty which doesn't
5641N/A# contain any files. If we use lazyloading, sshd will fail to find any
5641N/A# libraries that it needs.
5641N/ALDFLAGS += -B direct -z nolazyload
5321N/A
5321N/A# Enable nxheap and nxstack security extensions
5321N/ALDFLAGS += -z nxheap=enable -z nxstack=enable
5321N/A
5321N/A# Just $(BUILD_64) option was not propogating the 64 bit flags to all the
5353N/A# necessary places. Hence the -m64 option is added to LDFLAGS for
5353N/A# CONFIGURE_OPTIONS.64.
5353N/ACONFIGURE_OPTIONS.64 += LDFLAGS="$(LDFLAGS) -m64"
5321N/A
5321N/ACONFIGURE_OPTIONS += --with-audit=solaris
5641N/ACONFIGURE_OPTIONS += --with-libedit
5641N/ACONFIGURE_OPTIONS += --with-kerberos5
5641N/ACONFIGURE_OPTIONS += --with-pam
5641N/ACONFIGURE_OPTIONS += --with-sandbox=no
5641N/ACONFIGURE_OPTIONS += --with-solaris-contracts
5641N/ACONFIGURE_OPTIONS += --with-tcp-wrappers
5321N/ACONFIGURE_OPTIONS += --with-4in6
5321N/ACONFIGURE_OPTIONS += --with-xauth=/usr/bin/xauth
5321N/ACONFIGURE_OPTIONS += --enable-strip=no
5321N/ACONFIGURE_OPTIONS += --without-rpath
5321N/ACONFIGURE_OPTIONS += --libexecdir=/usr/lib/ssh
5321N/ACONFIGURE_OPTIONS += --sbindir=/usr/lib/ssh
5321N/ACONFIGURE_OPTIONS += --sysconfdir=/etc/ssh
5321N/ACONFIGURE_OPTIONS += --bindir=/usr/bin
5321N/ACONFIGURE_OPTIONS += --disable-lastlog
5321N/A
5348N/A# Copy the sftp dtrace provider file and the header file to source directory
5321N/ACOMPONENT_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)
system-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/gcc-c-runtime
REQUIRED_PACKAGES += system/library/security/gss
REQUIRED_PACKAGES += text/groff/groff-core