Makefile revision 5161
312N/A#
312N/A# CDDL HEADER START
312N/A#
312N/A# The contents of this file are subject to the terms of the
312N/A# Common Development and Distribution License (the "License").
312N/A# You may not use this file except in compliance with the License.
312N/A#
312N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
312N/A# or http://www.opensolaris.org/os/licensing.
312N/A# See the License for the specific language governing permissions
312N/A# and limitations under the License.
312N/A#
312N/A# When distributing Covered Code, include this CDDL HEADER in each
312N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
312N/A# If applicable, add the following below this CDDL HEADER, with the
312N/A# fields enclosed by brackets "[]" replaced with your own identifying
312N/A# information: Portions Copyright [yyyy] [name of copyright owner]
312N/A#
312N/A# CDDL HEADER END
312N/A#
312N/A# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
2899N/A#
312N/Ainclude ../../make-rules/shared-macros.mk
312N/A
814N/ACOMPONENT_NAME= openssh
814N/ACOMPONENT_VERSION= 7.1p1
1780N/AHUMAN_VERSION= $(COMPONENT_VERSION)
814N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
312N/A
312N/A# Version for IPS. The encoding rules are:
312N/A# OpenSSH <x>.<y>p<n> => IPS <x>.<y>.0.<n>
623N/A# OpenSSH <x>.<y>.<z>p<n> => IPS <x>.<y>.<z>.<n>
312N/AIPS_COMPONENT_VERSION= 7.1.0.1
312N/A
844N/ACOMPONENT_PROJECT_URL= http://www.openssh.org/
844N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
623N/ACOMPONENT_ARCHIVE_HASH= sha256:fc0a6d2d1d063d5c66dffd952493d0cda256cad204f681de0f84ef85b2ad8428
312N/ACOMPONENT_ARCHIVE_URL= http://mirror.team-cymru.org/pub/OpenBSD/OpenSSH/portable/$(COMPONENT_ARCHIVE)
1258N/ACOMPONENT_BUGDB=utility/openssh
312N/A
2899N/ATPNO_OPENSSH= 24282
2899N/ATPNO_GSSKEX= 20377
312N/A
312N/Ainclude $(WS_MAKE_RULES)/prep.mk
312N/Ainclude $(WS_MAKE_RULES)/configure.mk
312N/Ainclude $(WS_MAKE_RULES)/ips.mk
312N/A
312N/A# Enable ASLR for this component
312N/AASLR_MODE = $(ASLR_ENABLE)
312N/A
312N/ACOMPILER= gcc
312N/A
312N/ACFLAGS += -DSET_USE_PAM
312N/ACFLAGS += -DDEPRECATE_SUNSSH_OPT
312N/ACFLAGS += -DKRB5_BUILD_FIX
312N/ACFLAGS += -DDTRACE_SFTP
312N/ACFLAGS += -DDISABLE_BANNER
814N/ACFLAGS += -DPAM_ENHANCEMENT
814N/ACFLAGS += -DPAM_BUGFIX
814N/ACFLAGS += -DOPTION_DEFAULT_VALUE
312N/ACFLAGS += -DWITHOUT_ED25519
312N/ACFLAGS += -DPER_SESSION_XAUTHFILE
312N/ACFLAGS += -DWITHOUT_CAST128
623N/A
623N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
623N/A
623N/A# We need to disable lazyloading of dynamic dependent libraries. During the
623N/A# pre-authentication phase, sshd will chroot to /var/empty which doesn't
623N/A# contain any files. If we use lazyloading, sshd will fail to find any
623N/A# libraries that it needs.
312N/ALDFLAGS += -B direct -z nolazyload
312N/A
312N/A# Enable nxheap and nxstack security extensions
312N/ALDFLAGS += -z nxheap=enable -z nxstack=enable
312N/A
312N/A# Just $(BUILD_64) option was not propogating the 64 bit flags to all the
312N/A# necessary places. Hence the -m64 option is added to LDFLAGS for
1639N/A# CONFIGURE_OPTIONS.64.
1639N/ACONFIGURE_OPTIONS.64 += LDFLAGS="$(LDFLAGS) -m64"
623N/A
623N/ACONFIGURE_OPTIONS += --with-audit=solaris
623N/ACONFIGURE_OPTIONS += --with-libedit
623N/ACONFIGURE_OPTIONS += --with-kerberos5
312N/ACONFIGURE_OPTIONS += --with-pam
312N/ACONFIGURE_OPTIONS += --with-sandbox=no
312N/ACONFIGURE_OPTIONS += --with-solaris-contracts
312N/ACONFIGURE_OPTIONS += --with-tcp-wrappers
312N/ACONFIGURE_OPTIONS += --with-4in6
312N/ACONFIGURE_OPTIONS += --with-xauth=/usr/bin/xauth
312N/ACONFIGURE_OPTIONS += --enable-strip=no
312N/ACONFIGURE_OPTIONS += --without-rpath
623N/ACONFIGURE_OPTIONS += --libexecdir=/usr/lib/ssh
312N/ACONFIGURE_OPTIONS += --sbindir=/usr/lib/ssh
312N/ACONFIGURE_OPTIONS += --sysconfdir=/etc/ssh
312N/ACONFIGURE_OPTIONS += --bindir=/usr/bin
312N/ACONFIGURE_OPTIONS += --disable-lastlog
312N/A
# 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 += 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