4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
23 # Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
24 # copyright (c) 2021, Tim Mooney. All rights reserved.
28 include ..
/..
/..
/make-rules
/shared-macros.mk
30 COMPONENT_NAME
= stunnel
31 COMPONENT_VERSION
= 5.60
32 COMPONENT_REVISION
= 1
33 COMPONENT_SUMMARY
= A TLS-encrypting socket wrapper
34 COMPONENT_PROJECT_URL
= https
://www.stunnel.org
/
35 COMPONENT_FMRI
= service
/security
/stunnel
36 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
37 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
38 COMPONENT_ARCHIVE_HASH
= \
39 sha256
:c45d765b1521861fea9b03b425b9dd7d48b3055128c0aec673bba5ef9b8f787d
40 COMPONENT_ARCHIVE_URL
= $(COMPONENT_PROJECT_URL
)/downloads
/archive
/5.x
/$(COMPONENT_ARCHIVE
)
41 COMPONENT_LICENSE
= GPLv2
43 include $(WS_MAKE_RULES
)/common.mk
45 # need /usr/perl5/bin on path to access pod2man perl script, used by
46 # the build to create docs.
47 COMPONENT_BUILD_ENV
+= PATH
=$(PERL5BINDIR
):$(PATH
)
49 CPPFLAGS
+= "-DPIDFILE='\"/var/run/stunnel.pid\"'"
51 # used to generate the 64-bit interposer location
52 CPPFLAGS
+= -DMACH64
='\"$(MACH64)\"'
54 CONFIGURE_OPTIONS
+= --disable-fips
55 CONFIGURE_OPTIONS
+= --enable-ipv6
56 CONFIGURE_OPTIONS
+= --localstatedir
=$(VARDIR
)
57 CONFIGURE_OPTIONS
+= --sysconfdir
=$(ETCDIR
)
58 CONFIGURE_OPTIONS
+= --with-ssl
=$(OPENSSL_PREFIX
)
59 CONFIGURE_OPTIONS
+= CPPFLAGS
="$(CPPFLAGS)"
60 CONFIGURE_OPTIONS
+= CFLAGS
="$(CFLAGS)"
61 # work around Linux-specific LDFLAGS
62 CONFIGURE_OPTIONS
+= LDFLAGS
="-L$(OPENSSL_PREFIX)/lib/$(MACH64) $(LDFLAGS)"
64 # used to generate LD_PRELOAD_* interposer pathnames
65 COMPONENT_BUILD_ARGS
+= pkglibdir
=/usr
/lib
/stunnel
67 COMPONENT_PRE_INSTALL_ACTION
= \
68 $(MKDIR
) $(PROTOETCDIR
)/stunnel
; \
69 $(MKDIR
) $(PROTOETCDIR
)/stunnel
/conf.d
; \
70 $(TOUCH
) $(PROTOETCDIR
)/stunnel
/stunnel.pem
72 PKG_PROTO_DIRS
+= $(COMPONENT_DIR
)/files
74 ASLR_MODE
= $(ASLR_ENABLE
)
77 COMPONENT_TEST_TRANSFORMS
+= \
82 # ncat needed for test suite
83 REQUIRED_PACKAGES
+= diagnostic
/nmap
85 # Auto-generated dependencies
86 REQUIRED_PACKAGES
+= library
/security
/openssl-11
87 REQUIRED_PACKAGES
+= runtime
/perl
88 REQUIRED_PACKAGES
+= SUNWcs
89 REQUIRED_PACKAGES
+= system
/library