2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL)". You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright 2016 EveryCity Ltd. All rights reserved.
13 # Copyright 2016 Adam Stevko. All rights reserved.
14 # Copyright 2022 Niklas Poslovski
15 # Copyright 2024 Goetz Fischer, R-A-C. All rights reserved.
19 include ..
/..
/..
/make-rules
/shared-macros.mk
21 COMPONENT_NAME
= haproxy
22 COMPONENT_FMRI
= web
/loadbalancer
/haproxy
23 COMPONENT_VERSION_MJR
= 2.8
24 COMPONENT_VERSION_MNR
= 13
25 COMPONENT_VERSION
= $(COMPONENT_VERSION_MJR
).
$(COMPONENT_VERSION_MNR
)
26 COMPONENT_SUMMARY
= A reliable
, high performance TCP
/HTTP load balancer
27 COMPONENT_PROJECT_URL
= https
://www.haproxy.org
/
28 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
29 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
30 COMPONENT_ARCHIVE_HASH
= sha256
:13dc06a65b7705b94c843bda8b845edbb621bf45e8a9dc7db590d40ab920a9ce
31 COMPONENT_ARCHIVE_URL
= https
://www.haproxy.org
/download
/$(COMPONENT_VERSION_MJR
)/src
/$(COMPONENT_ARCHIVE
)
32 COMPONENT_CLASSIFICATION
= System
/Services
33 COMPONENT_LICENSE
= HAPROXY
34 COMPONENT_LICENSE_FILE
= LICENSE
36 TEST_TARGET
= $(NO_TESTS
)
37 include $(WS_MAKE_RULES
)/common.mk
39 LDFLAGS
+= -L
$(OPENSSL_LIBDIR
)
41 COMPONENT_PRE_BUILD_ACTION
+= $(CLONEY
) $(SOURCE_DIR
) $(@D
)
43 COMPONENT_BUILD_ARGS
+= CC
="$(CC)"
44 COMPONENT_BUILD_ARGS
+= LDFLAGS
="$(LDFLAGS)"
45 COMPONENT_BUILD_ARGS
+= PREFIX
="$(USRDIR)"
46 COMPONENT_BUILD_ARGS
+= SBINDIR
="$(USRSBINDIR)"
47 COMPONENT_BUILD_ARGS
+= DOCDIR
="$(USRDIR)/share/doc/haproxy"
48 COMPONENT_BUILD_ARGS
+= TARGET
=solaris
49 COMPONENT_BUILD_ARGS
+= USE_OPENSSL
=1
50 COMPONENT_BUILD_ARGS
+= USE_ZLIB
=1
51 COMPONENT_BUILD_ARGS
+= USE_PCRE
=1
52 COMPONENT_BUILD_ARGS
+= USE_REGPARM
=1
53 COMPONENT_BUILD_ARGS
+= USE_PCRE_JIT
=1
54 COMPONENT_BUILD_ARGS
+= PCRE_INC
="$(USRINCDIR)/pcre"
55 COMPONENT_BUILD_ARGS
+= USE_LUA
=1
56 COMPONENT_BUILD_ARGS
+= LUA_LIB_NAME
=lua5.4
57 COMPONENT_BUILD_ARGS
+= LUA_INC
="$(USRINCDIR)/lua5.4"
58 COMPONENT_BUILD_ARGS
+= ARCH
=64
59 COMPONENT_BUILD_ARGS
+= SSL_INC
="$(OPENSSL_INCDIR)"
60 COMPONENT_BUILD_ARGS
+= V
=1
62 ifeq ($(strip $(MACH
)),i386
)
63 COMPONENT_BUILD_ARGS
+= CPU
=x86_64
65 COMPONENT_BUILD_ARGS
+= CPU
=ultrasparc
68 COMPONENT_INSTALL_ARGS
+= $(COMPONENT_BUILD_ARGS
)
70 COMPONENT_POST_INSTALL_ACTION
+= ( \
72 $(GMAKE
) $(COMPONENT_BUILD_ARGS
) admin
/halog
/halog
&& \
73 $(CP
) admin
/halog
/halog
$(PROTOUSRSBINDIR
) && \
74 $(STRIP
) $(PROTOUSRSBINDIR
)/haproxy
)
76 # Auto-generated dependencies
77 REQUIRED_PACKAGES
+= $(OPENSSL_PKG
)
78 REQUIRED_PACKAGES
+= SUNWcs
79 REQUIRED_PACKAGES
+= library
/pcre
80 REQUIRED_PACKAGES
+= library
/zlib
81 REQUIRED_PACKAGES
+= runtime
/lua-54
82 REQUIRED_PACKAGES
+= shell/ksh93
83 REQUIRED_PACKAGES
+= system
/library
84 REQUIRED_PACKAGES
+= system
/library
/math