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