1923N/A#
1923N/A# CDDL HEADER START
1923N/A#
1923N/A# The contents of this file are subject to the terms of the
1923N/A# Common Development and Distribution License (the "License").
1923N/A# You may not use this file except in compliance with the License.
1923N/A#
1923N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1923N/A# or http://www.opensolaris.org/os/licensing.
1923N/A# See the License for the specific language governing permissions
1923N/A# and limitations under the License.
1923N/A#
1923N/A# When distributing Covered Code, include this CDDL HEADER in each
1923N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1923N/A# If applicable, add the following below this CDDL HEADER, with the
1923N/A# fields enclosed by brackets "[]" replaced with your own identifying
1923N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1923N/A#
1923N/A# CDDL HEADER END
1923N/A#
1923N/A
1923N/A#
3762N/A# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
1923N/A#
1923N/A
1923N/Ainclude ../../make-rules/shared-macros.mk
1923N/A
1923N/ACOMPONENT_NAME= stunnel
1923N/ACOMPONENT_VERSION= 4.56
1923N/ACOMPONENT_PROJECT_URL= http://www.stunnel.org/
1923N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1923N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
1923N/ACOMPONENT_ARCHIVE_HASH= \
1923N/A sha256:9cae2cfbe26d87443398ce50d7d5db54e5ea363889d5d2ec8d2778a01c871293
1923N/A
1923N/ACOMPONENT_ARCHIVE_URL= http://pkgs.fedoraproject.org/repo/pkgs/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)/ac4c4a30bd7a55b6687cbd62d864054c/$(COMPONENT_ARCHIVE)
1923N/A
1923N/ACOMPONENT_BUGDB= utility/stunnel
3762N/ATPNO= 21367
1923N/A
3996N/Ainclude $(WS_MAKE_RULES)/prep.mk
3996N/Ainclude $(WS_MAKE_RULES)/configure.mk
3996N/Ainclude $(WS_MAKE_RULES)/ips.mk
1923N/A
1923N/A# need /usr/perl5/bin on path to access pod2man perl script, used by
1923N/A# the build to create docs
1923N/ACOMPONENT_BUILD_ENV += PATH=/usr/perl5/bin:$(PATH)
1923N/A
1923N/ACPPFLAGS += "-DPIDFILE='\"/var/run/stunnel.pid\"'"
1923N/A
1923N/A# used to generate the 64-bit interposer location
1923N/ACPPFLAGS += -DMACH64='\"$(MACH64)\"'
1923N/A
1923N/ACONFIGURE_OPTIONS += --disable-fips
1923N/ACONFIGURE_OPTIONS += --enable-ipv6
1923N/ACONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
1923N/ACONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
1923N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
1923N/ACONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
1923N/A
1923N/A# used to generate LD_PRELOAD_* interposer pathnames
1923N/ACOMPONENT_BUILD_ARGS += pkglibdir=/usr/lib/stunnel
1923N/A
1923N/ACOMPONENT_PRE_INSTALL_ACTION = \
1923N/A $(MKDIR) $(PROTOETCDIR)/stunnel ; \
1923N/A $(TOUCH) $(PROTOETCDIR)/stunnel/stunnel.pem
1923N/A
1923N/APKG_PROTO_DIRS += $(COMPONENT_DIR)/files
1923N/A
1923N/A# common targets
1923N/Abuild: $(BUILD_32_and_64)
1923N/A
1923N/Ainstall: $(INSTALL_32_and_64)
1923N/A
1923N/Atest: $(NO_TESTS)
1923N/A
1923N/A
3996N/AREQUIRED_PACKAGES += library/security/openssl
3996N/AREQUIRED_PACKAGES += system/core-os
3996N/AREQUIRED_PACKAGES += system/library
3996N/AREQUIRED_PACKAGES += system/linker
3996N/AREQUIRED_PACKAGES += system/network