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