6361N/A#
6361N/A# CDDL HEADER START
6361N/A#
6361N/A# The contents of this file are subject to the terms of the
6361N/A# Common Development and Distribution License (the "License").
6361N/A# You may not use this file except in compliance with the License.
6361N/A#
6361N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6361N/A# or http://www.opensolaris.org/os/licensing.
6361N/A# See the License for the specific language governing permissions
6361N/A# and limitations under the License.
6361N/A#
6361N/A# When distributing Covered Code, include this CDDL HEADER in each
6361N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6361N/A# If applicable, add the following below this CDDL HEADER, with the
6361N/A# fields enclosed by brackets "[]" replaced with your own identifying
6361N/A# information: Portions Copyright [yyyy] [name of copyright owner]
6361N/A#
6361N/A# CDDL HEADER END
6361N/A
6361N/A#
6361N/A# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
6361N/A#
6361N/A
6361N/Ainclude ../../make-rules/shared-macros.mk
6361N/A
6361N/ABITS= 64
6361N/ACOMPONENT_NAME= openca-ocspd
6361N/ACOMPONENT_VERSION= 3.1.2
6361N/A
6361N/A# Version 3.1.2 of openca-ocspd has not been released, yet. There is no source
6361N/A# tarball for it. In Solaris 12, Userland consolidation has infrastructure
6361N/A# to fetch sources from SCM repository based on a specified git commit hash.
6361N/A# Such infrastructure is not present in Solaris 11.3. So we take the latest
6361N/A# tarball with 3.1.1 and apply few patches on top of it to get the same sources
6361N/A# as in Solaris 12. These are named 001-*, 002-* and 003-*.
6361N/A# Once version 3.1.2 is available, simply delete these patches.
6361N/ACOMPONENT_PROJECT_URL= https://www.openca.org/projects/ocspd/
6361N/ACOMPONENT_SRC= $(COMPONENT_NAME)-3.1.1
6361N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
6361N/ACOMPONENT_ARCHIVE_HASH= \
6361N/A sha256:10d56cecb862d94ed8742bdf52958cebe1b3f8d87625ba014b0ae2b7c4820de5
6361N/ACOMPONENT_ARCHIVE_URL= \
6361N/A http://downloads.sourceforge.net/project/openca/$(COMPONENT_NAME)/releases/v3.1.1/sources/$(COMPONENT_ARCHIVE)
6361N/ACOMPONENT_BUGDB= library/smartcard
6361N/A
6361N/ATPNO = 28048
6361N/A
6361N/Ainclude $(WS_MAKE_RULES)/prep.mk
6361N/Ainclude $(WS_MAKE_RULES)/configure.mk
6361N/Ainclude $(WS_MAKE_RULES)/ips.mk
6361N/A
6361N/APKG_PROTO_DIRS += $(COMPONENT_SRC)/docs
6361N/APKG_PROTO_DIRS += $(COMPONENT_SRC)/etc/ca.d
6361N/A
6361N/APOD2MAN_PATH = /usr/perl5/$(PERL_VERSION)/bin
6361N/A
6361N/ACOMPONENT_BUILD_ENV += PATH="$(PATH):$(POD2MAN_PATH)"
6361N/A
6361N/ACONFIGURE_BINDIR.64 = $(CONFIGURE_PREFIX)/bin
6361N/ACONFIGURE_SBINDIR.64 = $(CONFIGURE_PREFIX)/sbin
6361N/A
6361N/ACONFIGURE_ENV += "CFLAGS=$(CFLAGS)"
6361N/A
6625N/ACOMPONENT_PRE_BUILD_ACTION = $(CP) $(COMPONENT_SRC)/docs/ocspd.3.pod $(@D)/docs
6625N/A
6361N/A# common targets
6361N/Aconfigure: $(CONFIGURE_64)
6361N/A
6361N/Abuild: $(BUILD_64)
6361N/A
6361N/Ainstall: $(INSTALL_64)
6361N/A
6361N/A# Skip test because of set up requirements.
6361N/A#
6361N/A# The upstream archive includes a test script (test.sh), which tries to run
6361N/A# "openssl ocsp" command multiple times. However, it assumes that we already
6361N/A# have necessary pem files (keys/certficates for CA, ocspd daemon, and others,
6361N/A# and also the CRL), and those files are not included in the archive.
6361N/A#
6361N/A# To test manually, follow a guide document for the smartcard project.
6361N/Atest: $(NO_TEST)
6361N/A
6361N/AREQUIRED_PACKAGES += library/security/ocsp/libpki
6527N/AREQUIRED_PACKAGES += library/security/ocsp/libpki-mozillaldap
6527N/AREQUIRED_PACKAGES += library/security/ocsp/libpki-openldap
6361N/AREQUIRED_PACKAGES += library/security/openssl
6361N/AREQUIRED_PACKAGES += library/security/openssl/openssl-fips-140
6361N/AREQUIRED_PACKAGES += shell/bash
6361N/AREQUIRED_PACKAGES += shell/ksh93
6361N/AREQUIRED_PACKAGES += system/core-os
6361N/AREQUIRED_PACKAGES += system/library
6361N/AREQUIRED_PACKAGES += system/network