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