Makefile revision 5024
341N/A#
341N/A# CDDL HEADER START
341N/A#
341N/A# The contents of this file are subject to the terms of the
341N/A# Common Development and Distribution License (the "License").
341N/A# You may not use this file except in compliance with the License.
341N/A#
341N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
341N/A# or http://www.opensolaris.org/os/licensing.
341N/A# See the License for the specific language governing permissions
341N/A# and limitations under the License.
341N/A#
341N/A# When distributing Covered Code, include this CDDL HEADER in each
341N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
341N/A# If applicable, add the following below this CDDL HEADER, with the
341N/A# fields enclosed by brackets "[]" replaced with your own identifying
341N/A# information: Portions Copyright [yyyy] [name of copyright owner]
341N/A#
341N/A# CDDL HEADER END
341N/A#
341N/A# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
341N/A#
341N/Ainclude ../../make-rules/shared-macros.mk
341N/A
341N/ACOMPONENT_NAME= openssh
341N/ACOMPONENT_VERSION= 7.1p1
341N/AHUMAN_VERSION= $(COMPONENT_VERSION)
341N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
341N/A
341N/A# Version for IPS. The encoding rules are:
341N/A# OpenSSH <x>.<y>p<n> => IPS <x>.<y>.0.<n>
341N/A# OpenSSH <x>.<y>.<z>p<n> => IPS <x>.<y>.<z>.<n>
392N/AIPS_COMPONENT_VERSION= 7.1.0.1
341N/A
341N/ACOMPONENT_PROJECT_URL= http://www.openssh.org/
341N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
341N/ACOMPONENT_ARCHIVE_HASH= sha256:fc0a6d2d1d063d5c66dffd952493d0cda256cad204f681de0f84ef85b2ad8428
341N/ACOMPONENT_ARCHIVE_URL= http://mirror.team-cymru.org/pub/OpenBSD/OpenSSH/portable/$(COMPONENT_ARCHIVE)
341N/ACOMPONENT_BUGDB=utility/openssh
341N/A
341N/ATPNO_OPENSSH= 24282
341N/ATPNO_GSSKEX= 20377
341N/A
341N/Ainclude $(WS_MAKE_RULES)/prep.mk
341N/Ainclude $(WS_MAKE_RULES)/configure.mk
341N/Ainclude $(WS_MAKE_RULES)/ips.mk
341N/A
341N/A# Enable ASLR for this component
341N/AASLR_MODE = $(ASLR_ENABLE)
341N/A
341N/ACOMPILER= gcc
341N/A
341N/ACFLAGS += -DSET_USE_PAM
341N/ACFLAGS += -DDEPRECATE_SUNSSH_OPT
341N/ACFLAGS += -DKRB5_BUILD_FIX
341N/ACFLAGS += -DDTRACE_SFTP
341N/ACFLAGS += -DDISABLE_BANNER
392N/ACFLAGS += -DPAM_ENHANCEMENT
392N/ACFLAGS += -DPAM_BUGFIX
341N/ACFLAGS += -DOPTION_DEFAULT_VALUE
341N/ACFLAGS += -DWITHOUT_ED25519
341N/ACFLAGS += -DPER_SESSION_XAUTHFILE
341N/ACFLAGS += -DWITHOUT_CAST128
341N/A
341N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
341N/A
341N/A# We need to disable lazyloading of dynamic dependent libraries. During the
341N/A# pre-authentication phase, sshd will chroot to /var/empty which doesn't
341N/A# contain any files. If we use lazyloading, sshd will fail to find any
341N/A# libraries that it needs.
341N/ALDFLAGS += -B direct -z nolazyload
341N/A
341N/A# Just $(BUILD_64) option was not propogating the 64 bit flags to all the
341N/A# necessary places. Hence the -m64 option is added to LDFLAGS for
341N/A# CONFIGURE_OPTIONS.64.
341N/ACONFIGURE_OPTIONS.64 += LDFLAGS="$(LDFLAGS) -m64"
341N/A
341N/ACONFIGURE_OPTIONS += --with-audit=solaris
341N/ACONFIGURE_OPTIONS += --with-libedit
341N/ACONFIGURE_OPTIONS += --with-kerberos5
341N/ACONFIGURE_OPTIONS += --with-pam
341N/ACONFIGURE_OPTIONS += --with-sandbox=no
341N/ACONFIGURE_OPTIONS += --with-solaris-contracts
341N/ACONFIGURE_OPTIONS += --with-tcp-wrappers
341N/ACONFIGURE_OPTIONS += --with-4in6
341N/ACONFIGURE_OPTIONS += --with-xauth=/usr/bin/xauth
341N/ACONFIGURE_OPTIONS += --enable-strip=no
341N/ACONFIGURE_OPTIONS += --without-rpath
341N/ACONFIGURE_OPTIONS += --libexecdir=/usr/lib/ssh
341N/ACONFIGURE_OPTIONS += --sbindir=/usr/lib/ssh
341N/ACONFIGURE_OPTIONS += --sysconfdir=/etc/ssh
341N/ACONFIGURE_OPTIONS += --bindir=/usr/bin
341N/ACONFIGURE_OPTIONS += --disable-lastlog
341N/A
341N/A# Copy the sftp dtrace provider file and the header file to source directory
341N/ACOMPONENT_PRE_BUILD_ACTION = \
341N/A ( echo "Copying dtrace sftp files..."; \
341N/A $(LN) -fs $(COMPONENT_DIR)/dtrace_sftp/*.[dh] $(SOURCE_DIR); \
341N/A )
341N/A
341N/A# Copy source files that are not yet part of a patch
341N/ACOMPONENT_PREP_ACTION += ($(CP) sources/*.c $(@D)/)
341N/A
341N/A# common targets
341N/Aconfigure: $(CONFIGURE_64)
341N/A
341N/Abuild: $(BUILD_64)
341N/A
341N/Ainstall: $(INSTALL_64)
341N/A
341N/A# Because of certain set up requirement, the regress test suite is ported to
341N/A# the STC gate.
341N/Atest: $(NO_TESTS)
341N/A
341N/Asystem-test: $(NO_TESTS)
341N/A
341N/A
341N/AREQUIRED_PACKAGES += library/libedit
341N/AREQUIRED_PACKAGES += library/security/openssl
341N/AREQUIRED_PACKAGES += library/zlib
341N/AREQUIRED_PACKAGES += service/security/kerberos-5
341N/AREQUIRED_PACKAGES += system/library
341N/AREQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
341N/AREQUIRED_PACKAGES += system/library/security/gss
341N/AREQUIRED_PACKAGES += system/linker
341N/AREQUIRED_PACKAGES += text/groff/groff-core
341N/A