Makefile revision 6928
6ca0e6973c8176100f4a426444823ae5e777e28fsascha#
e379fc6d7f79163700290d92ce75deb4f3005301jerenkrantz# CDDL HEADER START
e379fc6d7f79163700290d92ce75deb4f3005301jerenkrantz#
e379fc6d7f79163700290d92ce75deb4f3005301jerenkrantz# The contents of this file are subject to the terms of the
e379fc6d7f79163700290d92ce75deb4f3005301jerenkrantz# Common Development and Distribution License (the "License").
e379fc6d7f79163700290d92ce75deb4f3005301jerenkrantz# You may not use this file except in compliance with the License.
e379fc6d7f79163700290d92ce75deb4f3005301jerenkrantz#
e379fc6d7f79163700290d92ce75deb4f3005301jerenkrantz# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# or http://www.opensolaris.org/os/licensing.
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# See the License for the specific language governing permissions
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# and limitations under the License.
6ca0e6973c8176100f4a426444823ae5e777e28fsascha#
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# When distributing Covered Code, include this CDDL HEADER in each
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# If applicable, add the following below this CDDL HEADER, with the
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# fields enclosed by brackets "[]" replaced with your own identifying
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# information: Portions Copyright [yyyy] [name of copyright owner]
6ca0e6973c8176100f4a426444823ae5e777e28fsascha#
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# CDDL HEADER END
6ca0e6973c8176100f4a426444823ae5e777e28fsascha#
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
6ca0e6973c8176100f4a426444823ae5e777e28fsascha#
3a47c2ef905c3b6483279637fb8054ca67c5b6ddsascha# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
3a47c2ef905c3b6483279637fb8054ca67c5b6ddsascha#
3a47c2ef905c3b6483279637fb8054ca67c5b6ddsaschaBUILD_BITS= 64
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCOMPILER= gcc
6ca0e6973c8176100f4a426444823ae5e777e28fsaschainclude ../../make-rules/shared-macros.mk
e50587e6b2ff25bdcbe29410be5bf8f4792016eegregames
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCOMPONENT_NAME= openssh
0d9c389e9c63d02edb068917d49af2fa8012af91marcCOMPONENT_VERSION= 7.3p1
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaHUMAN_VERSION= $(COMPONENT_VERSION)
dadf206a4cf1eccf5c13b64bd9678610dd763868rbb
dadf206a4cf1eccf5c13b64bd9678610dd763868rbb# Version for IPS. The encoding rules are:
a773226ea345018b49d45cf2e076ff2452eead5arbb# OpenSSH <x>.<y>p<n> => IPS <x>.<y>.0.<n>
f9e54e16ac4952a85bb00b8043c1d1e0f495eefbgregames# OpenSSH <x>.<y>.<z>p<n> => IPS <x>.<y>.<z>.<n>
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaIPS_COMPONENT_VERSION= 7.3.0.1
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
ec9b5c4854a4055d00f5459dbbd879d517f1531dmartinCOMPONENT_PROJECT_URL= http://www.openssh.org/
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCOMPONENT_ARCHIVE_HASH= sha256:3ffb989a6dcaa69594c3b550d4855a5a2e1718ccdde7f5e36387b424220fbecc
5181b311fbd45b65a34b3fddb3ace5fab85f36e4wroweCOMPONENT_ARCHIVE_URL= http://mirrors.sonic.net/pub/OpenBSD/OpenSSH/portable/$(COMPONENT_ARCHIVE)
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaTPNO_OPENSSH= 30602
4cbb3bcf66a6788196bcc7244e4e36705acfbb57rbbTPNO_GSSKEX= 20377
a91a466a0d812a522d492c3c182163f73591ca20aaron
a91a466a0d812a522d492c3c182163f73591ca20aaron# Because of set up requirements, test suite is in stc gate.
5f69f46ccdf50afd8f0a23f134746e6066185e89rbbTEST_TARGET= $(SKIP_TEST)
12b0070d002520b81a273ae892b9ea08e810b123rbb
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# 11.3 has conflicts with ON's SunSSH package, which had not yet added
886cd69ebf69e990dbc365be87ff8ea7cd681904rbb# mediated links, thus cannot be updated to.
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaifeq ($(BUILD_TYPE), evaluation)
305a68a1a5db3cc264077d89b3caa6f923257150fieldingBUILD_64=
7bfe076b680e6e591add6cdc754ce9a6910682a2saschaINSTALL_64=
105475009f541187ba7a14a367547d9404c578befieldingPUBLISH_STAMP=
105475009f541187ba7a14a367547d9404c578befieldingendif
7bfe076b680e6e591add6cdc754ce9a6910682a2sascha
f07a80771bc5d30b1e0cfcb7256c1a302da77675rbbinclude $(WS_MAKE_RULES)/common.mk
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
80e9324586de2fa55e2da4df409e6a85885ea659fieldingCFLAGS += -DSET_USE_PAM
9022fa73d4ac101553e7c36a1457ead52a73333borlikowskiCFLAGS += -DDEPRECATE_SUNSSH_OPT
9022fa73d4ac101553e7c36a1457ead52a73333borlikowskiCFLAGS += -DKRB5_BUILD_FIX
38d37e90b45f2a735e7aecf702c76159e0b9f58ftrawickCFLAGS += -DDTRACE_SFTP
105475009f541187ba7a14a367547d9404c578befieldingCFLAGS += -DDISABLE_BANNER
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCFLAGS += -DPAM_ENHANCEMENT
105475009f541187ba7a14a367547d9404c578befieldingCFLAGS += -DPAM_BUGFIX
105475009f541187ba7a14a367547d9404c578befieldingCFLAGS += -DOPTION_DEFAULT_VALUE
105475009f541187ba7a14a367547d9404c578befieldingCFLAGS += -DPER_SESSION_XAUTHFILE
105475009f541187ba7a14a367547d9404c578befieldingCFLAGS += -DOPENSSL_NO_CAST
105475009f541187ba7a14a367547d9404c578befieldingCFLAGS += -DENABLE_OPENSSL_FIPS
105475009f541187ba7a14a367547d9404c578befieldingCFLAGS += -DOPENSSL_NO_RC4
105475009f541187ba7a14a367547d9404c578befieldingCFLAGS += -DWITHOUT_HMAC_MD5
105475009f541187ba7a14a367547d9404c578befielding
105475009f541187ba7a14a367547d9404c578befielding# We need to disable lazyloading of dynamic dependent libraries. During the
105475009f541187ba7a14a367547d9404c578befielding# pre-authentication phase, sshd will chroot to /var/empty which doesn't
105475009f541187ba7a14a367547d9404c578befielding# contain any files. If we use lazyloading, sshd will fail to find any
105475009f541187ba7a14a367547d9404c578befielding# libraries that it needs.
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaLDFLAGS += $(LD_B_DIRECT) -z nolazyload
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
9db19053d8158d96abd6934678c012e0d59d59edjerenkrantz# Enable nxheap and nxstack security extensions
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaLDFLAGS += -z nxheap=enable -z nxstack=enable
cb5d3f2f217d457dada4883addb1dc9f3f17bb85fielding
6a1c919219ae7e3382fb22f1c4cf89f11b4becffcoar# Fix 64-bit linking via compiler.
24066abc54d26593eaad3ebbbaad2fd6b6693700fuankgLDFLAGS += $(CC_BITS)
95d00ea81131488769296fa5765ed745cbf45207trawick
95d00ea81131488769296fa5765ed745cbf45207trawickCONFIGURE_OPTIONS += --with-audit=solaris
ce8d7a0627c0f246376cccd980463f8250a6a97ebjhCONFIGURE_OPTIONS += --with-libedit
ce8d7a0627c0f246376cccd980463f8250a6a97ebjhCONFIGURE_OPTIONS += --with-kerberos5
20bca6c9617ad7d0268203c21039424e99acdd91bjhCONFIGURE_OPTIONS += --with-pam
ce8d7a0627c0f246376cccd980463f8250a6a97ebjhCONFIGURE_OPTIONS += --with-sandbox=no
ce8d7a0627c0f246376cccd980463f8250a6a97ebjhCONFIGURE_OPTIONS += --with-solaris-contracts
11c8f1b409a02814693ec75cbe7f69f3ef994fbajerenkrantzCONFIGURE_OPTIONS += --with-4in6
cdb58be93a9cbeaba1ebc759b48aa8ed519675a9bjhCONFIGURE_OPTIONS += --with-xauth=$(USRBINDIR)/xauth
7dfed2b71c9c4223996cbd7c5c0c85c7c8fef2a4rbbCONFIGURE_OPTIONS += --disable-strip
5d5073be0470140d32914de8e74d869ee4145bffjerenkrantzCONFIGURE_OPTIONS += --without-rpath
6552de06c3d34e6ecfad4c93a6604531b52caf63wsanchezCONFIGURE_OPTIONS += --libexecdir=$(USRLIBDIR)/ssh
4b09621ec91a53c7b48114c37a84f0018cadcb34jerenkrantzCONFIGURE_OPTIONS += --sbindir=$(USRLIBDIR)/ssh
e9ab76f3d59c1be02501c291554715e8155c7c81jortonCONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)/ssh
5d5073be0470140d32914de8e74d869ee4145bffjerenkrantzCONFIGURE_OPTIONS += --disable-lastlog
6552de06c3d34e6ecfad4c93a6604531b52caf63wsanchez
4b09621ec91a53c7b48114c37a84f0018cadcb34jerenkrantz# Copy the sftp dtrace provider file and the header file to source directory
e9ab76f3d59c1be02501c291554715e8155c7c81jortonCOMPONENT_PRE_BUILD_ACTION = \
6ca0e6973c8176100f4a426444823ae5e777e28fsascha ( echo "Copying dtrace sftp files..."; \
6ca0e6973c8176100f4a426444823ae5e777e28fsascha $(LN) -fs $(COMPONENT_DIR)/dtrace_sftp/*.[dh] $(SOURCE_DIR); \
6ca0e6973c8176100f4a426444823ae5e777e28fsascha )
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
a736bac16e58d5e96945f35ee3c43a2cd2f5d37ejerenkrantz# Copy Solaris specific source files and generate configuration script
88ecd979f1112454432371f55a1420240fae3743trawickCOMPONENT_PREP_ACTION += \
6ca0e6973c8176100f4a426444823ae5e777e28fsascha ( $(CP) sources/moduli sources/*.c $(@D)/; \
88ecd979f1112454432371f55a1420240fae3743trawick cd $(@D); autoconf; \
6ca0e6973c8176100f4a426444823ae5e777e28fsascha )
3a47c2ef905c3b6483279637fb8054ca67c5b6ddsascha
3a47c2ef905c3b6483279637fb8054ca67c5b6ddsaschaREQUIRED_PACKAGES += library/libedit
3a47c2ef905c3b6483279637fb8054ca67c5b6ddsaschaREQUIRED_PACKAGES += library/security/openssl
3a47c2ef905c3b6483279637fb8054ca67c5b6ddsaschaREQUIRED_PACKAGES += library/zlib
3a47c2ef905c3b6483279637fb8054ca67c5b6ddsaschaREQUIRED_PACKAGES += security/kerberos-5
96e6cafca226a8a2a64a7bbdc634b5b2679c9e0csaschaREQUIRED_PACKAGES += service/security/kerberos-5
22ad84685642948ad15cc1e881ecbc4ac8cbf98cmanojREQUIRED_PACKAGES += system/core-os
22ad84685642948ad15cc1e881ecbc4ac8cbf98cmanojREQUIRED_PACKAGES += system/library/gcc/gcc-c-runtime
22ad84685642948ad15cc1e881ecbc4ac8cbf98cmanojREQUIRED_PACKAGES += system/library/security/gss
22ad84685642948ad15cc1e881ecbc4ac8cbf98cmanojREQUIRED_PACKAGES += system/network
22ad84685642948ad15cc1e881ecbc4ac8cbf98cmanojREQUIRED_PACKAGES += text/groff/groff-core
22ad84685642948ad15cc1e881ecbc4ac8cbf98cmanoj