switch to gcc 6 runtimes
[unleashed-userland.git] / components / network / openssh / Makefile
blob8b33561bee76dd4525c95c62b4d7658965e76714
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
21 # Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
23 include ../../../make-rules/shared-macros.mk
25 COMPONENT_NAME= openssh
26 COMPONENT_VERSION= 7.8p1
27 HUMAN_VERSION= $(COMPONENT_VERSION)
28 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
30 # Version for IPS. The encoding rules are:
31 # OpenSSH <x>.<y>p<n> => IPS <x>.<y>.0.<n>
32 # OpenSSH <x>.<y>.<z>p<n> => IPS <x>.<y>.<z>.<n>
33 IPS_COMPONENT_VERSION= 7.8.0.1
35 COMPONENT_PROJECT_URL= http://www.openssh.org/
36 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
37 COMPONENT_ARCHIVE_HASH= sha256:1a484bb15152c183bb2514e112aa30dd34138c3cfb032eee5490a66c507144ca
38 COMPONENT_ARCHIVE_URL= https://cloudflare.cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/$(COMPONENT_ARCHIVE)
39 COMPONENT_BUGDB=utility/openssh
41 TPNO_OPENSSH= 21980
42 TPNO_GSSKEX= 20377
44 include $(WS_MAKE_RULES)/prep.mk
45 include $(WS_MAKE_RULES)/configure.mk
46 include $(WS_MAKE_RULES)/ips.mk
48 # Enable ASLR for this component
49 # ASLR_MODE = $(ASLR_ENABLE)
51 COMPONENT_PREP_ACTION = (cd $(@D) ; autoreconf -f -i)
53 CFLAGS += -DSET_USE_PAM
54 CFLAGS += -DNO_UID_RESTORATION_TEST
55 CFLAGS += -DDEPRECATE_SUNSSH_OPT
56 CFLAGS += -DKRB5_BUILD_FIX
57 CFLAGS += -DDTRACE_SFTP
58 CFLAGS += -DDISABLE_BANNER
59 CFLAGS += -DPAM_ENHANCEMENT
60 CFLAGS += -DPAM_BUGFIX
61 CFLAGS += -DOPTION_DEFAULT_VALUE
62 CFLAGS += -DHAVE_EVP_SHA256
63 CFLAGS += -DPER_SESSION_XAUTHFILE
65 # We need to disable lazyloading of dynamic dependent libraries. During the
66 # pre-authentication phase, sshd will chroot to /var/empty which doesn't
67 # contain any files. If we use lazyloading, sshd will fail to find any
68 # libraries that it needs.
69 LDFLAGS += -B direct -z nolazyload
71 CONFIGURE_OPTIONS += --with-libedit
72 CONFIGURE_OPTIONS += --with-mantype=doc
73 CONFIGURE_OPTIONS += --with-pam
74 CONFIGURE_OPTIONS += --with-sandbox=solaris
75 CONFIGURE_OPTIONS += --with-solaris-contracts
76 CONFIGURE_OPTIONS += --with-solaris-privs
77 CONFIGURE_OPTIONS += --with-tcp-wrappers
78 CONFIGURE_OPTIONS += --with-4in6
79 CONFIGURE_OPTIONS += --with-xauth=/usr/bin/xauth
80 CONFIGURE_OPTIONS += --enable-strip=no
81 CONFIGURE_OPTIONS += --without-rpath
82 CONFIGURE_OPTIONS += --libexecdir=/usr/lib/ssh
83 CONFIGURE_OPTIONS += --sbindir=/usr/lib/ssh
84 CONFIGURE_OPTIONS += --sysconfdir=/etc/ssh
85 CONFIGURE_OPTIONS += --bindir=/usr/bin
86 CONFIGURE_OPTIONS += --disable-lastlog
88 # common targets
89 build: $(BUILD_32)
91 install: $(INSTALL_32)
93 # Because of certain set up requirement, the regress test suite is ported to
94 # the STC gate.
95 test: $(NO_TESTS)
97 REQUIRED_PACKAGES += library/libedit
98 REQUIRED_PACKAGES += library/zlib
99 REQUIRED_PACKAGES += system/library
100 REQUIRED_PACKAGES += system/library/g++-6-runtime