components/pam_pkcs11/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Mon, 11 Apr 2016 06:08:27 -0700
changeset 5748 e80cda8309df
parent 5682 94c0ca64c022
child 6105 bbe5186e3c04
permissions -rw-r--r--
23079447 Several Userland components should be ASLR (re)enabled
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
291
b454e61af367 7050151 migrate pam_pkcs11 from sfw to userland
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
     1
#
b454e61af367 7050151 migrate pam_pkcs11 from sfw to userland
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
b454e61af367 7050151 migrate pam_pkcs11 from sfw to userland
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
     3
#
b454e61af367 7050151 migrate pam_pkcs11 from sfw to userland
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
b454e61af367 7050151 migrate pam_pkcs11 from sfw to userland
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
b454e61af367 7050151 migrate pam_pkcs11 from sfw to userland
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
b454e61af367 7050151 migrate pam_pkcs11 from sfw to userland
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
     7
#
b454e61af367 7050151 migrate pam_pkcs11 from sfw to userland
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
b454e61af367 7050151 migrate pam_pkcs11 from sfw to userland
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
b454e61af367 7050151 migrate pam_pkcs11 from sfw to userland
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
b454e61af367 7050151 migrate pam_pkcs11 from sfw to userland
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
b454e61af367 7050151 migrate pam_pkcs11 from sfw to userland
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    12
#
b454e61af367 7050151 migrate pam_pkcs11 from sfw to userland
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
b454e61af367 7050151 migrate pam_pkcs11 from sfw to userland
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b454e61af367 7050151 migrate pam_pkcs11 from sfw to userland
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
b454e61af367 7050151 migrate pam_pkcs11 from sfw to userland
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
b454e61af367 7050151 migrate pam_pkcs11 from sfw to userland
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
b454e61af367 7050151 migrate pam_pkcs11 from sfw to userland
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    18
#
b454e61af367 7050151 migrate pam_pkcs11 from sfw to userland
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
b454e61af367 7050151 migrate pam_pkcs11 from sfw to userland
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    20
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    21
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    22
#
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    23
# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
291
b454e61af367 7050151 migrate pam_pkcs11 from sfw to userland
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    24
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    25
# For this component, prefer 32-bit over 64-bit for now until sufficient
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    26
# testing has been performed.
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    27
BUILD_BITS= 32_and_64
291
b454e61af367 7050151 migrate pam_pkcs11 from sfw to userland
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    28
include ../../make-rules/shared-macros.mk
b454e61af367 7050151 migrate pam_pkcs11 from sfw to userland
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    29
b454e61af367 7050151 migrate pam_pkcs11 from sfw to userland
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    30
COMPONENT_NAME=		pam_pkcs11
b454e61af367 7050151 migrate pam_pkcs11 from sfw to userland
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    31
COMPONENT_VERSION=	0.6.0
609
775168282b2f 7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents: 291
diff changeset
    32
COMPONENT_PROJECT_URL=	http://www.opensc-project.org/
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 609
diff changeset
    33
COMPONENT_ARCHIVE_HASH=	\
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 609
diff changeset
    34
    sha256:170db26eb9610dde5d3307771ed0e0e14cc0778aaacd3b3d4e71240ccb61cec6
609
775168282b2f 7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents: 291
diff changeset
    35
COMPONENT_ARCHIVE_URL=	$(COMPONENT_PROJECT_URL)files/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
1058
34d7aaa03423 15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents: 801
diff changeset
    36
COMPONENT_BUGDB=	library/pam-pkcs11
291
b454e61af367 7050151 migrate pam_pkcs11 from sfw to userland
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    37
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1058
diff changeset
    38
TPNO=			17173
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1058
diff changeset
    39
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    40
TEST_TARGET= $(NO_TESTS)
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    41
include $(WS_MAKE_RULES)/common.mk
291
b454e61af367 7050151 migrate pam_pkcs11 from sfw to userland
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    42
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    43
# Force regeneration of ancient autoconf scripts to fix 64-bit build detection
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    44
# and due to patches to autoconf and automake files.
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    45
COMPONENT_PREP_ACTION += (cd $(@D); autoreconf -fiv)
291
b454e61af367 7050151 migrate pam_pkcs11 from sfw to userland
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    46
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    47
OPENSSL_LIBS= -lssl -lcrypto
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    48
ifeq ($(OS_VERSION),5.11)
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    49
OPENSSL_LIBS +=	-lsocket -lnsl
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    50
endif
291
b454e61af367 7050151 migrate pam_pkcs11 from sfw to userland
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    51
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    52
CONFIGURE_BINDIR.32= $(USRLIB.32)/pam_pkcs11
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    53
CONFIGURE_BINDIR.64= $(USRLIB.64)/pam_pkcs11
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    54
CONFIGURE_OPTIONS += --datarootdir=$(ETCDIR)/security
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    55
CONFIGURE_OPTIONS += --with-pcsclite=no
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    56
CONFIGURE_OPTIONS += --localedir=$(USRSHARELOCALEDIR)
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    57
CONFIGURE_OPTIONS += --localstatedir=$(VARDIR)
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    58
CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    59
CONFIGURE_OPTIONS += OPENSSL_LIBS="$(OPENSSL_LIBS)"
291
b454e61af367 7050151 migrate pam_pkcs11 from sfw to userland
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    60
5748
e80cda8309df 23079447 Several Userland components should be ASLR (re)enabled
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
    61
ASLR_MODE = $(ASLR_ENABLE)
e80cda8309df 23079447 Several Userland components should be ASLR (re)enabled
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
    62
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    63
REQUIRED_PACKAGES += library/security/openssl
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    64
REQUIRED_PACKAGES += shell/bash