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