2247N/A#
2247N/A# CDDL HEADER START
2247N/A#
2247N/A# The contents of this file are subject to the terms of the
2247N/A# Common Development and Distribution License (the "License").
2247N/A# You may not use this file except in compliance with the License.
2247N/A#
2247N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2247N/A# or http://www.opensolaris.org/os/licensing.
2247N/A# See the License for the specific language governing permissions
2247N/A# and limitations under the License.
2247N/A#
2247N/A# When distributing Covered Code, include this CDDL HEADER in each
2247N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2247N/A# If applicable, add the following below this CDDL HEADER, with the
2247N/A# fields enclosed by brackets "[]" replaced with your own identifying
2247N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2247N/A#
2247N/A# CDDL HEADER END
2247N/A#
5680N/A
5680N/A#
5306N/A# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
2247N/A#
5680N/ABUILD_BITS= 64
5680N/ACOMPILER= gcc
2247N/Ainclude ../../make-rules/shared-macros.mk
2247N/A
2247N/ACOMPONENT_NAME= openssh
6928N/ACOMPONENT_VERSION= 7.3p1
2276N/AHUMAN_VERSION= $(COMPONENT_VERSION)
2276N/A
2276N/A# Version for IPS. The encoding rules are:
2276N/A# OpenSSH <x>.<y>p<n> => IPS <x>.<y>.0.<n>
2276N/A# OpenSSH <x>.<y>.<z>p<n> => IPS <x>.<y>.<z>.<n>
6928N/AIPS_COMPONENT_VERSION= 7.3.0.1
2276N/A
2276N/ACOMPONENT_PROJECT_URL= http://www.openssh.org/
6928N/ACOMPONENT_ARCHIVE_HASH= sha256:3ffb989a6dcaa69594c3b550d4855a5a2e1718ccdde7f5e36387b424220fbecc
5821N/ACOMPONENT_ARCHIVE_URL= http://mirrors.sonic.net/pub/OpenBSD/OpenSSH/portable/$(COMPONENT_ARCHIVE)
2247N/A
6928N/ATPNO_OPENSSH= 30602
3574N/ATPNO_GSSKEX= 20377
2899N/A
5680N/A# Because of set up requirements, test suite is in stc gate.
5680N/ATEST_TARGET= $(SKIP_TEST)
5528N/A
5528N/A# 11.3 has conflicts with ON's SunSSH package, which had not yet added
5528N/A# mediated links, thus cannot be updated to.
5528N/Aifeq ($(BUILD_TYPE), evaluation)
5528N/ABUILD_64=
5528N/AINSTALL_64=
5528N/APUBLISH_STAMP=
5528N/Aendif
5528N/A
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
3930N/A
3142N/ACFLAGS += -DSET_USE_PAM
3142N/ACFLAGS += -DDEPRECATE_SUNSSH_OPT
3142N/ACFLAGS += -DKRB5_BUILD_FIX
3142N/ACFLAGS += -DDTRACE_SFTP
3142N/ACFLAGS += -DDISABLE_BANNER
3142N/ACFLAGS += -DPAM_ENHANCEMENT
3142N/ACFLAGS += -DPAM_BUGFIX
3142N/ACFLAGS += -DOPTION_DEFAULT_VALUE
4742N/ACFLAGS += -DPER_SESSION_XAUTHFILE
6928N/ACFLAGS += -DOPENSSL_NO_CAST
5308N/ACFLAGS += -DENABLE_OPENSSL_FIPS
6928N/ACFLAGS += -DOPENSSL_NO_RC4
6541N/ACFLAGS += -DWITHOUT_HMAC_MD5
3142N/A
2247N/A# We need to disable lazyloading of dynamic dependent libraries. During the
2247N/A# pre-authentication phase, sshd will chroot to /var/empty which doesn't
2247N/A# contain any files. If we use lazyloading, sshd will fail to find any
2247N/A# libraries that it needs.
5680N/ALDFLAGS += $(LD_B_DIRECT) -z nolazyload
3431N/A
7243N/A# Enable adiheap and adistack security extensions
7243N/AADIHEAP_MODE = $(ADIHEAP_ENABLE)
7243N/AADISTACK_MODE = $(ADISTACK_ENABLE)
7243N/A
7243N/A# Build PIE
7243N/ACC_PIC_MODE = $(CC_PIC_ENABLE)
7243N/ALD_Z_PIE_MODE = $(LD_Z_PIE_ENABLE)
5161N/A
5680N/A# Fix 64-bit linking via compiler.
5680N/ALDFLAGS += $(CC_BITS)
2247N/A
3513N/ACONFIGURE_OPTIONS += --with-audit=solaris
2247N/ACONFIGURE_OPTIONS += --with-libedit
2247N/ACONFIGURE_OPTIONS += --with-kerberos5
2247N/ACONFIGURE_OPTIONS += --with-pam
2247N/ACONFIGURE_OPTIONS += --with-sandbox=no
2247N/ACONFIGURE_OPTIONS += --with-solaris-contracts
2247N/ACONFIGURE_OPTIONS += --with-4in6
5680N/ACONFIGURE_OPTIONS += --with-xauth=$(USRBINDIR)/xauth
5680N/ACONFIGURE_OPTIONS += --disable-strip
2588N/ACONFIGURE_OPTIONS += --without-rpath
5680N/ACONFIGURE_OPTIONS += --libexecdir=$(USRLIBDIR)/ssh
5680N/ACONFIGURE_OPTIONS += --sbindir=$(USRLIBDIR)/ssh
5680N/ACONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)/ssh
3260N/ACONFIGURE_OPTIONS += --disable-lastlog
2247N/A
2738N/A# Copy the sftp dtrace provider file and the header file to source directory
2738N/ACOMPONENT_PRE_BUILD_ACTION = \
2738N/A ( echo "Copying dtrace sftp files..."; \
2738N/A $(LN) -fs $(COMPONENT_DIR)/dtrace_sftp/*.[dh] $(SOURCE_DIR); \
2738N/A )
2738N/A
5816N/A# Copy Solaris specific source files and generate configuration script
5816N/ACOMPONENT_PREP_ACTION += \
5819N/A ( $(CP) sources/moduli sources/*.c $(@D)/; \
5816N/A cd $(@D); autoconf; \
5816N/A )
5816N/A
3817N/AREQUIRED_PACKAGES += library/libedit
3817N/AREQUIRED_PACKAGES += library/security/openssl
3817N/AREQUIRED_PACKAGES += library/zlib
6067N/AREQUIRED_PACKAGES += security/kerberos-5
5542N/AREQUIRED_PACKAGES += system/core-os
3930N/AREQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
5542N/AREQUIRED_PACKAGES += system/network
4941N/AREQUIRED_PACKAGES += text/groff/groff-core