python/scour: add test results
[oi-userland.git] / components / network / openssh / Makefile
blobd9df6323ae380e7c1fa213d9f1ed9aed3ff15f9d
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
22 # Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
23 # Copyright 2018 Till Wegmüller
24 # Copyright 2019 Michal Nowak
27 include ../../../make-rules/shared-macros.mk
29 COMPONENT_NAME= openssh
30 # OpenSSH <x>.<y>p<n> => IPS <x>.<y>.0.<n>
31 # OpenSSH <x>.<y>.<z>p<n> => IPS <x>.<y>.<z>.<n>
32 COMPONENT_VERSION= 9.9.0.1
33 HUMAN_VERSION= 9.9p1
34 COMPONENT_REVISION= 1
35 COMPONENT_SUMMARY= OpenSSH client and associated utilities
36 COMPONENT_SRC= $(COMPONENT_NAME)-$(HUMAN_VERSION)
37 COMPONENT_PROJECT_URL= https://www.openssh.org
38 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
39 COMPONENT_ARCHIVE_HASH= sha256:b343fbcdbff87f15b1986e6e15d6d4fc9a7d36066be6b7fb507087ba8f966c02
40 COMPONENT_ARCHIVE_URL= https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/$(COMPONENT_ARCHIVE)
41 COMPONENT_FMRI= network/ssh
42 COMPONENT_LICENSE= BSD, BSD-like
43 COMPONENT_LICENSE_FILE= LICENCE
45 #TEST_TARGET= $(SKIP_TEST)
46 include $(WS_MAKE_RULES)/common.mk
48 PATH = $(PATH.gnu)
50 COMPONENT_PREP_ACTION = ( cd $(@D) ; autoreconf -f -i )
52 CFLAGS += -DSET_USE_PAM
53 CFLAGS += -DPAM_ENHANCEMENT
54 CFLAGS += -DPAM_BUGFIX
55 CFLAGS += -DDTRACE_SFTP
56 CFLAGS += -I/usr/include/kerberosv5/
57 CFLAGS += -DKRB5_BUILD_FIX
58 CFLAGS += -DDISABLE_BANNER
59 CFLAGS += -DDEPRECATE_SUNSSH_OPT
60 CFLAGS += -DOPTION_DEFAULT_VALUE
61 CFLAGS += -DSANDBOX_SOLARIS
62 CFLAGS += -DPER_SESSION_XAUTHFILE
63 CFLAGS += -I$(OPENSSL_INCDIR)
64 #CFLAGS += -DLOAD_ALL_LIBS
66 # We need to disable lazyloading of dynamic dependent libraries. During the
67 # pre-authentication phase, sshd will chroot to /var/empty which doesn't
68 # contain any files. If we use lazyloading, sshd will fail to find any
69 # libraries that it needs.
70 #LDFLAGS += -B direct -z nolazyload
72 # Link OpenSSH with libumem
73 LDFLAGS += -lumem
75 CONFIGURE_OPTIONS += --with-4in6
76 CONFIGURE_OPTIONS += --with-audit=solaris
77 CONFIGURE_OPTIONS += --with-kerberos5
78 CONFIGURE_OPTIONS += --with-libedit
79 CONFIGURE_OPTIONS += --with-pam
80 CONFIGURE_OPTIONS += --with-privsep-user=daemon
81 CONFIGURE_OPTIONS += --with-sandbox=solaris
82 CONFIGURE_OPTIONS += --with-solaris-contracts
83 CONFIGURE_OPTIONS += --with-solaris-privs
84 CONFIGURE_OPTIONS += --with-solaris-projects
85 CONFIGURE_OPTIONS += --with-ssl-dir=$(OPENSSL_LIBDIR)
86 CONFIGURE_OPTIONS += --with-ssl-engine
87 CONFIGURE_OPTIONS += --with-tcp-wrappers
88 CONFIGURE_OPTIONS += --with-xauth=/usr/bin/xauth
89 CONFIGURE_OPTIONS += --enable-strip=no
90 CONFIGURE_OPTIONS += --without-rpath
91 #CONFIGURE_OPTIONS += --sbindir=/usr/lib/ssh
92 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)/ssh
94 COMPONENT_POST_INSTALL_ACTION += $(INSTALL) -Dm755 $(SOURCE_DIR)/contrib/ssh-copy-id $(PROTOUSRBINDIR)/ssh-copy-id;
95 COMPONENT_POST_INSTALL_ACTION += $(INSTALL) -Dm644 $(SOURCE_DIR)/contrib/ssh-copy-id.1 $(PROTOUSRSHAREMAN1DIR)/ssh-copy-id.1;
97 COMPONENT_TEST_TARGETS = tests
99 # Auto-generated dependencies
100 REQUIRED_PACKAGES += $(OPENSSL_PKG)
101 REQUIRED_PACKAGES += SUNWcs
102 REQUIRED_PACKAGES += library/libedit
103 REQUIRED_PACKAGES += library/zlib
104 REQUIRED_PACKAGES += network/ssh-askpass
105 REQUIRED_PACKAGES += service/security/kerberos-5
106 REQUIRED_PACKAGES += shell/bash
107 REQUIRED_PACKAGES += shell/ksh93
108 REQUIRED_PACKAGES += system/library
109 REQUIRED_PACKAGES += system/library/security/gss
110 REQUIRED_PACKAGES += x11/session/xauth