p7zip: fix man page paths
[oi-userland.git] / components / sysutils / stunnel / Makefile
blobf430932831ac6b96bd72847a014b74bc6a06aacf
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.
17 OPENSSL_VERSION= 3.1
18 include ../../../make-rules/shared-macros.mk
20 COMPONENT_NAME= stunnel
21 COMPONENT_VERSION= 5.61
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:91ea0ca6482d8f7e7d971ee64ab4f86a2817d038a372f0893e28315ef2015d7a
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
63 ASLR_MODE = $(ASLR_ENABLE)
65 unexport SHELLOPTS
66 COMPONENT_TEST_TRANSFORMS += \
67 '-n ' \
68 '-e "/^[0-9]/p" ' \
69 '-e "/^\.\./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