6277N/A#
6277N/A# CDDL HEADER START
6277N/A#
6277N/A# The contents of this file are subject to the terms of the
6277N/A# Common Development and Distribution License (the "License").
6277N/A# You may not use this file except in compliance with the License.
6277N/A#
6277N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6277N/A# or http://www.opensolaris.org/os/licensing.
6277N/A# See the License for the specific language governing permissions
6277N/A# and limitations under the License.
6277N/A#
6277N/A# When distributing Covered Code, include this CDDL HEADER in each
6277N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6277N/A# If applicable, add the following below this CDDL HEADER, with the
6277N/A# fields enclosed by brackets "[]" replaced with your own identifying
6277N/A# information: Portions Copyright [yyyy] [name of copyright owner]
6277N/A#
6277N/A# CDDL HEADER END
6277N/A
6277N/A#
6277N/A# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
6277N/A#
6277N/A
6277N/A# TESTING:
6277N/A# Requires physical card reader attached to USB with card inserted.
6277N/A# SCM Microsystems, model SCR3310 is what was used in-house to test.
6277N/A#
6277N/A# To build the test:
6277N/A# $ cd build/[64-bit directory]
6277N/A# $ gmake build-test
6277N/A#
6277N/A# To run the test:
6277N/A# $ cd build/[64-bit directory]
6277N/A# $ ./testcackey> testoutput.log
6277N/A#
6277N/A# If the last line of output says:
6277N/A# Testing libcackey... DONE. Status = 0
6277N/A# then you have a finished test and results.
6277N/A# Search for CK_FAIL or "failed" in testoutput.log to see the actual failures,
6994N/A# if no CK_FAIL or failed were reported, the test ran successfully.
6277N/A
6994N/ABUILD_BITS= 64_and_32
6277N/Ainclude ../../make-rules/shared-macros.mk
6277N/A
6277N/ACOMPONENT_NAME= CACKey
6277N/ACOMPONENT_VERSION= 0.7.4
6909N/A# The new form includes the commit as a disambiguator, but the current archive
6909N/A# wasn't created with that in its name, so we use the old form until the next
6909N/A# update.
6909N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
6277N/ACOMPONENT_PROJECT_URL= http://www.rkeene.org/projects/info/wiki/161
6277N/A
6277N/ACOMPONENT_ARCHIVE_SRC= git
6277N/A
6277N/AGIT_REPO= https://github.com/Conservatory/CACKey
6277N/AGIT_COMMIT_ID= 2f51a0d
6277N/AGIT_HASH= sha256:72360f032b81923bb2cfcedea7e49ac50ac477e53872840e10ee08a2014ab737
6277N/A
6277N/ACOMPONENT_BUGDB= library/smartcard
6277N/A
6277N/ATPNO = 25489
6277N/A
6277N/Ainclude $(WS_MAKE_RULES)/common.mk
6277N/A
6277N/A# does not use typical FOSS dir layout, source is at top level
6277N/ACOMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
6277N/A
6277N/A# requires PC/SC libraries and headers
6277N/ACONFIGURE_ENV += CFLAGS="-I$(USRINCDIR)/PCSC"
6277N/ACONFIGURE_ENV += LDFLAGS="-lpcsclite"
6277N/A
6277N/A# options needed for configure, library location, PC/SC library and headers
6277N/ACONFIGURE_OPTIONS += --exec-prefix=$(USRLIBDIR64)
6277N/ACONFIGURE_OPTIONS += --with-pcsc-headers=$(USRINCDIR)/PCSC
6277N/ACONFIGURE_OPTIONS += --enable-dod-certs-on-hw-slots
6277N/A
6277N/A# configure.ac related patch needs configure script re-creation
6277N/ACOMPONENT_PREP_ACTION +=(cd $(@D); autoreconf);
6277N/A
6277N/A# required packages
6277N/AREQUIRED_PACKAGES += library/security/pcsc/pcsclite
6277N/AREQUIRED_PACKAGES += library/zlib
6277N/A