Makefile revision 5528
169N/A#
169N/A# CDDL HEADER START
169N/A#
169N/A# The contents of this file are subject to the terms of the
169N/A# Common Development and Distribution License (the "License").
169N/A# You may not use this file except in compliance with the License.
169N/A#
169N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
169N/A# or http://www.opensolaris.org/os/licensing.
169N/A# See the License for the specific language governing permissions
169N/A# and limitations under the License.
169N/A#
169N/A# When distributing Covered Code, include this CDDL HEADER in each
169N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
169N/A# If applicable, add the following below this CDDL HEADER, with the
169N/A# fields enclosed by brackets "[]" replaced with your own identifying
169N/A# information: Portions Copyright [yyyy] [name of copyright owner]
169N/A#
169N/A# CDDL HEADER END
169N/A#
1392N/A# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
169N/A#
839N/Ainclude ../../make-rules/shared-macros.mk
169N/A
169N/ACOMPONENT_NAME= openssh
169N/ACOMPONENT_VERSION= 7.1p2
169N/AHUMAN_VERSION= $(COMPONENT_VERSION)
618N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
169N/A
169N/A# Version for IPS. The encoding rules are:
844N/A# OpenSSH <x>.<y>p<n> => IPS <x>.<y>.0.<n>
844N/A# OpenSSH <x>.<y>.<z>p<n> => IPS <x>.<y>.<z>.<n>
169N/AIPS_COMPONENT_VERSION= 7.1.0.1
1258N/A
169N/ACOMPONENT_PROJECT_URL= http://www.openssh.org/
169N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
169N/ACOMPONENT_ARCHIVE_HASH= sha256:dd75f024dcf21e06a0d6421d582690bf987a1f6323e32ad6619392f3bfde6bbd
169N/ACOMPONENT_ARCHIVE_URL= http://mirror.team-cymru.org/pub/OpenBSD/OpenSSH/portable/$(COMPONENT_ARCHIVE)
169N/ACOMPONENT_BUGDB=utility/openssh
813N/A
169N/ATPNO_OPENSSH= 26419
169N/ATPNO_GSSKEX= 20377
169N/A
1392N/Ainclude $(WS_MAKE_RULES)/prep.mk
1392N/Ainclude $(WS_MAKE_RULES)/configure.mk
1392N/A
181N/A# 11.3 has conflicts with ON's SunSSH package, which had not yet added
181N/A# mediated links, thus cannot be updated to.
181N/Aifeq ($(BUILD_TYPE), evaluation)
181N/ABUILD_64=
2059N/AINSTALL_64=
169N/APUBLISH_STAMP=
2059N/Aendif
181N/A
2059N/Ainclude $(WS_MAKE_RULES)/ips.mk
169N/A
169N/A# Enable ASLR for this component
169N/AASLR_MODE = $(ASLR_ENABLE)
169N/A
COMPILER= gcc
CFLAGS += -DSET_USE_PAM
CFLAGS += -DDEPRECATE_SUNSSH_OPT
CFLAGS += -DKRB5_BUILD_FIX
CFLAGS += -DDTRACE_SFTP
CFLAGS += -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
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 += -B direct -z nolazyload
# Enable nxheap and nxstack security extensions
LDFLAGS += -z nxheap=enable -z nxstack=enable
# Just $(BUILD_64) option was not propogating the 64 bit flags to all the
# necessary places. Hence the -m64 option is added to LDFLAGS for
# CONFIGURE_OPTIONS.64.
CONFIGURE_OPTIONS.64 += LDFLAGS="$(LDFLAGS) -m64"
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=/usr/bin/xauth
CONFIGURE_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 += security/kerberos-5
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