6533N/A#
6533N/A# CDDL HEADER START
6533N/A#
6533N/A# The contents of this file are subject to the terms of the
6533N/A# Common Development and Distribution License (the "License").
6533N/A# You may not use this file except in compliance with the License.
6533N/A#
6533N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6533N/A# or http://www.opensolaris.org/os/licensing.
6533N/A# See the License for the specific language governing permissions
6533N/A# and limitations under the License.
6533N/A#
6533N/A# When distributing Covered Code, include this CDDL HEADER in each
6533N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6533N/A# If applicable, add the following below this CDDL HEADER, with the
6533N/A# fields enclosed by brackets "[]" replaced with your own identifying
6533N/A# information: Portions Copyright [yyyy] [name of copyright owner]
6533N/A#
6533N/A# CDDL HEADER END
6533N/A
6533N/A#
6533N/A# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
6533N/A#
6533N/A
6533N/A# TESTING:
6533N/A# Requires physical card reader attached to USB with card inserted.
6533N/A# SCM Microsystems, model SCR3310 is what was used in-house to test.
6533N/A# The pkcs11_coolkey package, once built needs to be installed on
6533N/A# the system building and running the test.
6533N/A#
6533N/A# To build the test:
6533N/A# $ cd components/coolkey/test
6533N/A# $ gmake build-test
6533N/A#
6533N/A# To run the test, as root:
6533N/A# # cd components/coolkey/test
6533N/A# # ./testcoolkey> testoutput.log
6533N/A# enter PIN at prompt and press <enter>
6533N/A#
6533N/A# If the last line of output says:
6533N/A# Testing libcoolkey... DONE. Status = 0
6533N/A# then you have a finished test and results.
6533N/A# Search for "failed" in testoutput.log to see the actual failures, then
6533N/A# review any failed messages to determine if the test ran successfully or not.
6533N/A
6533N/Ainclude ../../make-rules/shared-macros.mk
6533N/A
6533N/ABITS= 64
6533N/ACOMPONENT_NAME= coolkey
6533N/ACOMPONENT_VERSION= 1.1.0
6533N/ACOMPONENT_PROJECT_URL= http://pki.fedoraproject.org/wiki/CoolKey
6533N/ACOMPONENT_DOWNLOAD_URL= http://pkgs.fedoraproject.org/repo/pkgs/$(COMPONENT_NAME)/$(COMPONENT_NAME)-$(COMPONENT_VERSION).tar.gz/815a1811a46bf9b8782107c073149cbe
6533N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
6533N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
6533N/ACOMPONENT_ARCHIVE_HASH= sha256:8448e3abb81bffc593c96b577dcfbc05b40e8684188456c31be15fae73d730f7
6533N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_DOWNLOAD_URL)/$(COMPONENT_ARCHIVE)
6533N/ACOMPONENT_BUGDB= library/smartcard
6533N/A
6533N/ATPNO = 25487
6533N/A
6533N/Ainclude $(WS_MAKE_RULES)/prep.mk
6533N/Ainclude $(WS_MAKE_RULES)/configure.mk
6533N/Ainclude $(WS_MAKE_RULES)/ips.mk
6533N/A
6533N/A# Configuration related patch needs aclocal to be regenerated
6533N/ACOMPONENT_PREP_ACTION +=(cd $(@D); autoconf);
6533N/A
6533N/A# Do not add the SUNWspro area to the RUNPATH
6533N/A# Although -norunpath is set in CXXFLAGS, we need to append
6533N/A# the -norunpath option here, so it's picked up when building
6533N/A# shared libraries (CC -G)
6533N/ACXX += $(studio_NORUNPATH)
6533N/ACOMPONENT_BUILD_ENV += CXXFLAGS="$(CXXFLAGS)"
6533N/ACOMPONENT_INSTALL_ENV += CXXFLAGS="$(CXXFLAGS)"
6533N/A
6533N/A# Requires PC/SC headers and library
6533N/ACONFIGURE_ENV += PCSC_CFLAGS="$(CFLAGS) -I$(USRINCDIR)/PCSC"
6533N/ACONFIGURE_ENV += PCSC_LIBS="-lpcsclite"
6533N/A
6533N/A# No dependency information exists the first time this package is built
6533N/ACONFIGURE_OPTIONS += --disable-dependency-tracking
6533N/A
6533N/ACONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
6533N/A
6533N/A# Common targets
6533N/Aconfigure: $(CONFIGURE_64)
6533N/A
6533N/Abuild: $(BUILD_64)
6533N/A
6533N/Ainstall: $(INSTALL_64)
6533N/A
6533N/Atest: $(NO_TEST)
6533N/A
6533N/A# Required packages
6533N/AREQUIRED_PACKAGES += library/security/pcsc/pcsclite
6533N/AREQUIRED_PACKAGES += library/zlib
6533N/AREQUIRED_PACKAGES += system/library
6533N/AREQUIRED_PACKAGES += system/library/c++-runtime
6533N/AREQUIRED_PACKAGES += system/linker