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