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 2019 Andreas Grueninger, Grueninger GmbH, (grueni). All rights reserved.
13 # Copyright 2020 Michal Nowak
14 # Copyright 2021 Andreas Wacknitz
19 include ..
/..
/..
/make-rules
/shared-macros.mk
21 PATH
= $(USRBINDIR64
):$(PATH.gnu
)
23 COMPONENT_NAME
= pacemaker
24 COMPONENT_VERSION
= 2.0.3
26 COMPONENT_FMRI
= application
/cluster
/$(COMPONENT_NAME
)
27 COMPONENT_CLASSIFICATION
=System
/Services
28 COMPONENT_SRC
= $(COMPONENT_NAME
)-Pacemaker-
$(COMPONENT_VERSION
)
29 COMPONENT_ARCHIVE
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
).
tar.gz
30 COMPONENT_ARCHIVE_HASH
= sha256
:225a7d5d599ffcccd46cf9676d6a671b3cd1e59dae2c9977d61f265fd2839387
31 COMPONENT_PROJECT_URL
= https
://www.clusterlabs.org
32 COMPONENT_ARCHIVE_URL
= https
://github.com
/Clusterlabs
/$(COMPONENT_NAME
)/archive
/Pacemaker-
$(COMPONENT_VERSION
).
tar.gz
33 COMPONENT_LICENSE
= GPLv2
,LGPLv2
,BSD
34 COMPONENT_SUMMARY
= Pacemaker is an advanced
, scalable high-availability cluster resource manager.
36 include $(WS_MAKE_RULES
)/common.mk
40 COMPONENT_PREP_ACTION
=(cd
$(SOURCE_DIR
); $(CONFIG_SHELL
) autogen.sh
)
42 COMPONENT_PRE_CONFIGURE_ACTION
=($(CLONEY
) $(SOURCE_DIR
) $(@D
))
44 CONFIGURE_SCRIPT
= $(@D
)/configure
46 CFLAGS
+= -D__EXTENSIONS__
-D_POSIX_PTHREAD_SEMANTICS \
47 -lssp_nonshared
-lssp
-lnsl
-lssl \
48 -L
$(OPENSSL_LIBDIR
.64) -R
$(OPENSSL_LIBDIR
.64) -lcrypto
50 CONFIGURE_OPTIONS
+= --libexecdir
=$(CONFIGURE_PREFIX
)/lib
51 CONFIGURE_OPTIONS
+= --sysconfdir
=/etc
52 CONFIGURE_OPTIONS
+= --sharedstatedir
=/var
/hacluster
53 CONFIGURE_OPTIONS
+= --localstatedir
=/var
54 CONFIGURE_OPTIONS
+= --with-corosync
55 CONFIGURE_OPTIONS
+= --with-acl
=no
56 CONFIGURE_OPTIONS
+= --enable-upstart
=no
57 CONFIGURE_OPTIONS
+= --enable-systemd
=no
58 CONFIGURE_OPTIONS
+= --enable-fatal-warnings
=no
59 CONFIGURE_OPTIONS
+= --disable-rpath
60 CONFIGURE_OPTIONS
+= --with-logdir
=/var
/log
/hacluster
61 CONFIGURE_OPTIONS
+= --with-bundledir
=/var
/log
/hacluster
/bundles
62 CONFIGURE_OPTIONS
+= --with-openssl
=yes
63 CONFIGURE_OPTIONS
+= $(CONFIGURE_OPTIONS.
$(BITS
))
65 CONFIGURE_ENV
.64 += LT_SYS_LIBRARY_PATH
="/lib/$(MACH64):/usr/lib/$(MACH64)"
66 CONFIGURE_ENV
.64 += PYTHON
=$(PYTHON
)
67 CONFIGURE_ENV
.64 += am_cv_python_pythondir
=$(PYTHON_VENDOR_PACKAGES
)
69 COMPONENT_POST_INSTALL_ACTION
=( \
70 $(RM
) -r
$(PROTO_DIR
)$(USRSHAREDIR
)/$(COMPONENT_NAME
)/examples
; \
71 $(MKDIR
) $(PROTO_DIR
)$(USRSHAREDIR
)/$(COMPONENT_NAME
)/examples
; \
72 $(MV
) $(PROTO_DIR
)/etc
/logrotate.d
$(PROTO_DIR
)$(USRSHAREDIR
)/$(COMPONENT_NAME
)/examples
;)
74 COMPONENT_TEST_ENV
+= libtool_execute_magic
=
75 COMPONENT_TEST_ENV
+= LD_LIBRARY_PATH
=$(LD_LIBRARY_PATH
)
77 COMPONENT_TEST_TRANSFORMS
+= \
79 '-e "s/[0-9]* Segmentation Fault/Segmentation Fault/" ' \
81 '-e "/\/usr\/gnu\/bin\/make/d" ' \
87 '-e "/Testsuite/p" ' \
96 PKG_MACROS
+= PYVER
="$(PYTHON_VERSION)"
98 # added manually, not found as dependency
99 PERL_REQUIRED_PACKAGES
+= runtime
/perl
100 REQUIRED_PACKAGES
+= application
/cluster
/resource-agents
101 REQUIRED_PACKAGES
+= library
/libesmtp
102 REQUIRED_PACKAGES
+= library
/libstatgrab
103 REQUIRED_PACKAGES
+= shell/gnu-getopt
104 REQUIRED_PACKAGES
+= system
/management
/snmp
/net-snmp
105 REQUIRED_PACKAGES
+= text
/asciidoc
107 # Auto-generated dependencies
108 PYTHON_REQUIRED_PACKAGES
+= runtime
/python
109 REQUIRED_PACKAGES
+= $(GCC_RUNTIME_PKG
)
110 REQUIRED_PACKAGES
+= $(OPENSSL_PKG
)
111 REQUIRED_PACKAGES
+= application
/cluster
/cluster-glue
112 REQUIRED_PACKAGES
+= application
/cluster
/corosync
113 REQUIRED_PACKAGES
+= compress
/bzip2
114 REQUIRED_PACKAGES
+= library
/glib2
115 REQUIRED_PACKAGES
+= library
/gnutls-3
116 REQUIRED_PACKAGES
+= library
/libqb
117 REQUIRED_PACKAGES
+= library
/libxml2
118 REQUIRED_PACKAGES
+= library
/libxslt
119 REQUIRED_PACKAGES
+= library
/ncurses
120 REQUIRED_PACKAGES
+= shell/bash
121 REQUIRED_PACKAGES
+= shell/ksh93
122 REQUIRED_PACKAGES
+= system
/library
123 REQUIRED_PACKAGES
+= system
/library
/libdbus