Makefile revision 6399
1N/A#
1N/A# CDDL HEADER START
1N/A#
1N/A# The contents of this file are subject to the terms of the
1N/A# Common Development and Distribution License (the "License").
1N/A# You may not use this file except in compliance with the License.
1N/A#
1N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1N/A# or http://www.opensolaris.org/os/licensing.
1N/A# See the License for the specific language governing permissions
1N/A# and limitations under the License.
1N/A#
1N/A# When distributing Covered Code, include this CDDL HEADER in each
1N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1N/A# If applicable, add the following below this CDDL HEADER, with the
1N/A# fields enclosed by brackets "[]" replaced with your own identifying
1N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1N/A#
1N/A# CDDL HEADER END
1N/A
1N/A#
1N/A# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
1N/A#
1N/A
1N/A# TESTING:
1N/A# Requires physical card reader attached to USB with card inserted.
1N/A# SCM Microsystems, model SCR3310 is what was used in-house to test.
1N/A# The pkcs11_coolkey package, once built needs to be installed on
1N/A# the system building and running the test.
1N/A#
1N/A# To build the test:
1N/A# $ cd components/coolkey/test
1N/A# $ gmake build-test
1N/A#
1N/A# To run the test, as root:
1N/A# # cd components/coolkey/test
1N/A# # ./testcoolkey> testoutput.log
1N/A# enter PIN at prompt and press <enter>
1N/A#
1N/A# If the last line of output says:
1N/A# Testing libcoolkey... DONE. Status = 0
1N/A# then you have a finished test and results.
1N/A# Search for "failed" in testoutput.log to see the actual failures, then
1N/A# review any failed messages to determine if the test ran successfully or not.
1N/A
1N/ABUILD_BITS= 64
1N/Ainclude ../../make-rules/shared-macros.mk
1N/A
1N/ACOMPONENT_NAME= coolkey
1N/ACOMPONENT_VERSION= 1.1.0
1N/ACOMPONENT_PROJECT_URL= http://pki.fedoraproject.org/wiki/CoolKey
1N/ACOMPONENT_DOWNLOAD_URL= http://pkgs.fedoraproject.org/repo/pkgs/$(COMPONENT_NAME)/$(COMPONENT_NAME)-$(COMPONENT_VERSION).tar.gz/815a1811a46bf9b8782107c073149cbe
1N/ACOMPONENT_ARCHIVE_HASH= sha256:8448e3abb81bffc593c96b577dcfbc05b40e8684188456c31be15fae73d730f7
1N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_DOWNLOAD_URL)/$(COMPONENT_ARCHIVE)
1N/ACOMPONENT_BUGDB= library/smartcard
1N/A
1N/ATPNO = 25487
1N/A
1N/Ainclude $(WS_MAKE_RULES)/common.mk
1N/A
1N/A# configuration related patch needs aclocal to be regenerated
1N/ACOMPONENT_PREP_ACTION +=(cd $(@D); autoconf);
1N/A
1N/A# do not add the SUNWspro area to the RUNPATH
1N/ALD_UNSET += "-R$(SPRO_VROOT)/lib/$(MACH64)"
1N/ACOMPONENT_BUILD_ENV += LD_UNSET="$(LD_UNSET)"
1N/ACOMPONENT_INSTALL_ENV += LD_UNSET="$(LD_UNSET)"
1N/A
1N/A# requires PC/SC headers and library
1N/ACONFIGURE_ENV += PCSC_CFLAGS="-I$(USRINCDIR)/PCSC"
1N/ACONFIGURE_ENV += PCSC_LIBS="-lpcsclite"
1N/A
1N/A# no dependency information exists the first time this package is built
1N/ACONFIGURE_OPTIONS += --disable-dependency-tracking
1N/A
# required packages
REQUIRED_PACKAGES += library/security/pcsc/pcsclite
REQUIRED_PACKAGES += library/zlib
REQUIRED_PACKAGES += system/library/c++-runtime