291N/A#
291N/A# CDDL HEADER START
291N/A#
291N/A# The contents of this file are subject to the terms of the
291N/A# Common Development and Distribution License (the "License").
291N/A# You may not use this file except in compliance with the License.
291N/A#
291N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
291N/A# or http://www.opensolaris.org/os/licensing.
291N/A# See the License for the specific language governing permissions
291N/A# and limitations under the License.
291N/A#
291N/A# When distributing Covered Code, include this CDDL HEADER in each
291N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
291N/A# If applicable, add the following below this CDDL HEADER, with the
291N/A# fields enclosed by brackets "[]" replaced with your own identifying
291N/A# information: Portions Copyright [yyyy] [name of copyright owner]
291N/A#
291N/A# CDDL HEADER END
291N/A#
5680N/A
5680N/A#
5680N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
291N/A#
5680N/A# For this component, prefer 32-bit over 64-bit for now until sufficient
5680N/A# testing has been performed.
5680N/ABUILD_BITS= 32_and_64
291N/Ainclude ../../make-rules/shared-macros.mk
291N/A
291N/ACOMPONENT_NAME= pam_pkcs11
6430N/ACOMPONENT_VERSION= 0.6.8
6430N/ACOMPONENT_PROJECT_URL= https://sourceforge.net/projects/opensc/
844N/ACOMPONENT_ARCHIVE_HASH= \
6430N/A sha256:9d942e542ef35d0e1f990d9ff5bf9df0af84c828ed081add2eb1b4d84f0efbda
618N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)files/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
1258N/ACOMPONENT_BUGDB= library/pam-pkcs11
291N/A
6430N/ATPNO= 28155
2899N/A
5680N/ATEST_TARGET= $(NO_TESTS)
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
291N/A
5680N/A# Force regeneration of ancient autoconf scripts to fix 64-bit build detection
5680N/A# and due to patches to autoconf and automake files.
5680N/ACOMPONENT_PREP_ACTION += (cd $(@D); autoreconf -fiv)
291N/A
5680N/AOPENSSL_LIBS= -lssl -lcrypto
5680N/Aifeq ($(OS_VERSION),5.11)
5680N/AOPENSSL_LIBS += -lsocket -lnsl
5680N/Aendif
291N/A
5680N/ACONFIGURE_BINDIR.32= $(USRLIB.32)/pam_pkcs11
5680N/ACONFIGURE_BINDIR.64= $(USRLIB.64)/pam_pkcs11
6103N/ACPPFLAGS += -I$(USRINCDIR)/openldap
7238N/ACFLAGS += -DMODULE_ISA_FIX -DUPGRADE_BUG_FIX
5680N/ACONFIGURE_OPTIONS += --datarootdir=$(ETCDIR)/security
5680N/ACONFIGURE_OPTIONS += --localedir=$(USRSHARELOCALEDIR)
5680N/ACONFIGURE_OPTIONS += --localstatedir=$(VARDIR)
5680N/ACONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
6430N/ACONFIGURE_OPTIONS += --with-confdir=/etc/security/pam_pkcs11
6430N/ACONFIGURE_OPTIONS += --docdir=/etc/security/pam_pkcs11
5680N/ACONFIGURE_OPTIONS += OPENSSL_LIBS="$(OPENSSL_LIBS)"
7238N/ACONFIGURE_OPTIONS += --with-pcsclite=yes
6430N/ACONFIGURE_OPTIONS += PCSC_CFLAGS="-I /usr/include/PCSC"
6430N/A
6103N/AREQUIRED_PACKAGES += library/openldap
3817N/AREQUIRED_PACKAGES += library/security/openssl
6430N/AREQUIRED_PACKAGES += library/security/pcsc/pcsclite
3817N/AREQUIRED_PACKAGES += shell/bash
6103N/AREQUIRED_PACKAGES += system/network/ldap/openldap