Makefile revision 5821
86N/A#
86N/A# CDDL HEADER START
86N/A#
86N/A# The contents of this file are subject to the terms of the
86N/A# Common Development and Distribution License (the "License").
86N/A# You may not use this file except in compliance with the License.
86N/A#
86N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
86N/A# or http://www.opensolaris.org/os/licensing.
86N/A# See the License for the specific language governing permissions
86N/A# and limitations under the License.
86N/A#
86N/A# When distributing Covered Code, include this CDDL HEADER in each
86N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
86N/A# If applicable, add the following below this CDDL HEADER, with the
86N/A# fields enclosed by brackets "[]" replaced with your own identifying
86N/A# information: Portions Copyright [yyyy] [name of copyright owner]
86N/A#
86N/A# CDDL HEADER END
86N/A#
86N/A
3817N/A#
86N/A# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
86N/A#
86N/ABUILD_BITS= 64
86N/ACOMPILER= gcc
86N/Ainclude ../../make-rules/shared-macros.mk
618N/A
86N/ACOMPONENT_NAME= openssh
86N/ACOMPONENT_VERSION= 7.2p2
844N/AHUMAN_VERSION= $(COMPONENT_VERSION)
844N/A
86N/A# Version for IPS. The encoding rules are:
1258N/A# OpenSSH <x>.<y>p<n> => IPS <x>.<y>.0.<n>
86N/A# OpenSSH <x>.<y>.<z>p<n> => IPS <x>.<y>.<z>.<n>
2899N/AIPS_COMPONENT_VERSION= 7.2.0.2
2899N/A
86N/ACOMPONENT_PROJECT_URL= http://www.openssh.org/
86N/ACOMPONENT_ARCHIVE_HASH= sha256:a72781d1a043876a224ff1b0032daa4094d87565a68528759c1c2cab5482548c
86N/ACOMPONENT_ARCHIVE_URL= http://mirrors.sonic.net/pub/OpenBSD/OpenSSH/portable/$(COMPONENT_ARCHIVE)
86N/A
86N/ATPNO_OPENSSH= 26419
3817N/ATPNO_GSSKEX= 20377
3817N/A
2123N/A# Because of set up requirements, test suite is in stc gate.
1938N/ATEST_TARGET= $(SKIP_TEST)
1938N/A
86N/A# 11.3 has conflicts with ON's SunSSH package, which had not yet added
86N/A# mediated links, thus cannot be updated to.
86N/Aifeq ($(BUILD_TYPE), evaluation)
86N/ABUILD_64=
86N/AINSTALL_64=
86N/APUBLISH_STAMP=
86N/Aendif
86N/A
181N/Ainclude $(WS_MAKE_RULES)/common.mk
86N/A
4337N/ACFLAGS += -DSET_USE_PAM
4337N/ACFLAGS += -DDEPRECATE_SUNSSH_OPT
88N/ACFLAGS += -DKRB5_BUILD_FIX
88N/ACFLAGS += -DDTRACE_SFTP
88N/ACFLAGS += -DDISABLE_BANNER
CFLAGS += -DPAM_ENHANCEMENT
CFLAGS += -DPAM_BUGFIX
CFLAGS += -DOPTION_DEFAULT_VALUE
CFLAGS += -DWITHOUT_ED25519
CFLAGS += -DPER_SESSION_XAUTHFILE
CFLAGS += -DWITHOUT_CAST128
CFLAGS += -DENABLE_OPENSSL_FIPS
# We need to disable lazyloading of dynamic dependent libraries. During the
# pre-authentication phase, sshd will chroot to /var/empty which doesn't
# contain any files. If we use lazyloading, sshd will fail to find any
# libraries that it needs.
LDFLAGS += $(LD_B_DIRECT) -z nolazyload
# Enable nxheap and nxstack security extensions
LDFLAGS += -z nxheap=enable -z nxstack=enable
# Fix 64-bit linking via compiler.
LDFLAGS += $(CC_BITS)
CONFIGURE_OPTIONS += --with-audit=solaris
CONFIGURE_OPTIONS += --with-libedit
CONFIGURE_OPTIONS += --with-kerberos5
CONFIGURE_OPTIONS += --with-pam
CONFIGURE_OPTIONS += --with-sandbox=no
CONFIGURE_OPTIONS += --with-solaris-contracts
CONFIGURE_OPTIONS += --with-tcp-wrappers
CONFIGURE_OPTIONS += --with-4in6
CONFIGURE_OPTIONS += --with-xauth=$(USRBINDIR)/xauth
CONFIGURE_OPTIONS += --disable-strip
CONFIGURE_OPTIONS += --without-rpath
CONFIGURE_OPTIONS += --libexecdir=$(USRLIBDIR)/ssh
CONFIGURE_OPTIONS += --sbindir=$(USRLIBDIR)/ssh
CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)/ssh
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 Solaris specific source files and generate configuration script
COMPONENT_PREP_ACTION += \
( $(CP) sources/moduli sources/*.c $(@D)/; \
cd $(@D); autoconf; \
)
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/gcc/gcc-c-runtime
REQUIRED_PACKAGES += system/library/security/gss
REQUIRED_PACKAGES += system/network
REQUIRED_PACKAGES += text/groff/groff-core