sbcl: update to 2.5.1
[oi-userland.git] / components / sysutils / stunnel / Makefile
blob832827e73823e36b3e3ed328b14f6c263cac8deb
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
5 # 1.0 of the CDDL.
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
14 # copyright (c) 2021, Tim Mooney. All rights reserved.
15 # Copyright (c) 2025 Goetz Fischer, R-A-C. All rights reserved.
18 include ../../../make-rules/shared-macros.mk
20 COMPONENT_NAME= stunnel
21 COMPONENT_VERSION= 5.74
22 COMPONENT_SUMMARY= A TLS-encrypting socket wrapper
23 COMPONENT_PROJECT_URL= https://www.stunnel.org/
24 COMPONENT_FMRI= service/security/stunnel
25 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
26 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
27 COMPONENT_ARCHIVE_HASH= \
28 sha256:9bef235ab5d24a2a8dff6485dfd782ed235f4407e9bc8716deb383fc80cd6230
29 COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)/downloads/archive/5.x/$(COMPONENT_ARCHIVE)
30 COMPONENT_LICENSE= GPLv2
32 include $(WS_MAKE_RULES)/common.mk
34 # need /usr/perl5/bin on path to access pod2man perl script, used by
35 # the build to create docs.
36 COMPONENT_BUILD_ENV += PATH=$(PERL5BINDIR):$(PATH)
38 CPPFLAGS += "-DPIDFILE='\"/var/run/stunnel.pid\"'"
40 # used to generate the 64-bit interposer location
41 CPPFLAGS += -DMACH64='\"$(MACH64)\"'
43 CONFIGURE_OPTIONS += --disable-fips
44 CONFIGURE_OPTIONS += --enable-ipv6
45 CONFIGURE_OPTIONS += --localstatedir=$(VARDIR)
46 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
47 CONFIGURE_OPTIONS += --with-ssl=$(OPENSSL_PREFIX)
48 CONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)"
49 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
50 # work around Linux-specific LDFLAGS
51 CONFIGURE_OPTIONS += LDFLAGS="-L$(OPENSSL_PREFIX)/lib/$(MACH64) $(LDFLAGS)"
53 # used to generate LD_PRELOAD_* interposer pathnames
54 COMPONENT_BUILD_ARGS += pkglibdir=/usr/lib/stunnel
56 COMPONENT_PRE_INSTALL_ACTION = \
57 $(MKDIR) $(PROTOETCDIR)/stunnel ; \
58 $(MKDIR) $(PROTOETCDIR)/stunnel/conf.d ; \
59 $(TOUCH) $(PROTOETCDIR)/stunnel/stunnel.pem
61 PKG_PROTO_DIRS += $(COMPONENT_DIR)/files
62 ASLR_MODE = $(ASLR_ENABLE)
64 COMPONENT_TEST_TRANSFORMS += \
65 '-n ' \
66 '-e "/^[0-9]/p" ' \
67 '-e "/succeeded/p" ' \
68 '-e "/skipped/p" ' \
69 '-e "/failed/p" ' \
70 '-e "/^ /p" ' \
71 '-e "/^Summary:/p" '
73 # ncat needed for test suite
74 REQUIRED_PACKAGES += diagnostic/nmap
76 # Auto-generated dependencies
77 REQUIRED_PACKAGES += $(OPENSSL_PKG)
78 REQUIRED_PACKAGES += SUNWcs
79 REQUIRED_PACKAGES += runtime/perl
80 REQUIRED_PACKAGES += system/library