author | Rich Burridge <rich.burridge@oracle.com> |
Tue, 02 May 2017 08:26:02 -0700 | |
changeset 7960 | 80539200ddb3 |
parent 7829 | 2de4f4ace09c |
permissions | -rw-r--r-- |
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 |
# |
7687
1093e2a9adbd
25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents:
7527
diff
changeset
|
22 |
# Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. |
5897
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 |
7687
1093e2a9adbd
25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents:
7527
diff
changeset
|
40 |
COMPONENT_ANITYA_ID= 13309 |
5897
495a9e2444e4
PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff
changeset
|
41 |
|
495a9e2444e4
PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff
changeset
|
42 |
GIT_REPO= https://github.com/openca/libpki |
495a9e2444e4
PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff
changeset
|
43 |
GIT_COMMIT_ID= b46aebc |
495a9e2444e4
PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff
changeset
|
44 |
GIT_HASH= sha256:16e84a529f0871dcff175c717cf472bdad0de0a4719bf1f204d49d9011eace2c |
495a9e2444e4
PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff
changeset
|
45 |
|
495a9e2444e4
PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff
changeset
|
46 |
TPNO = 26905 |
495a9e2444e4
PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff
changeset
|
47 |
|
495a9e2444e4
PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff
changeset
|
48 |
include $(WS_MAKE_RULES)/common.mk |
495a9e2444e4
PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff
changeset
|
49 |
|
495a9e2444e4
PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff
changeset
|
50 |
PKG_PROTO_DIRS += $(COMPONENT_SRC)/docs |
495a9e2444e4
PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff
changeset
|
51 |
|
6257
cdf29f584705
23528052 libpki's configure and Makefile need refactoring
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
6127
diff
changeset
|
52 |
# 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
|
53 |
# $(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
|
54 |
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
|
55 |
|
cdf29f584705
23528052 libpki's configure and Makefile need refactoring
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
6127
diff
changeset
|
56 |
# 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
|
57 |
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
|
58 |
|
5897
495a9e2444e4
PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff
changeset
|
59 |
# 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
|
60 |
# /usr/bin without it. |
495a9e2444e4
PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff
changeset
|
61 |
CONFIGURE_ENV += DESTDIR="$(PROTO_DIR)" |
495a9e2444e4
PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff
changeset
|
62 |
|
495a9e2444e4
PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff
changeset
|
63 |
CONFIGURE_OPTIONS += --with-libdir=$(USRLIBDIR64) |
495a9e2444e4
PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff
changeset
|
64 |
CONFIGURE_OPTIONS += --with-lib-prefix=$(USRLIBDIR64) |
495a9e2444e4
PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff
changeset
|
65 |
|
495a9e2444e4
PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff
changeset
|
66 |
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
|
67 |
|
495a9e2444e4
PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff
changeset
|
68 |
# 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
|
69 |
# output lines for the test results comparison. |
495a9e2444e4
PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff
changeset
|
70 |
COMPONENT_TEST_TRANSFORMS += \ |
495a9e2444e4
PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff
changeset
|
71 |
'-n ' \ |
495a9e2444e4
PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff
changeset
|
72 |
'-e "/\# TOTAL:/p" ' \ |
495a9e2444e4
PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff
changeset
|
73 |
'-e "/\# PASS:/p" ' \ |
495a9e2444e4
PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff
changeset
|
74 |
'-e "/\# SKIP:/p" ' \ |
495a9e2444e4
PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff
changeset
|
75 |
'-e "/\# XFAIL:/p" ' \ |
495a9e2444e4
PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff
changeset
|
76 |
'-e "/\# FAIL:/p" ' \ |
495a9e2444e4
PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff
changeset
|
77 |
'-e "/\# XPASS:/p" ' \ |
495a9e2444e4
PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff
changeset
|
78 |
'-e "/\# ERROR:/p" ' |
495a9e2444e4
PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff
changeset
|
79 |
|
495a9e2444e4
PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff
changeset
|
80 |
REQUIRED_PACKAGES += library/libxml2 |
7829
2de4f4ace09c
25766761 prepare Userland for 11.4
John Beck <John.Beck@Oracle.COM>
parents:
7687
diff
changeset
|
81 |
$(SOLARIS_11_3_ONLY)REQUIRED_PACKAGES += library/openldap |
5897
495a9e2444e4
PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff
changeset
|
82 |
REQUIRED_PACKAGES += library/security/openssl |
495a9e2444e4
PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff
changeset
|
83 |
REQUIRED_PACKAGES += library/security/openssl/openssl-fips-140 |
495a9e2444e4
PSARC/2016/220 libPKI
naoki.tanaka@oracle.com <naoki.tanaka@oracle.com>
parents:
diff
changeset
|
84 |
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
|
85 |
REQUIRED_PACKAGES += system/network/ldap/openldap |