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