5895N/A#
5895N/A# CDDL HEADER START
5895N/A#
5895N/A# The contents of this file are subject to the terms of the
5895N/A# Common Development and Distribution License (the "License").
5895N/A# You may not use this file except in compliance with the License.
5895N/A#
5895N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5895N/A# or http://www.opensolaris.org/os/licensing.
5895N/A# See the License for the specific language governing permissions
5895N/A# and limitations under the License.
5895N/A#
5895N/A# When distributing Covered Code, include this CDDL HEADER in each
5895N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5895N/A# If applicable, add the following below this CDDL HEADER, with the
5895N/A# fields enclosed by brackets "[]" replaced with your own identifying
5895N/A# information: Portions Copyright [yyyy] [name of copyright owner]
5895N/A#
5895N/A# CDDL HEADER END
5895N/A
5895N/A#
5895N/A# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
5895N/A#
5895N/A
5895N/ABUILD_BITS= 64
5895N/Ainclude ../../make-rules/shared-macros.mk
5895N/A
6869N/A# COMPONENT_VERSION number in ./history must be >= s11 COMPONENT_VERSION
6869N/A# at all times, so update ./history if planning to backport an update.
6869N/A
5895N/ACOMPONENT_NAME= libpki
5895N/ACOMPONENT_VERSION= 0.8.9
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)
5895N/ACOMPONENT_PROJECT_URL= https://www.openca.org/projects/libpki/
5895N/ACOMPONENT_ARCHIVE_SRC= git
6125N/ACOMPONENT_BUGDB= library/smartcard
5895N/A
5895N/AGIT_REPO= https://github.com/openca/libpki
5895N/AGIT_COMMIT_ID= b46aebc
5895N/AGIT_HASH= sha256:16e84a529f0871dcff175c717cf472bdad0de0a4719bf1f204d49d9011eace2c
5895N/A
5895N/ATPNO = 26905
5895N/A
5895N/Ainclude $(WS_MAKE_RULES)/common.mk
5895N/A
5895N/APKG_PROTO_DIRS += $(COMPONENT_SRC)/docs
5895N/A
6255N/A# Need to include the path below because not all headers are available in
6255N/A# $(BUILD_DIR)/src/libpki.
6255N/ACPPFLAGS += -I$(COMPONENT_DIR)/$(COMPONENT_SRC)/src
6255N/A
6255N/A# configure.in and Makefile.am patches need configure script recreation.
6255N/ACOMPONENT_PREP_ACTION +=(cd $(@D); autoreconf);
6255N/A
5895N/A# This is necessary because 'gmake install' tries to install some files under
5895N/A# /usr/bin without it.
5895N/ACONFIGURE_ENV += DESTDIR="$(PROTO_DIR)"
5895N/A
5895N/ACONFIGURE_OPTIONS += --with-libdir=$(USRLIBDIR64)
5895N/ACONFIGURE_OPTIONS += --with-lib-prefix=$(USRLIBDIR64)
5895N/A
5895N/ACOMPONENT_PRE_TEST_ACTION = files/setup_test.sh $(@D) $(COMPONENT_SRC)
5895N/A
5895N/A# Tests may output some compilation lines, so just pull out the relevant test
5895N/A# output lines for the test results comparison.
5895N/ACOMPONENT_TEST_TRANSFORMS += \
5895N/A '-n ' \
5895N/A '-e "/\# TOTAL:/p" ' \
5895N/A '-e "/\# PASS:/p" ' \
5895N/A '-e "/\# SKIP:/p" ' \
5895N/A '-e "/\# XFAIL:/p" ' \
5895N/A '-e "/\# FAIL:/p" ' \
5895N/A '-e "/\# XPASS:/p" ' \
5895N/A '-e "/\# ERROR:/p" '
5895N/A
5895N/AREQUIRED_PACKAGES += library/libxml2
6125N/AREQUIRED_PACKAGES += library/openldap
5895N/AREQUIRED_PACKAGES += library/security/openssl
5895N/AREQUIRED_PACKAGES += library/security/openssl/openssl-fips-140
5895N/AREQUIRED_PACKAGES += shell/ksh93
6125N/AREQUIRED_PACKAGES += system/network/ldap/openldap