author | Jan Parcel <jan.parcel@oracle.com> |
Wed, 06 Jul 2016 18:46:13 -0700 | |
branch | s11u3-sru |
changeset 6363 | 052c5c0a107d |
child 6529 | 50a81baffe58 |
permissions | -rw-r--r-- |
6363
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
1 |
# |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
3 |
# |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
7 |
# |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
12 |
# |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
18 |
# |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
20 |
|
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
21 |
# |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
22 |
# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
23 |
# |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
24 |
|
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
25 |
include ../../make-rules/shared-macros.mk |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
26 |
|
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
27 |
BITS= 64 |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
28 |
COMPONENT_NAME= openca-ocspd |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
29 |
COMPONENT_VERSION= 3.1.2 |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
30 |
|
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
31 |
# Version 3.1.2 of openca-ocspd has not been released, yet. There is no source |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
32 |
# tarball for it. In Solaris 12, Userland consolidation has infrastructure |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
33 |
# to fetch sources from SCM repository based on a specified git commit hash. |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
34 |
# Such infrastructure is not present in Solaris 11.3. So we take the latest |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
35 |
# tarball with 3.1.1 and apply few patches on top of it to get the same sources |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
36 |
# as in Solaris 12. These are named 001-*, 002-* and 003-*. |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
37 |
# Once version 3.1.2 is available, simply delete these patches. |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
38 |
COMPONENT_PROJECT_URL= https://www.openca.org/projects/ocspd/ |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
39 |
COMPONENT_SRC= $(COMPONENT_NAME)-3.1.1 |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
40 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
41 |
COMPONENT_ARCHIVE_HASH= \ |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
42 |
sha256:10d56cecb862d94ed8742bdf52958cebe1b3f8d87625ba014b0ae2b7c4820de5 |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
43 |
COMPONENT_ARCHIVE_URL= \ |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
44 |
http://downloads.sourceforge.net/project/openca/$(COMPONENT_NAME)/releases/v3.1.1/sources/$(COMPONENT_ARCHIVE) |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
45 |
COMPONENT_BUGDB= library/smartcard |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
46 |
|
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
47 |
TPNO = 28048 |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
48 |
|
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
49 |
include $(WS_MAKE_RULES)/prep.mk |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
50 |
include $(WS_MAKE_RULES)/configure.mk |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
51 |
include $(WS_MAKE_RULES)/ips.mk |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
52 |
|
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
53 |
PKG_PROTO_DIRS += $(COMPONENT_SRC)/docs |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
54 |
PKG_PROTO_DIRS += $(COMPONENT_SRC)/etc/ca.d |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
55 |
|
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
56 |
POD2MAN_PATH = /usr/perl5/$(PERL_VERSION)/bin |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
57 |
|
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
58 |
COMPONENT_BUILD_ENV += PATH="$(PATH):$(POD2MAN_PATH)" |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
59 |
|
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
60 |
CONFIGURE_BINDIR.64 = $(CONFIGURE_PREFIX)/bin |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
61 |
CONFIGURE_SBINDIR.64 = $(CONFIGURE_PREFIX)/sbin |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
62 |
|
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
63 |
CONFIGURE_ENV += "CFLAGS=$(CFLAGS)" |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
64 |
|
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
65 |
# common targets |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
66 |
configure: $(CONFIGURE_64) |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
67 |
|
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
68 |
build: $(BUILD_64) |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
69 |
|
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
70 |
install: $(INSTALL_64) |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
71 |
|
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
72 |
# Skip test because of set up requirements. |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
73 |
# |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
74 |
# The upstream archive includes a test script (test.sh), which tries to run |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
75 |
# "openssl ocsp" command multiple times. However, it assumes that we already |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
76 |
# have necessary pem files (keys/certficates for CA, ocspd daemon, and others, |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
77 |
# and also the CRL), and those files are not included in the archive. |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
78 |
# |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
79 |
# To test manually, follow a guide document for the smartcard project. |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
80 |
test: $(NO_TEST) |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
81 |
|
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
82 |
REQUIRED_PACKAGES += library/security/ocsp/libpki |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
83 |
REQUIRED_PACKAGES += library/security/openssl |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
84 |
REQUIRED_PACKAGES += library/security/openssl/openssl-fips-140 |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
85 |
REQUIRED_PACKAGES += shell/bash |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
86 |
REQUIRED_PACKAGES += shell/ksh93 |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
87 |
REQUIRED_PACKAGES += system/core-os |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
88 |
REQUIRED_PACKAGES += system/library |
052c5c0a107d
PSARC/2016/217 Smartcard Reintroduction
Jan Parcel <jan.parcel@oracle.com>
parents:
diff
changeset
|
89 |
REQUIRED_PACKAGES += system/network |