components/libpki/Makefile
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Mon, 02 Jan 2017 13:37:03 -0800
changeset 7527 352b7a456c30
parent 6911 7b878dfe6f0d
child 7687 1093e2a9adbd
permissions -rw-r--r--
25305616 RE audits don't like the userland package anymore
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5897
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
     1
#
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
     3
#
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
     7
#
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    12
#
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    18
#
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    20
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    21
#
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    22
# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    23
#
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    24
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    25
BUILD_BITS= 64
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    27
6871
e5ee1bcc6bdb 24300806 libpki needs added packages in s11u3 for pkgmerge issue with mediator
Jan Parcel <jan.parcel@oracle.com>
parents: 6257
diff changeset
    28
# COMPONENT_VERSION number in ./history must be >= s11 COMPONENT_VERSION
e5ee1bcc6bdb 24300806 libpki needs added packages in s11u3 for pkgmerge issue with mediator
Jan Parcel <jan.parcel@oracle.com>
parents: 6257
diff changeset
    29
# at all times, so update ./history if planning to backport an update.
e5ee1bcc6bdb 24300806 libpki needs added packages in s11u3 for pkgmerge issue with mediator
Jan Parcel <jan.parcel@oracle.com>
parents: 6257
diff changeset
    30
5897
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    31
COMPONENT_NAME=		libpki
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    32
COMPONENT_VERSION=	0.8.9
6911
7b878dfe6f0d 24661161 COMPONENT_SRC and COMPONENT_ARCHIVE are un-overridable in prep-*.mk
Danek Duvall <danek.duvall@oracle.com>
parents: 6871
diff changeset
    33
# The new form includes the commit as a disambiguator, but the current archive
7b878dfe6f0d 24661161 COMPONENT_SRC and COMPONENT_ARCHIVE are un-overridable in prep-*.mk
Danek Duvall <danek.duvall@oracle.com>
parents: 6871
diff changeset
    34
# wasn't created with that in its name, so we use the old form until the next
7b878dfe6f0d 24661161 COMPONENT_SRC and COMPONENT_ARCHIVE are un-overridable in prep-*.mk
Danek Duvall <danek.duvall@oracle.com>
parents: 6871
diff changeset
    35
# update.
7b878dfe6f0d 24661161 COMPONENT_SRC and COMPONENT_ARCHIVE are un-overridable in prep-*.mk
Danek Duvall <danek.duvall@oracle.com>
parents: 6871
diff changeset
    36
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
5897
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    37
COMPONENT_PROJECT_URL=	https://www.openca.org/projects/libpki/
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    38
COMPONENT_ARCHIVE_SRC=	git
6127
54565d218793 23492228 libpki doesn't build (work?) on s12-100
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents: 5897
diff changeset
    39
COMPONENT_BUGDB=	library/smartcard
5897
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    40
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    41
GIT_REPO= https://github.com/openca/libpki
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    42
GIT_COMMIT_ID= b46aebc
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    43
GIT_HASH=  sha256:16e84a529f0871dcff175c717cf472bdad0de0a4719bf1f204d49d9011eace2c
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    44
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    45
TPNO =			26905
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    46
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    47
include $(WS_MAKE_RULES)/common.mk
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    48
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    49
PKG_PROTO_DIRS += $(COMPONENT_SRC)/docs
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    50
6257
cdf29f584705 23528052 libpki's configure and Makefile need refactoring
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents: 6127
diff changeset
    51
# Need to include the path below because not all headers are available in
cdf29f584705 23528052 libpki's configure and Makefile need refactoring
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents: 6127
diff changeset
    52
# $(BUILD_DIR)/src/libpki.
cdf29f584705 23528052 libpki's configure and Makefile need refactoring
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents: 6127
diff changeset
    53
CPPFLAGS += -I$(COMPONENT_DIR)/$(COMPONENT_SRC)/src
cdf29f584705 23528052 libpki's configure and Makefile need refactoring
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents: 6127
diff changeset
    54
cdf29f584705 23528052 libpki's configure and Makefile need refactoring
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents: 6127
diff changeset
    55
# configure.in and Makefile.am patches need configure script recreation.
cdf29f584705 23528052 libpki's configure and Makefile need refactoring
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents: 6127
diff changeset
    56
COMPONENT_PREP_ACTION +=(cd $(@D); autoreconf);
cdf29f584705 23528052 libpki's configure and Makefile need refactoring
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents: 6127
diff changeset
    57
5897
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    58
# This is necessary because 'gmake install' tries to install some files under
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    59
# /usr/bin without it.
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    60
CONFIGURE_ENV +=	DESTDIR="$(PROTO_DIR)"
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    61
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    62
CONFIGURE_OPTIONS +=	--with-libdir=$(USRLIBDIR64)
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    63
CONFIGURE_OPTIONS +=	--with-lib-prefix=$(USRLIBDIR64)
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    64
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    65
COMPONENT_PRE_TEST_ACTION = files/setup_test.sh $(@D) $(COMPONENT_SRC)
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    66
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    67
# Tests may output some compilation lines, so just pull out the relevant test
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    68
# output lines for the test results comparison.
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    69
COMPONENT_TEST_TRANSFORMS += \
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    70
	'-n ' \
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    71
	'-e "/\# TOTAL:/p" ' \
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    72
	'-e "/\# PASS:/p" ' \
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    73
	'-e "/\# SKIP:/p" ' \
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    74
	'-e "/\# XFAIL:/p" ' \
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    75
	'-e "/\# FAIL:/p" ' \
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    76
	'-e "/\# XPASS:/p" ' \
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    77
	'-e "/\# ERROR:/p" '
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    78
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    79
REQUIRED_PACKAGES += library/libxml2
7527
352b7a456c30 25305616 RE audits don't like the userland package anymore
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 6911
diff changeset
    80
$(SOLARIS_11_ONLY)REQUIRED_PACKAGES += library/openldap
5897
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    81
REQUIRED_PACKAGES += library/security/openssl
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    82
REQUIRED_PACKAGES += library/security/openssl/openssl-fips-140
495a9e2444e4 PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff changeset
    83
REQUIRED_PACKAGES += shell/ksh93
6127
54565d218793 23492228 libpki doesn't build (work?) on s12-100
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents: 5897
diff changeset
    84
REQUIRED_PACKAGES += system/network/ldap/openldap