278N/A#
278N/A# CDDL HEADER START
278N/A#
278N/A# The contents of this file are subject to the terms of the
278N/A# Common Development and Distribution License (the "License").
278N/A# You may not use this file except in compliance with the License.
278N/A#
278N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
278N/A# or http://www.opensolaris.org/os/licensing.
278N/A# See the License for the specific language governing permissions
278N/A# and limitations under the License.
278N/A#
278N/A# When distributing Covered Code, include this CDDL HEADER in each
278N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
278N/A# If applicable, add the following below this CDDL HEADER, with the
278N/A# fields enclosed by brackets "[]" replaced with your own identifying
278N/A# information: Portions Copyright [yyyy] [name of copyright owner]
278N/A#
278N/A# CDDL HEADER END
278N/A#
3996N/A
278N/A#
278N/A# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
278N/A#
1273N/ACOMPILER= gcc
4880N/Ainclude ../../make-rules/shared-macros.mk
618N/A
1273N/ACOMPONENT_NAME= openssh
1273N/ACOMPONENT_VERSION= 7.2p2
278N/AHUMAN_VERSION= $(COMPONENT_VERSION)
844N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
4880N/A
4018N/A# Version for IPS. The encoding rules are:
1273N/A# OpenSSH <x>.<y>p<n> => IPS <x>.<y>.0.<n>
278N/A# OpenSSH <x>.<y>.<z>p<n> => IPS <x>.<y>.<z>.<n>
4880N/AIPS_COMPONENT_VERSION= 7.2.0.2
4018N/A
4018N/ACOMPONENT_PROJECT_URL= http://www.openssh.org/
4018N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
3661N/ACOMPONENT_ARCHIVE_HASH= sha256:a72781d1a043876a224ff1b0032daa4094d87565a68528759c1c2cab5482548c
3996N/ACOMPONENT_ARCHIVE_URL= http://mirrors.sonic.net/pub/OpenBSD/OpenSSH/portable/$(COMPONENT_ARCHIVE)
3996N/ACOMPONENT_BUGDB=utility/openssh
3996N/A
4018N/ATPNO_OPENSSH= 27414
278N/ATPNO_GSSKEX= 20377
278N/A
278N/Ainclude $(WS_MAKE_RULES)/prep.mk
278N/Ainclude $(WS_MAKE_RULES)/configure.mk
278N/Ainclude $(WS_MAKE_RULES)/ips.mk
4018N/A
278N/A# Enable ASLR for this component
4018N/AASLR_MODE = $(ASLR_ENABLE)
278N/A
4018N/ACFLAGS += -DSET_USE_PAM
278N/ACFLAGS += -DDEPRECATE_SUNSSH_OPT
278N/ACFLAGS += -DKRB5_BUILD_FIX
278N/ACFLAGS += -DDISABLE_BANNER
278N/ACFLAGS += -DPAM_ENHANCEMENT
278N/ACFLAGS += -DPAM_BUGFIX
278N/ACFLAGS += -DOPTION_DEFAULT_VALUE
3996N/ACFLAGS += -DWITHOUT_ED25519
CFLAGS += -DPER_SESSION_XAUTHFILE
CFLAGS += -DWITHOUT_CAST128
CFLAGS += -DENABLE_OPENSSL_FIPS
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
# 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
CONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
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 += --bindir=$(USRBINDIR)
CONFIGURE_OPTIONS += --disable-lastlog
# Copy Solaris specific source files and generate configuration script
COMPONENT_PREP_ACTION += \
( $(CP) sources/*.c $(@D)/; \
cd $(@D); autoconf; \
)
# common targets
configure: $(CONFIGURE_32)
build: $(BUILD_32)
install: $(INSTALL_32)
# Because of certain set up requirement, the regress test suite is ported to
# the STC gate.
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 += system/linker
REQUIRED_PACKAGES += text/groff/groff-core