Makefile revision 6541
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
5817N/ACOMPONENT_VERSION= 7.2p2
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>
5817N/AIPS_COMPONENT_VERSION= 7.2.0.2
2276N/A
2276N/ACOMPONENT_PROJECT_URL= http://www.openssh.org/
5817N/ACOMPONENT_ARCHIVE_HASH= sha256:a72781d1a043876a224ff1b0032daa4094d87565a68528759c1c2cab5482548c
5821N/ACOMPONENT_ARCHIVE_URL= http://mirrors.sonic.net/pub/OpenBSD/OpenSSH/portable/$(COMPONENT_ARCHIVE)
2247N/A
6188N/ATPNO_OPENSSH= 27414
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
5024N/ACFLAGS += -DWITHOUT_CAST128
5308N/ACFLAGS += -DENABLE_OPENSSL_FIPS
6541N/ACFLAGS += -DWITHOUT_ARCFOUR
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
5161N/A# Enable nxheap and nxstack security extensions
5161N/ALDFLAGS += -z nxheap=enable -z nxstack=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
6067N/AREQUIRED_PACKAGES += service/security/kerberos-5
5542N/AREQUIRED_PACKAGES += system/core-os
3930N/AREQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
6067N/AREQUIRED_PACKAGES += system/library/security/gss
5542N/AREQUIRED_PACKAGES += system/network
4941N/AREQUIRED_PACKAGES += text/groff/groff-core