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