components/pam_pkcs11/Makefile
author John Beck <John.Beck@Oracle.COM>
Tue, 04 Apr 2017 16:12:22 -0700
changeset 7829 2de4f4ace09c
parent 7687 1093e2a9adbd
permissions -rw-r--r--
25766761 prepare Userland for 11.4
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
#
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 7527
diff changeset
    23
# Copyright (c) 2011, 2017, 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
6432
e821c64a5943 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 6105
diff changeset
    31
COMPONENT_VERSION=	0.6.8
e821c64a5943 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 6105
diff changeset
    32
COMPONENT_PROJECT_URL=	https://sourceforge.net/projects/opensc/
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=	\
6432
e821c64a5943 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 6105
diff changeset
    34
    sha256:9d942e542ef35d0e1f990d9ff5bf9df0af84c828ed081add2eb1b4d84f0efbda
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
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 7527
diff changeset
    37
COMPONENT_ANITYA_ID=	13275
291
b454e61af367 7050151 migrate pam_pkcs11 from sfw to userland
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    38
6432
e821c64a5943 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 6105
diff changeset
    39
TPNO=			28155
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1058
diff changeset
    40
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    41
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
    42
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
    43
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    44
# 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
    45
# 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
    46
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
    47
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    48
OPENSSL_LIBS= -lssl -lcrypto
7829
2de4f4ace09c 25766761 prepare Userland for 11.4
John Beck <John.Beck@Oracle.COM>
parents: 7687
diff changeset
    49
OPENSSL_LIBS +=	$(LIBSOCKET) $(LIBNSL)
291
b454e61af367 7050151 migrate pam_pkcs11 from sfw to userland
Huie-Ying Lee <huieying.lee@oracle.com>
parents:
diff changeset
    50
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    51
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
    52
CONFIGURE_BINDIR.64= $(USRLIB.64)/pam_pkcs11
6105
bbe5186e3c04 23492474 pam_pkcs11 doesn't build (work?) on s12-100
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 5748
diff changeset
    53
CPPFLAGS += -I$(USRINCDIR)/openldap
7240
66893879cb20 24766235 Change to build PAM_PKCS11 with the pcsclite=yes option for 32 bit
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 6731
diff changeset
    54
CFLAGS += -DMODULE_ISA_FIX -DUPGRADE_BUG_FIX
5682
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 += --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
    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)
6432
e821c64a5943 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 6105
diff changeset
    59
CONFIGURE_OPTIONS += --with-confdir=/etc/security/pam_pkcs11
e821c64a5943 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 6105
diff changeset
    60
CONFIGURE_OPTIONS += --docdir=/etc/security/pam_pkcs11
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    61
CONFIGURE_OPTIONS += OPENSSL_LIBS="$(OPENSSL_LIBS)"
7240
66893879cb20 24766235 Change to build PAM_PKCS11 with the pcsclite=yes option for 32 bit
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 6731
diff changeset
    62
CONFIGURE_OPTIONS += --with-pcsclite=yes
6432
e821c64a5943 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 6105
diff changeset
    63
CONFIGURE_OPTIONS += PCSC_CFLAGS="-I /usr/include/PCSC"
e821c64a5943 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 6105
diff changeset
    64
7829
2de4f4ace09c 25766761 prepare Userland for 11.4
John Beck <John.Beck@Oracle.COM>
parents: 7687
diff changeset
    65
$(SOLARIS_11_3_ONLY)REQUIRED_PACKAGES += library/openldap
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    66
REQUIRED_PACKAGES += library/security/openssl
6432
e821c64a5943 PSARC/2016/427 PAM_PKCS11 0.6.8
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 6105
diff changeset
    67
REQUIRED_PACKAGES += library/security/pcsc/pcsclite
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    68
REQUIRED_PACKAGES += shell/bash
6105
bbe5186e3c04 23492474 pam_pkcs11 doesn't build (work?) on s12-100
Huie-Ying Lee <huieying.lee@oracle.com>
parents: 5748
diff changeset
    69
REQUIRED_PACKAGES += system/network/ldap/openldap