components/openssh/Makefile
changeset 1612 3f2ec017627f
child 1618 bf9f53038301
equal deleted inserted replaced
1611:6b7edd68c53f 1612:3f2ec017627f
       
     1 #
       
     2 # CDDL HEADER START
       
     3 #
       
     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.
       
     7 #
       
     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.
       
    12 #
       
    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]
       
    18 #
       
    19 # CDDL HEADER END
       
    20 #
       
    21 # Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
       
    22 #
       
    23 include ../../make-rules/shared-macros.mk
       
    24 
       
    25 COMPONENT_NAME=		openssh
       
    26 COMPONENT_VERSION=	6.0
       
    27 COMPONENT_PORTABLE_VERSION = $(COMPONENT_VERSION)p1
       
    28 COMPONENT_PROJECT_URL=  http://www.openssh.org/
       
    29 COMPONENT_SRC=          $(COMPONENT_NAME)-$(COMPONENT_PORTABLE_VERSION)
       
    30 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
       
    31 COMPONENT_ARCHIVE_HASH=	sha256:589d48e952d6c017e667873486b5df63222f9133d417d0002bd6429d9bd882de
       
    32 COMPONENT_ARCHIVE_URL=	http://mirror.team-cymru.org/pub/OpenBSD/OpenSSH/portable/$(COMPONENT_ARCHIVE)
       
    33 COMPONENT_BUGDB=utility/openssh
       
    34 
       
    35 include ../../make-rules/prep.mk
       
    36 include ../../make-rules/configure.mk
       
    37 include ../../make-rules/ips.mk
       
    38 
       
    39 # Enable ASLR for this component
       
    40 ASLR_MODE = $(ASLR_ENABLE)
       
    41 
       
    42 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS) -DSET_USE_PAM -DDEPRECATE_SUNSSH_OPT -DLASTLOG_FIX -DKRB5_BUILD_FIX -DAUE_openssh=6172"
       
    43 
       
    44 # We need to disable lazyloading of dynamic dependent libraries. During the
       
    45 # pre-authentication phase, sshd will chroot to /var/empty which doesn't
       
    46 # contain any files. If we use lazyloading, sshd will fail to find any
       
    47 # libraries that it needs.
       
    48 CONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS) -B direct -z nolazyload"
       
    49 
       
    50 CONFIGURE_OPTIONS += --with-audit=bsm
       
    51 CONFIGURE_OPTIONS += --with-libedit
       
    52 CONFIGURE_OPTIONS += --with-kerberos5
       
    53 CONFIGURE_OPTIONS += --with-pam
       
    54 CONFIGURE_OPTIONS += --with-sandbox=no
       
    55 CONFIGURE_OPTIONS += --with-solaris-contracts
       
    56 CONFIGURE_OPTIONS += --with-solaris-projects
       
    57 CONFIGURE_OPTIONS += --with-tcp-wrappers
       
    58 CONFIGURE_OPTIONS += --with-4in6
       
    59 CONFIGURE_OPTIONS += --enable-strip=no
       
    60 CONFIGURE_OPTIONS += --libexecdir=/usr/lib/ssh
       
    61 CONFIGURE_OPTIONS += --sbindir=/usr/lib/ssh
       
    62 CONFIGURE_OPTIONS += --sysconfdir=/etc/ssh
       
    63 
       
    64 # common targets
       
    65 build:		$(BUILD_32)
       
    66 
       
    67 install:	$(INSTALL_32)
       
    68 
       
    69 # Because of certain set up requirement, the regress test suite is ported to
       
    70 # the STC gate.
       
    71 test:		$(NO_TESTS)
       
    72 
       
    73 BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
       
    74 
       
    75 include ../../make-rules/depend.mk