Makefile revision 5641
195N/A#
195N/A# CDDL HEADER START
195N/A#
195N/A# The contents of this file are subject to the terms of the
195N/A# Common Development and Distribution License (the "License").
195N/A# You may not use this file except in compliance with the License.
195N/A#
195N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
195N/A# or http://www.opensolaris.org/os/licensing.
195N/A# See the License for the specific language governing permissions
195N/A# and limitations under the License.
195N/A#
195N/A# When distributing Covered Code, include this CDDL HEADER in each
195N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
195N/A# If applicable, add the following below this CDDL HEADER, with the
195N/A# fields enclosed by brackets "[]" replaced with your own identifying
195N/A# information: Portions Copyright [yyyy] [name of copyright owner]
195N/A#
195N/A# CDDL HEADER END
195N/A#
5680N/A# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
5680N/A#
5663N/Ainclude ../../make-rules/shared-macros.mk
195N/A
5680N/ACOMPONENT_NAME= openssh
5680N/ACOMPONENT_VERSION= 7.1p2
195N/AHUMAN_VERSION= $(COMPONENT_VERSION)
195N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
195N/A
5663N/A# Version for IPS. The encoding rules are:
618N/A# OpenSSH <x>.<y>p<n> => IPS <x>.<y>.0.<n>
195N/A# OpenSSH <x>.<y>.<z>p<n> => IPS <x>.<y>.<z>.<n>
844N/AIPS_COMPONENT_VERSION= 7.1.0.2
5663N/A
195N/ACOMPONENT_PROJECT_URL= http://www.openssh.org/
195N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
778N/ACOMPONENT_ARCHIVE_HASH= sha256:dd75f024dcf21e06a0d6421d582690bf987a1f6323e32ad6619392f3bfde6bbd
778N/ACOMPONENT_ARCHIVE_URL= http://mirror.team-cymru.org/pub/OpenBSD/OpenSSH/portable/$(COMPONENT_ARCHIVE)
844N/ACOMPONENT_BUGDB=utility/openssh
5663N/A
778N/ATPNO_OPENSSH= 26419
778N/ATPNO_GSSKEX= 20377
5663N/A
2899N/Ainclude $(WS_MAKE_RULES)/prep.mk
5680N/Ainclude $(WS_MAKE_RULES)/configure.mk
5680N/A
5680N/A# 11.3 has conflicts with ON's SunSSH package, which had not yet added
3902N/A# mediated links, thus cannot be updated to.
1845N/Aifeq ($(BUILD_TYPE), evaluation)
5680N/ABUILD_64=
5680N/AINSTALL_64=
5680N/APUBLISH_STAMP=
5680N/Aendif
1845N/A
1845N/Ainclude $(WS_MAKE_RULES)/ips.mk
195N/A
195N/A# Enable ASLR for this component
195N/AASLR_MODE = $(ASLR_ENABLE)
195N/A
5123N/ACOMPILER= gcc
5123N/A
195N/ACFLAGS += -DSET_USE_PAM
3040N/ACFLAGS += -DDEPRECATE_SUNSSH_OPT
3040N/ACFLAGS += -DKRB5_BUILD_FIX
3040N/ACFLAGS += -DDTRACE_SFTP
3040N/ACFLAGS += -DDISABLE_BANNER
1789N/ACFLAGS += -DPAM_ENHANCEMENT
3040N/ACFLAGS += -DPAM_BUGFIX
3040N/ACFLAGS += -DOPTION_DEFAULT_VALUE
3040N/ACFLAGS += -DWITHOUT_ED25519
3040N/ACFLAGS += -DPER_SESSION_XAUTHFILE
3040N/ACFLAGS += -DWITHOUT_CAST128
3643N/ACFLAGS += -DENABLE_OPENSSL_FIPS
3643N/A
3643N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
5663N/A
3643N/A# We need to disable lazyloading of dynamic dependent libraries. During the
3643N/A# pre-authentication phase, sshd will chroot to /var/empty which doesn't
4735N/A# contain any files. If we use lazyloading, sshd will fail to find any
4735N/A# libraries that it needs.
4735N/ALDFLAGS += -B direct -z nolazyload
4735N/A
4735N/A# Enable nxheap and nxstack security extensions
4735N/ALDFLAGS += -z nxheap=enable -z nxstack=enable
4735N/A
4735N/A# Just $(BUILD_64) option was not propogating the 64 bit flags to all the
4735N/A# necessary places. Hence the -m64 option is added to LDFLAGS for
4735N/A# CONFIGURE_OPTIONS.64.
4735N/ACONFIGURE_OPTIONS.64 += LDFLAGS="$(LDFLAGS) -m64"
4735N/A
4735N/ACONFIGURE_OPTIONS += --with-audit=solaris
3643N/ACONFIGURE_OPTIONS += --with-libedit
5680N/ACONFIGURE_OPTIONS += --with-kerberos5
3883N/ACONFIGURE_OPTIONS += --with-pam
195N/ACONFIGURE_OPTIONS += --with-sandbox=no
3817N/ACONFIGURE_OPTIONS += --with-solaris-contracts
3817N/ACONFIGURE_OPTIONS += --with-tcp-wrappers
3902N/ACONFIGURE_OPTIONS += --with-4in6
3902N/ACONFIGURE_OPTIONS += --with-xauth=/usr/bin/xauth
3817N/ACONFIGURE_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)
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/core-os
REQUIRED_PACKAGES += system/library
REQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
REQUIRED_PACKAGES += system/library/security/gss
REQUIRED_PACKAGES += system/network
REQUIRED_PACKAGES += text/groff/groff-core