Makefile revision 1378
c25356d5978632df6203437e1953bcb29e0c736fTimo Sirainen#
c25356d5978632df6203437e1953bcb29e0c736fTimo Sirainen# CDDL HEADER START
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen#
8e371a3ce32bd64288786855b8ce0cb63f19f7d1Timo Sirainen# The contents of this file are subject to the terms of the
d9fdacd5fb3e07997e5c389739d2054f0c8441d8Timo Sirainen# Common Development and Distribution License (the "License").
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# You may not use this file except in compliance with the License.
5666a3d6a7ea89362b8d9e8b39b15424cd9d6388Timo Sirainen#
a64adf62fa33f2463a86f990217b0c9078531a40Timo Sirainen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8e371a3ce32bd64288786855b8ce0cb63f19f7d1Timo Sirainen# or http://www.opensolaris.org/os/licensing.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen# See the License for the specific language governing permissions
573f0491a5733fe21fa062a455acb4790b4e0499Timo Sirainen# and limitations under the License.
573f0491a5733fe21fa062a455acb4790b4e0499Timo Sirainen#
573f0491a5733fe21fa062a455acb4790b4e0499Timo Sirainen# When distributing Covered Code, include this CDDL HEADER in each
3ed2d0f6b5e67e2663d44489d9da3176823789a8Timo Sirainen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
65f8fb656051f1059f7b5a2da9c5555adcc30439Timo Sirainen# If applicable, add the following below this CDDL HEADER, with the
8e371a3ce32bd64288786855b8ce0cb63f19f7d1Timo Sirainen# fields enclosed by brackets "[]" replaced with your own identifying
8e371a3ce32bd64288786855b8ce0cb63f19f7d1Timo Sirainen# information: Portions Copyright [yyyy] [name of copyright owner]
8e371a3ce32bd64288786855b8ce0cb63f19f7d1Timo Sirainen#
8e371a3ce32bd64288786855b8ce0cb63f19f7d1Timo Sirainen# CDDL HEADER END
8e371a3ce32bd64288786855b8ce0cb63f19f7d1Timo Sirainen#
8e371a3ce32bd64288786855b8ce0cb63f19f7d1Timo Sirainen
8e371a3ce32bd64288786855b8ce0cb63f19f7d1Timo Sirainen#
8e371a3ce32bd64288786855b8ce0cb63f19f7d1Timo Sirainen# Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
fdc557286bc9f92c5f3bb49096ff6e2bcec0ea79Timo Sirainen#
a64adf62fa33f2463a86f990217b0c9078531a40Timo Sirainen
a64adf62fa33f2463a86f990217b0c9078531a40Timo Siraineninclude ../../make-rules/shared-macros.mk
f7539a17ea306191b53b8f5e752e228937df9ec3Timo Sirainen
2615df45a8027948a474abe5e817b34b0499c171Timo SirainenCOMPONENT_NAME= stunnel
2dd39e478269d6fb0bb26d12b394aa30ee965e38Timo SirainenCOMPONENT_VERSION= 4.29
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo SirainenCOMPONENT_PROJECT_URL= http://stunnel.mirt.net/
563273bdac80393af63b9520cbf4d24cc0efd028Timo SirainenCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
563273bdac80393af63b9520cbf4d24cc0efd028Timo SirainenCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo SirainenCOMPONENT_ARCHIVE_HASH= \
2615df45a8027948a474abe5e817b34b0499c171Timo Sirainen sha256:018064e852a2a125bcfb4b81baa77b5701ccf6aabe6a47564bfc046b18d11f9b
2615df45a8027948a474abe5e817b34b0499c171Timo Sirainen
2615df45a8027948a474abe5e817b34b0499c171Timo Sirainen# ftp://stunnel.mirt.net/stunnel/stunnel-4.29.tar.gz is no longer there.
2615df45a8027948a474abe5e817b34b0499c171Timo SirainenCOMPONENT_ARCHIVE_URL= http://pkgs.fedoraproject.org/repo/pkgs/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)/14dc3f8412947f0548975cbce74d6863/$(COMPONENT_ARCHIVE)
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen
1d2b188f0eedc3cab6e27ceac5425a037f38042eTimo SirainenCOMPONENT_BUGDB= utility/stunnel
1d2b188f0eedc3cab6e27ceac5425a037f38042eTimo Sirainen
1d2b188f0eedc3cab6e27ceac5425a037f38042eTimo Siraineninclude ../../make-rules/prep.mk
1d2b188f0eedc3cab6e27ceac5425a037f38042eTimo Siraineninclude ../../make-rules/configure.mk
3e564425db51f3921ce4de11859777135fdedd15Timo Siraineninclude ../../make-rules/ips.mk
fdc557286bc9f92c5f3bb49096ff6e2bcec0ea79Timo Sirainen
fdc557286bc9f92c5f3bb49096ff6e2bcec0ea79Timo Sirainen# need /usr/perl5/bin on path to access pod2man perl script, used by
8e371a3ce32bd64288786855b8ce0cb63f19f7d1Timo Sirainen# the build to create docs
8e371a3ce32bd64288786855b8ce0cb63f19f7d1Timo SirainenCOMPONENT_BUILD_ENV += PATH=/usr/perl5/bin:$(PATH)
8e371a3ce32bd64288786855b8ce0cb63f19f7d1Timo Sirainen
8e371a3ce32bd64288786855b8ce0cb63f19f7d1Timo SirainenCPPFLAGS += "-DPIDFILE='\"/var/run/stunnel.pid\"'"
8e371a3ce32bd64288786855b8ce0cb63f19f7d1Timo Sirainen
563273bdac80393af63b9520cbf4d24cc0efd028Timo SirainenCONFIGURE_OPTIONS += --disable-fips
563273bdac80393af63b9520cbf4d24cc0efd028Timo SirainenCONFIGURE_OPTIONS += --enable-ipv6
563273bdac80393af63b9520cbf4d24cc0efd028Timo SirainenCONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
563273bdac80393af63b9520cbf4d24cc0efd028Timo SirainenCONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
e5fd6dfd0a492e4708d4dbb7971d7fc5d7b8fd85Timo SirainenCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
e5fd6dfd0a492e4708d4dbb7971d7fc5d7b8fd85Timo SirainenCONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
4ba9a1d3facc515b3feb5238a16bcf91f76fac61Timo Sirainen
4ba9a1d3facc515b3feb5238a16bcf91f76fac61Timo SirainenCOMPONENT_PRE_INSTALL_ACTION = \
4ba9a1d3facc515b3feb5238a16bcf91f76fac61Timo Sirainen $(MKDIR) $(PROTOETCDIR)/stunnel ; \
563273bdac80393af63b9520cbf4d24cc0efd028Timo Sirainen $(TOUCH) $(PROTOETCDIR)/stunnel/stunnel.pem
563273bdac80393af63b9520cbf4d24cc0efd028Timo Sirainen
fdc557286bc9f92c5f3bb49096ff6e2bcec0ea79Timo SirainenPKG_PROTO_DIRS += $(COMPONENT_DIR)/files
57a8c6a95e4bce3eeaba36985adb81c07dd683ffTimo Sirainen
563273bdac80393af63b9520cbf4d24cc0efd028Timo Sirainen# common targets
fdc557286bc9f92c5f3bb49096ff6e2bcec0ea79Timo Sirainenbuild: $(BUILD_32_and_64)
539977f9257bd8985be5a8093658da266ae9cd19Timo Sirainen
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Siraineninstall: $(INSTALL_32_and_64)
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen
fdc557286bc9f92c5f3bb49096ff6e2bcec0ea79Timo Sirainentest: $(NO_TESTS)
563273bdac80393af63b9520cbf4d24cc0efd028Timo Sirainen
420040a5930a2b497e79ff0b5f59ba4b764a5b39Timo SirainenBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
420040a5930a2b497e79ff0b5f59ba4b764a5b39Timo Sirainen
563273bdac80393af63b9520cbf4d24cc0efd028Timo Siraineninclude ../../make-rules/depend.mk
420040a5930a2b497e79ff0b5f59ba4b764a5b39Timo Sirainen